a44421a79fb36cc2036fe116b97ea3bc9590cd0c braney Fri Dec 2 09:34:39 2011 -0800 removed rcsid (#295) diff --git src/utils/nt4Frag/nt4Frag.c src/utils/nt4Frag/nt4Frag.c index 14d89bf..3a78288 100644 --- src/utils/nt4Frag/nt4Frag.c +++ src/utils/nt4Frag/nt4Frag.c @@ -1,54 +1,53 @@ /* nt4Frag - Extract a piece of a .nt4 file to .fa format. */ #include "common.h" #include "nt4.h" #include "fa.h" -static char const rcsid[] = "$Id: nt4Frag.c,v 1.3 2003/05/06 07:41:07 kate Exp $"; void usage() /* Explain usage and exit. */ { errAbort( "nt4Frag - Extract a piece of a .nt4 file to .fa format\n" "usage:\n" " nt4Frag file.nib start end strand out.fa\n"); } void nt4Frag(char *fileName, int start, int end, char strand, char *faFile) /* nt4Frag - Extract part of a .nt4 file as .fa. */ { DNA *dna; int size; char seqName[512]; if (strand != '+' && strand != '-') { usage(); } if (start >= end) { usage(); } size = end - start; dna = nt4LoadPart(fileName, start, size); if (strand == '-') reverseComplement(dna, size); sprintf(seqName, "%s:%d%c%d", fileName, start, strand, end); faWrite(faFile, seqName, dna, size); } int main(int argc, char *argv[]) /* Process command line. */ { if (argc != 6) { usage(); } if (!isdigit(argv[2][0]) || !isdigit(argv[3][0])) { usage(); } nt4Frag(argv[1], atoi(argv[2]), atoi(argv[3]), argv[4][0], argv[5]); return 0; }