Skip to content

Instantly share code, notes, and snippets.

@twaddlac
Created September 27, 2018 16:05
Show Gist options
  • Save twaddlac/79304f293aed8beb2be16a7ad3303990 to your computer and use it in GitHub Desktop.
Save twaddlac/79304f293aed8beb2be16a7ad3303990 to your computer and use it in GitHub Desktop.
Query to extract the secondary screen data from the eegi db.
select
experiment.well,
experiment.worm_strain_id,
experimentplate.temperature,
experimentplate.date,
experiment.library_stock_id,
wormstrain.*,
librarystock.*,
experiment.*,
experimentplate.*,
clone.*,
-- clonetarget.*
devstarscore.*,
manualscore.*,
manualscorecode.*
-- gene.*
from
experiment
join experimentplate on experimentplate.id = experiment.plate_id
join wormstrain on wormstrain.id = experiment.`worm_strain_id`
join librarystock on librarystock.`id` = experiment.`library_stock_id`
join clone on clone.`id` = librarystock.`intended_clone_id`
-- join clonetarget on clonetarget.`clone_id` = clone.id
join manualscore on manualscore.id = experiment.id
join manualscorecode on manualscorecode.`id` = manualscore.`score_code_id`
join devstarscore on devstarscore.`experiment_id` = experiment.id
-- join gene on gene.`id` = clonetarget.`gene_id`
where experimentplate.screen_stage = 2
-- and librarystock.intended_clone_id = "L4440"
order by
experiment.well,
experiment.worm_strain_id,
experimentplate.temperature,
experimentplate.date,
experiment.library_stock_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment