62746b4dd3909b50dce1928ca75d3ba8316f83e6 braney Tue Jul 14 15:42:46 2020 -0700 changes from user Sergej Nowoshilow on github diff --git src/inc/gff.h src/inc/gff.h index 2e06c24..299b458 100644 --- src/inc/gff.h +++ src/inc/gff.h @@ -2,61 +2,61 @@ * * This file is copyright 2000 Jim Kent, but license is hereby * granted for all use - public, private or commercial. */ #ifndef GFF_H #define GFF_H struct gffLine /* A parsed line in a GFF file. */ { struct gffLine *next; /* Next line in file */ char *seq; /* Name of sequence. */ char *source; /* Program that made this line. Not allocated here. */ char *feature; /* Type field. (Intron, CDS, etc). Not allocated here. */ - int start; /* Start of feature in sequence. Starts with 0, not 1 */ - int end; /* End of feature in sequence. End is not included. */ + long start; /* Start of feature in sequence. Starts with 0, not 1 */ + long end; /* End of feature in sequence. End is not included. */ double score; /* Score. */ char strand; /* Strand of sequence feature is on. + or - or .*/ char frame; /* Frame feature is in. 1, 2, 3, or . */ char *group; /* Group line is in. Not allocated here. Corresponds to transcript_id in GTF */ char *geneId; /* gene_id in GTF, NULL in GFF. Not allocated here. */ char *exonId; /* exon_id in GTF, NULL in GFF. Not allocated here. */ int exonNumber; /* O in GFF or if missing in GTF. Otherwise exon number. */ char *intronId; /* intron_id in GTF, NULL in GFF. Not allocated here. */ char *intronStatus; /* intron status. Not allocated here. */ char *proteinId; /* protein_id in GTF, NULL in GFF. Not allocated here. */ char *geneName; /* gene_name or NULL in GTF, NULL in GFF. Not allocated here. */ char *transcriptName; /* transcript_name or NULL in GTF, NULL in GFF. Not allocated here. */ char *geneVersion; /* gene_version or NULL in GTF, NULL in GFF. Not allocated here. */ char *transcriptVersion; /* transcript_version or NULL in GTF, NULL in GFF. Not allocated here. */ char *proteinVersion; /* protein_version or NULL in GTF, NULL in GFF. Not allocated here. */ char *geneType; /* gene_type or gene_biotype or NULL in GTF, NULL in GFF. Not allocated here. */ char *transcriptType; /* transcript_type or transcript_biotype or NULL in GTF, NULL in GFF. Not allocated here. */ }; struct gffGroup /* A group of lines in a GFF file (all that share the same group field). */ { struct gffGroup *next; /* Next group in file. */ char *name; /* Name of group. Not allocated here. */ char *seq; /* Name of sequence. Not allocated here. */ char *source; /* Name of source program. Not allocated here. */ /* The next three fields are only valid after call to gffGroupLines() */ - int start; /* Start of feature in sequence. Starts with 0, not 1 */ - int end; /* End of feature in sequence. End is not included. */ + long start; /* Start of feature in sequence. Starts with 0, not 1 */ + long end; /* End of feature in sequence. End is not included. */ char strand; /* Strand of sequence. */ struct gffLine *lineList; /* List of lines in group. */ }; struct gffSource /* A list of sources. */ { struct gffSource *next; /* Next in list. */ char *name; /* Name, not allocated here. */ unsigned int id; /* Database ID (or just 0) */ }; struct gffFeature /* A list of types in GFF file. */ {