legumeinfo / legumeinfo.org

general site issues (or a place to log issues if you just want to put them somewhere and triage which repository they properly belong to later)
0 stars 0 forks source link

Species Page: Show expression datasets if available for each species. #4

Closed sdash-github closed 6 years ago

sdash-github commented 6 years ago

The species page shows most resources available at LIS for each species except expression datasets. We have expr data available for cajca, cicar, phavu, vigun. These items in species page should show the datasets available. Add code to the module to get this info as links?? (To get the link to a gene page for a dataset would be challenging as it needs exemplar)

sdash-github commented 6 years ago

TEMPORARY: SQL to get dataset acc_no starting with genus+spp (available in sp-sheet). Cicer, as always, is the pain-in-the-neck. $ psql -c "SELECT od.accession_no FROM ongenome.dataset AS od WHERE od.genome_id IN (SELECT og.genome_id FROM ongenome.genome AS og WHERE og.organism_id IN (SELECT oo.organism_id from ongenome.organism AS oo WHERE oo.genus='Cicer' AND oo.species='arietinum'))" cicar1 cicar2

sdash-github commented 6 years ago

TO DO: Review; update repo, etc. before closing.

sdash-github commented 6 years ago

Now functional in lis-stage. The following files were modified to accomplish this: lis_expression_all_summary.tpl.php : id attribute added for linking to datasets. lis_species_resources.module : queries ongenome with genus-species to list available datasets with link to expression-summary-page. Done