void txEdgeBedOutput(struct txEdgeBed *el, FILE *f, char sep, char lastSep) /* Print out txEdgeBed. Separate fields with sep. Follow last field with lastSep. */ { if (sep == ',') fputc('"',f); fprintf(f, "%s", el->chrom); if (sep == ',') fputc('"',f); fputc(sep,f); fprintf(f, "%d", el->chromStart); fputc(sep,f); fprintf(f, "%d", el->chromEnd); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->name); if (sep == ',') fputc('"',f); fputc(sep,f); fprintf(f, "%d", el->score); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->strand); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->startType); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); sqlEnumPrint(f, el->type, values_type); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->endType); if (sep == ',') fputc('"',f); fputc(lastSep,f); }
void gbWarnOutput(struct gbWarn *el, FILE *f, char sep, char lastSep) /* Print out gbWarn. Separate fields with sep. Follow last field with lastSep. */ { if (sep == ',') fputc('"',f); fprintf(f, "%s", el->acc); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); sqlEnumPrint(f, el->reason, values_reason); if (sep == ',') fputc('"',f); fputc(lastSep,f); }
void symTestOutput(struct symTest *el, FILE *f, char sep, char lastSep) /* Print out symTest. Separate fields with sep. Follow last field with lastSep. */ { fprintf(f, "%d", el->id); fputc(sep,f); if (sep == ',') fputc('"',f); sqlEnumPrint(f, el->sex, values_sex); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); sqlSetPrint(f, el->skills, values_skills); if (sep == ',') fputc('"',f); fputc(lastSep,f); }
void snp125CodingCoordlessOutput(struct snp125CodingCoordless *el, FILE *f, char sep, char lastSep) /* Print out snp125CodingCoordless. Separate fields with sep. Follow last field with lastSep. */ { if (sep == ',') fputc('"',f); fprintf(f, "%s", el->name); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); fprintf(f, "%s", el->transcript); if (sep == ',') fputc('"',f); fputc(sep,f); if (sep == ',') fputc('"',f); sqlEnumPrint(f, el->frame, values_frame); if (sep == ',') fputc('"',f); fputc(sep,f); fprintf(f, "%d", el->alleleCount); fputc(sep,f); { int i; if (sep == ',') fputc('{',f); for (i=0; i<el->alleleCount; ++i) { fprintf(f, "%u", el->funcCodes[i]); fputc(',', f); } if (sep == ',') fputc('}',f); } fputc(sep,f); { int i; if (sep == ',') fputc('{',f); for (i=0; i<el->alleleCount; ++i) { if (sep == ',') fputc('"',f); fprintf(f, "%s", el->alleles[i]); if (sep == ',') fputc('"',f); fputc(',', f); } if (sep == ',') fputc('}',f); } fputc(sep,f); { int i; if (sep == ',') fputc('{',f); for (i=0; i<el->alleleCount; ++i) { if (sep == ',') fputc('"',f); fprintf(f, "%s", el->codons[i]); if (sep == ',') fputc('"',f); fputc(',', f); } if (sep == ',') fputc('}',f); } fputc(sep,f); { int i; if (sep == ',') fputc('{',f); for (i=0; i<el->alleleCount; ++i) { if (sep == ',') fputc('"',f); fprintf(f, "%s", el->peptides[i]); if (sep == ',') fputc('"',f); fputc(',', f); } if (sep == ',') fputc('}',f); } fputc(lastSep,f); }