e70152e44cc66cc599ff6b699eb8adc07f3e656a kent Sat May 24 21:09:34 2014 -0700 Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment. diff --git src/hg/qaToQac/qaToQac.c src/hg/qaToQac/qaToQac.c index d31814a..9d018b9 100644 --- src/hg/qaToQac/qaToQac.c +++ src/hg/qaToQac/qaToQac.c @@ -1,43 +1,46 @@ /* qaToQac - convert from uncompressed to compressed * quality score format. */ + +/* Copyright (C) 2011 The Regents of the University of California + * See README in this or parent directory for licensing information. */ #include "common.h" #include "linefile.h" #include "qaSeq.h" void usage() /* Explain usage and exit. */ { errAbort( "qaToQac - convert from uncompressed to compressed\n" "quality score format.\n" "usage:\n" " qaToQac in.qa out.qac"); } void qaToQac(char *inName, char *outName) /* qaToQac - convert from uncompressed to compressed * quality score format. */ { struct lineFile *lf = lineFileOpen(inName, TRUE); FILE *f = mustOpen(outName, "wb"); struct qaSeq *qa; qacWriteHead(f); while ((qa = qaReadNext(lf)) != NULL) { qacWriteNext(f, qa); qaSeqFree(&qa); } lineFileClose(&lf); fclose(f); } int main(int argc, char *argv[]) /* Process command line. */ { if (argc < 2) usage(); qaToQac(argv[1], argv[2]); return 0; }