529fd44f904b874ea9b1a5bc80fe5dec3a5970a8 kate Wed Mar 23 15:16:33 2016 -0700 Add checkbox to limit to protein coding genes (I keep wanting this option during testing.). refs #15645 diff --git src/hg/lib/gtexGeneBed.c src/hg/lib/gtexGeneBed.c index ce13b2a..fff2145 100644 --- src/hg/lib/gtexGeneBed.c +++ src/hg/lib/gtexGeneBed.c @@ -260,15 +260,20 @@ */ { char *geneType = geneBed->geneType; if (geneType == NULL) return "unknown"; if (sameString(geneType, "coding") || sameString(geneType, "protein_coding") || sameString(geneType, "polymorphic_pseudogene") || endsWith(geneType, "_gene")) return "coding"; if (sameString(geneType, "pseudo") || sameString(geneType, "pseudogene") || endsWith(geneType, "_pseudogene")) return "pseudo"; // A bit of a cheat here -- better a mapping table return "nonCoding"; } +boolean gtexGeneIsCoding(struct gtexGeneBed *geneBed) +/* Return TRUE if biotype indicates this is a protein coding gene */ +{ +return sameString("coding", gtexGeneClass(geneBed)); +}