Created
September 27, 2018 16:05
-
-
Save twaddlac/79304f293aed8beb2be16a7ad3303990 to your computer and use it in GitHub Desktop.
Query to extract the secondary screen data from the eegi db.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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