struct snp125CodingCoordless *snp125CodingCoordlessCommaIn(char **pS, struct snp125CodingCoordless *ret) /* Create a snp125CodingCoordless out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new snp125CodingCoordless */ { char *s = *pS; if (ret == NULL) AllocVar(ret); ret->name = sqlStringComma(&s); ret->transcript = sqlStringComma(&s); ret->frame = sqlEnumComma(&s, values_frame, &valhash_frame); ret->alleleCount = sqlSignedComma(&s); { int i; s = sqlEatChar(s, '{'); AllocArray(ret->funcCodes, ret->alleleCount); for (i=0; i<ret->alleleCount; ++i) { ret->funcCodes[i] = sqlUnsignedComma(&s); } s = sqlEatChar(s, '}'); s = sqlEatChar(s, ','); } { int i; s = sqlEatChar(s, '{'); AllocArray(ret->alleles, ret->alleleCount); for (i=0; i<ret->alleleCount; ++i) { ret->alleles[i] = sqlStringComma(&s); } s = sqlEatChar(s, '}'); s = sqlEatChar(s, ','); } { int i; s = sqlEatChar(s, '{'); AllocArray(ret->codons, ret->alleleCount); for (i=0; i<ret->alleleCount; ++i) { ret->codons[i] = sqlStringComma(&s); } s = sqlEatChar(s, '}'); s = sqlEatChar(s, ','); } { int i; s = sqlEatChar(s, '{'); AllocArray(ret->peptides, ret->alleleCount); for (i=0; i<ret->alleleCount; ++i) { ret->peptides[i] = sqlStringComma(&s); } s = sqlEatChar(s, '}'); s = sqlEatChar(s, ','); } *pS = s; return ret; }
struct gbWarn *gbWarnCommaIn(char **pS, struct gbWarn *ret) /* Create a gbWarn out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new gbWarn */ { char *s = *pS; if (ret == NULL) AllocVar(ret); sqlFixedStringComma(&s, ret->acc, sizeof(ret->acc)); ret->reason = sqlEnumComma(&s, values_reason, &valhash_reason); *pS = s; return ret; }
struct symTest *symTestCommaIn(char **pS, struct symTest *ret) /* Create a symTest out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new symTest */ { char *s = *pS; if (ret == NULL) AllocVar(ret); ret->id = sqlSignedComma(&s); ret->sex = sqlEnumComma(&s, values_sex, &valhash_sex); ret->skills = sqlSetComma(&s, values_skills, &valhash_skills); *pS = s; return ret; }
struct txEdgeBed *txEdgeBedCommaIn(char **pS, struct txEdgeBed *ret) /* Create a txEdgeBed out of a comma separated string. * This will fill in ret if non-null, otherwise will * return a new txEdgeBed */ { char *s = *pS; if (ret == NULL) AllocVar(ret); ret->chrom = sqlStringComma(&s); ret->chromStart = sqlSignedComma(&s); ret->chromEnd = sqlSignedComma(&s); ret->name = sqlStringComma(&s); ret->score = sqlSignedComma(&s); sqlFixedStringComma(&s, ret->strand, sizeof(ret->strand)); sqlFixedStringComma(&s, ret->startType, sizeof(ret->startType)); ret->type = sqlEnumComma(&s, values_type, &valhash_type); sqlFixedStringComma(&s, ret->endType, sizeof(ret->endType)); *pS = s; return ret; }