Skip to content
Snippets Groups Projects

Merge upstream

Merged Loraine Gueguen requested to merge dev into master
Compare and Show latest version
1 file
+ 1
2
Compare changes
  • Side-by-side
  • Inline
+ 1
2
@@ -160,8 +160,7 @@ function abims_get_analyses_from_chado() {
// Fix feature_counts for structural annots
$csql = "SELECT a.analysis_id, count(af.feature_id) as feature_count FROM {analysis} a LEFT JOIN {analysisfeature} af ON a.analysis_id = af.analysis_id LEFT JOIN {feature} f ON af.feature_id = f.feature_id WHERE f.type_id=:term GROUP BY a.analysis_id ORDER BY a.name";
$counts = chado_query($csql, array(':term' => $gene_term));
print_r($counts)
if (count($counts) == 0) {
if (!$counts->rowCount()) {
$counts = chado_query($csql, array(':term' => $mRNA_term));
}
foreach ($counts as $count) {
Loading