3c07e0899280b85976b6fcff458970e8166c4248 baertsch Sun May 29 19:19:12 2011 -0700 use version number in retro click score calc diff --git src/hg/hgc/retroClick.c src/hg/hgc/retroClick.c index 527fabc..07a9c56 100644 --- src/hg/hgc/retroClick.c +++ src/hg/hgc/retroClick.c @@ -486,49 +486,56 @@ if ( (gp->cdsStart <= gp->exonEnds[i]) && (gp->cdsEnd >= gp->exonStarts[i]) ) count++; } return count; } static void displayMappingInfo(struct sqlConnection *conn, struct mappingInfo *mi) /* display information from a transMap table */ { struct ucscRetroInfo *pg = mi->pg; double wt[12]; /* weights on score function*/ char query[512]; char *name; char alignTbl[128]; +char scoreSql[128]; struct psl *psl; float coverFactor = 0; float maxOverlap = 0; if (mi->suffix == NULL) + { safef(alignTbl, sizeof(alignTbl), "%s%sAli", mi->tblPre, mi->geneSet); + safef(scoreSql, sizeof(scoreSql), "select max(score) from %s%sInfo", mi->tblPre, mi->geneSet); + } else + { safef(alignTbl, sizeof(alignTbl), "%s%sAli%s", mi->tblPre, mi->geneSet, mi->suffix); + safef(scoreSql, sizeof(scoreSql), "select max(score) from %s%sInfo%s", mi->tblPre, mi->geneSet, mi->suffix); + } printf("
Feature | Value |
---|---|
Type of Parent | %s |
Expression of Retrocopy | %s |
Score | %d (range from 0 - %d) |
Alignment Coverage of parent gene (Bases matching Parent) | %d %% (%d bp) |
Introns Procesed Out | %d out of %d (%d exons covered)\n", pg->processedIntrons, (pg->parentSpliceCount/2), pg->exonCover); printf(" |
Possible Introns (or gaps) in Retro | %d + %d\n", pg->intronCount, pg->oldIntronCount); printf(" |
Conserved Splice Sites | %d |
Parent Splice Sites | %d |