4898794edd81be5285ea6e544acbedeaeb31bf78 max Tue Nov 23 08:10:57 2021 -0800 Fixing pointers to README file for license in all source code files. refs #27614 diff --git src/utils/faToFastq/faToFastq.c src/utils/faToFastq/faToFastq.c index ed77e72..03ae77c 100644 --- src/utils/faToFastq/faToFastq.c +++ src/utils/faToFastq/faToFastq.c @@ -1,63 +1,63 @@ /* faToFastq - Convert fa to fastq format, just faking quality values.. */ /* Copyright (C) 2011 The Regents of the University of California - * See README in this or parent directory for licensing information. */ + * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "fa.h" void usage() /* Explain usage and exit. */ { errAbort( "faToFastq - Convert fa to fastq format, just faking quality values.\n" "usage:\n" " faToFastq in.fa out.fastq\n" "options:\n" " -qual=X quality letter to use. Default is '<' which is good I think....\n" ); } char qualLetter = '<'; static struct optionSpec options[] = { {"qual", OPTION_STRING}, {NULL, 0}, }; void faToFastq(char *inFa, char *outFastq) /* faToFastq - Convert fa to fastq format, just faking quality values.. */ { struct lineFile *lf = lineFileOpen(inFa, TRUE); FILE *f = mustOpen(outFastq, "w"); DNA *dna; int size; char *name; while (faMixedSpeedReadNext(lf, &dna, &size, &name)) { fprintf(f, "@%s\n", name); fprintf(f, "%s\n", dna); fprintf(f, "+\n"); int i; for (i=0; i<size; ++i) fputc(qualLetter, f); fputc('\n', f); } carefulClose(&f); } int main(int argc, char *argv[]) /* Process command line. */ { optionInit(&argc, argv, options); if (argc != 3) usage(); char *qual = optionVal("qual", NULL); if (qual != NULL) qualLetter = qual[0]; faToFastq(argv[1], argv[2]); return 0; }