c96203c4fb3523f0339e83da69a708fab7706250 markd Tue Nov 29 09:44:08 2022 -0800 opps, the previous commit left out the all-important name in gff3ToGenePred attributes diff --git src/hg/utils/gff3ToGenePred/gff3ToGenePred.c src/hg/utils/gff3ToGenePred/gff3ToGenePred.c index ec1b8c0..2d0a6cd 100644 --- src/hg/utils/gff3ToGenePred/gff3ToGenePred.c +++ src/hg/utils/gff3ToGenePred/gff3ToGenePred.c @@ -370,36 +370,36 @@ for(attr=ann->attrs; attr; attr=attr->next) { fprintf(outAttrsFp, "%s\t%s\t", name, attr->tag); struct slName *val; for (val = attr->vals; val; val = val->next) { if (val != attr->vals) fputc(',', outAttrsFp); fprintf(outAttrsFp, "%s", val->name); } fputc('\n', outAttrsFp); } // include some basic info from GFF3 fixed fields, capitalize // to prevent any conflicts with attributes, capitalize attributes // are reserved -fprintf(outAttrsFp, "Seqid\t%s\n", ann->seqid); -fprintf(outAttrsFp, "Source\t%s\n", ann->source); -fprintf(outAttrsFp, "Type\t%s\n", ann->type); -fprintf(outAttrsFp, "Start\t%u\n", ann->start); -fprintf(outAttrsFp, "End\t%u\n", ann->end); -fprintf(outAttrsFp, "Strand\t%s\n", ann->strand); +fprintf(outAttrsFp, "%s\tSeqid\t%s\n", name, ann->seqid); +fprintf(outAttrsFp, "%s\tSource\t%s\n", name, ann->source); +fprintf(outAttrsFp, "%s\tType\t%s\n", name, ann->type); +fprintf(outAttrsFp, "%s\tStart\t%u\n", name, ann->start); +fprintf(outAttrsFp, "%s\tEnd\t%u\n", name, ann->end); +fprintf(outAttrsFp, "%s\tStrand\t%s\n", name, ann->strand); } static void outputGenePred(struct gff3Ann *mrna, FILE *gpFh, struct genePred *gp) /* validate and output a genePred */ { if (gp->name == NULL) gp->name=cloneString("no_name"); char description[PATH_LEN]; safef(description, sizeof(description), "genePred from GFF3: %s:%d", ((mrna->file != NULL) ? mrna->file->fileName : "<unknown>"), mrna->lineNum); int ret = genePredCheck(description, stderr, -1, gp); if (ret == 0) {