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/utils/chopFaLines/chopFaLines.c src/utils/chopFaLines/chopFaLines.c index db142d1..a25f8fe 100644 --- src/utils/chopFaLines/chopFaLines.c +++ src/utils/chopFaLines/chopFaLines.c @@ -1,42 +1,45 @@ /* chopFaLines - Read in FA file with long lines and rewrite it with shorter lines. */ + +/* Copyright (C) 2011 The Regents of the University of California + * See README in this or parent directory for licensing information. */ #include "common.h" #include "dnaseq.h" #include "fa.h" void usage() /* Explain usage and exit. */ { errAbort( "chopFaLines - Read in FA file with long lines and rewrite it with shorter lines\n" "usage:\n" " chopFaLines in.fa out.fa\n"); } void chopFaLines(char *inName, char *outName) /* chopFaLines - Read in FA file with long lines and rewrite it with shorter lines. */ { FILE *in = mustOpen(inName, "r"); FILE *out = mustOpen(outName, "w"); char *commentLine; struct dnaSeq *seq; while (faReadNext(in, NULL, TRUE, &commentLine, &seq)) { commentLine = trimSpaces(commentLine+1); uglyf(">%s\n", commentLine); mustWrite(uglyOut, seq->dna, 100); uglyf("\n"); uglyAbort("All for now"); faWriteNext(out, commentLine, seq->dna, seq->size); } } int main(int argc, char *argv[]) /* Process command line. */ { if (argc != 3) usage(); chopFaLines(argv[1], argv[2]); return 0; }