491bae89e94aedf11666a9e662d2d80012cc312d markd Wed Jan 25 07:38:10 2017 -0800 add more information to display of transmap source gene diff --git src/hg/inc/bigTransMap.h src/hg/inc/bigTransMap.h index aafe4a0..3a49a96 100644 --- src/hg/inc/bigTransMap.h +++ src/hg/inc/bigTransMap.h @@ -1,23 +1,23 @@ /* bigTransMap.h was originally generated by the autoSql program, which also * generated bigTransMap.c and bigTransMap.sql. This header links the database and * the RAM representation of objects. */ #ifndef BIGTRANSMAP_H #define BIGTRANSMAP_H -#define BIGTRANSMAP_NUM_COLS 38 +#define BIGTRANSMAP_NUM_COLS 39 extern char *bigTransMapCommaSepFieldNames; struct bigTransMap /* bigPsl derived pairwise alignment with additional information */ { struct bigTransMap *next; /* Next in singly linked list. */ char *chrom; /* Reference sequence chromosome or scaffold */ unsigned chromStart; /* Start position in chromosome */ unsigned chromEnd; /* End position in chromosome */ char *name; /* Name or ID of item, ideally both human readable and unique */ unsigned score; /* Score (0-1000), faction identity * 1000 */ char strand[2]; /* + or - indicates whether the query aligns to the + or - strand on the reference */ unsigned thickStart; /* Start of where display should be thick (start codon) */ unsigned thickEnd; /* End of where display should be thick (stop codon) */ @@ -38,30 +38,31 @@ unsigned repMatch; /* Number of bases that match but are part of repeats */ unsigned nCount; /* Number of 'N' bases */ unsigned seqType; /* 0=empty, 1=nucleotide, 2=amino_acid */ char *srcDb; /* source organism database names */ char *srcChrom; /* source organism chromosome name */ unsigned srcChromStart; /* start position in source chromosome */ unsigned srcChromEnd; /* end position in source chromosome */ unsigned srcScore; /* source source (faction identity * 1000) */ unsigned srcAligned; /* fraction of source aligned (faction identity * 1000) */ char *geneName; /* gene name */ char *geneId; /* gene identifier */ char *geneType; /* type of gene */ char *transcriptType; /* type of transcript */ char *chainType; /* type of chains used for mapping */ char *commonName; /* common organism name */ + char *scientificName; /* scientific organism name */ char *orgAbbrev; /* organism abbreviation */ }; struct bigTransMap *bigTransMapLoad(char **row); /* Load a bigTransMap from row fetched with select * from bigTransMap * from database. Dispose of this with bigTransMapFree(). */ struct bigTransMap *bigTransMapLoadAll(char *fileName); /* Load all bigTransMap from whitespace-separated file. * Dispose of this with bigTransMapFreeList(). */ struct bigTransMap *bigTransMapLoadAllByChar(char *fileName, char chopper); /* Load all bigTransMap from chopper separated file. * Dispose of this with bigTransMapFreeList(). */