41bbd268df98df338d98b6b98c62ab595d85aff1 braney Mon May 4 14:19:12 2020 -0700 don't print out conf field in rnaStruct tables if not present. Added link to PseudoViewer diff --git src/hg/inc/rnaSecStr.h src/hg/inc/rnaSecStr.h index 3cf6193..38a86bb 100644 --- src/hg/inc/rnaSecStr.h +++ src/hg/inc/rnaSecStr.h @@ -15,31 +15,35 @@ { struct rnaSecStr *next; /* Next in singly linked list. */ char *chrom; /* Chromosome or FPC contig */ unsigned chromStart; /* Start position in chromosome */ unsigned chromEnd; /* End position in chromosome */ char *name; /* Name of item */ unsigned score; /* Score from 0-1000 */ char strand[2]; /* + or - */ unsigned size; /* Size of element. */ char *secStr; /* Parentheses and '.'s which define the secondary structure */ double *conf; /* Confidence of secondary-structure annotation per position (0.0-1.0). */ }; struct rnaSecStr *rnaSecStrLoad(char **row); /* Load a rnaSecStr from row fetched with select * from rnaSecStr - * from database. Dispose of this with rnaSecStrFree(). */ + * from database. Ignores conf column if present. Dispose of this with rnaSecStrFree(). */ + +struct rnaSecStr *rnaSecStrLoadConf(char **row); +/* Load a rnaSecStr from row fetched with select * from rnaSecStr + * from database. Loads conf column. Dispose of this with rnaSecStrFree(). */ struct rnaSecStr *rnaSecStrLoadAll(char *fileName); /* Load all rnaSecStr from whitespace-separated file. * Dispose of this with rnaSecStrFreeList(). */ struct rnaSecStr *rnaSecStrLoadAllByChar(char *fileName, char chopper); /* Load all rnaSecStr from chopper separated file. * Dispose of this with rnaSecStrFreeList(). */ #define rnaSecStrLoadAllByTab(a) rnaSecStrLoadAllByChar(a, '\t'); /* Load all rnaSecStr from tab separated file. * Dispose of this with rnaSecStrFreeList(). */ struct rnaSecStr *rnaSecStrCommaIn(char **pS, struct rnaSecStr *ret); /* Create a rnaSecStr out of a comma separated string.