struct snp125CodingCoordless *snp125CodingCoordlessLoad(char **row) /* Load a snp125CodingCoordless from row fetched with select * from snp125CodingCoordless * from database. Dispose of this with snp125CodingCoordlessFree(). */ { struct snp125CodingCoordless *ret; AllocVar(ret); ret->alleleCount = sqlSigned(row[3]); ret->name = cloneString(row[0]); ret->transcript = cloneString(row[1]); ret->frame = sqlEnumParse(row[2], values_frame, &valhash_frame); { int sizeOne; sqlUshortDynamicArray(row[4], &ret->funcCodes, &sizeOne); assert(sizeOne == ret->alleleCount); } { int sizeOne; sqlStringDynamicArray(row[5], &ret->alleles, &sizeOne); assert(sizeOne == ret->alleleCount); } { int sizeOne; sqlStringDynamicArray(row[6], &ret->codons, &sizeOne); assert(sizeOne == ret->alleleCount); } { int sizeOne; sqlStringDynamicArray(row[7], &ret->peptides, &sizeOne); assert(sizeOne == ret->alleleCount); } return ret; }
void gbWarnStaticLoad(char **row, struct gbWarn *ret) /* Load a row from gbWarn table into ret. The contents of ret will * be replaced at the next call to this function. */ { safecpy(ret->acc, sizeof(ret->acc), row[0]); ret->reason = sqlEnumParse(row[1], values_reason, &valhash_reason); }
void symTestStaticLoad(char **row, struct symTest *ret) /* Load a row from symTest table into ret. The contents of ret will * be replaced at the next call to this function. */ { ret->id = sqlSigned(row[0]); ret->sex = sqlEnumParse(row[1], values_sex, &valhash_sex); ret->skills = sqlSetParse(row[2], values_skills, &valhash_skills); }
struct gbWarn *gbWarnLoad(char **row) /* Load a gbWarn from row fetched with select * from gbWarn * from database. Dispose of this with gbWarnFree(). */ { struct gbWarn *ret; AllocVar(ret); safecpy(ret->acc, sizeof(ret->acc), row[0]); ret->reason = sqlEnumParse(row[1], values_reason, &valhash_reason); return ret; }
struct symTest *symTestLoad(char **row) /* Load a symTest from row fetched with select * from symTest * from database. Dispose of this with symTestFree(). */ { struct symTest *ret; AllocVar(ret); ret->id = sqlSigned(row[0]); ret->sex = sqlEnumParse(row[1], values_sex, &valhash_sex); ret->skills = sqlSetParse(row[2], values_skills, &valhash_skills); return ret; }
void txEdgeBedStaticLoad(char **row, struct txEdgeBed *ret) /* Load a row from txEdgeBed table into ret. The contents of ret will * be replaced at the next call to this function. */ { ret->chrom = row[0]; ret->chromStart = sqlSigned(row[1]); ret->chromEnd = sqlSigned(row[2]); ret->name = row[3]; ret->score = sqlSigned(row[4]); safecpy(ret->strand, sizeof(ret->strand), row[5]); safecpy(ret->startType, sizeof(ret->startType), row[6]); ret->type = sqlEnumParse(row[7], values_type, &valhash_type); safecpy(ret->endType, sizeof(ret->endType), row[8]); }
struct txEdgeBed *txEdgeBedLoad(char **row) /* Load a txEdgeBed from row fetched with select * from txEdgeBed * from database. Dispose of this with txEdgeBedFree(). */ { struct txEdgeBed *ret; AllocVar(ret); ret->chrom = cloneString(row[0]); ret->chromStart = sqlSigned(row[1]); ret->chromEnd = sqlSigned(row[2]); ret->name = cloneString(row[3]); ret->score = sqlSigned(row[4]); safecpy(ret->strand, sizeof(ret->strand), row[5]); safecpy(ret->startType, sizeof(ret->startType), row[6]); ret->type = sqlEnumParse(row[7], values_type, &valhash_type); safecpy(ret->endType, sizeof(ret->endType), row[8]); return ret; }
unsigned sqlEnumComma(char **pS, char **values, struct hash **valHashPtr) /* Return enum at *pS. (Either quoted or not.) Advance *pS. */ { return sqlEnumParse(sqlGetOptQuoteString(pS), values, valHashPtr); }