eeb6e13f3c9d1f3e9883b76498f5cb1a80463531 markd Mon Aug 16 23:41:36 2010 -0700 fix bug where insertions between multiple bases of stop codon generated incorrect frame. Provide explicit control over use of gene_id or gene_name for name2 column diff --git src/hg/inc/genePred.h src/hg/inc/genePred.h index f57516e..8a23262 100644 --- src/hg/inc/genePred.h +++ src/hg/inc/genePred.h @@ -41,8 +41,10 @@ /* bit set of options for genePredFromGroupedGff/genePredFromGroupedGtf */ { genePredGxfDefaults = 0x00, /* used if nothing special */ - genePredGxfImpliedStopAfterCds = 0x01 /* stop codon is implied outside of + genePredGxfImpliedStopAfterCds = 0x01, /* stop codon is implied outside of * the annotated CDS bounds */ + genePredGxfGeneNameAsName2 = 0x02 /* use gene_name instead of gene_id + * for name2 */ }; enum genePredFields @@ -171,7 +173,8 @@ * If genePredExonFramesFld is set, then frame is set as specified in the GTF. * Options are from genePredFromGxfOpts. If genePredGxfImpliedStopAfterCds * is specified, it is treated as if a stop_codon annotation was found, - * if there isn't one. + * if there isn't one. If genePredGxfGeneNameAsName2 is specified, use + * gene_name for the name2 field otherwise gene_id. */ struct genePred *genePredFromGroupedGtf(struct gffFile *gff, struct gffGroup *group, char *name,