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/scrambleFa/scrambleFa.c src/utils/scrambleFa/scrambleFa.c index 347d64b..edda301 100644 --- src/utils/scrambleFa/scrambleFa.c +++ src/utils/scrambleFa/scrambleFa.c @@ -1,46 +1,46 @@ /* ScrambleFa - scramble the order of records in an fa file. */ /* 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 "fa.h" void scrambleFa(char *inName, char *outName) /* scrambleFa - scramble the order of records in an fa file. */ { struct dnaSeq *seqList, *seq; int seqCount; int seqIx; FILE *out; seqList = faReadAllDna(inName); out = mustOpen(outName, "w"); seqCount = slCount(seqList); while (seqCount > 0) { seqIx = rand()%seqCount; seq = slElementFromIx(seqList, seqIx); faWriteNext(out, seq->name, seq->dna, seq->size); slRemoveEl(&seqList, seq); --seqCount; } fclose(out); } void usage() /* Explain usage and exit. */ { errAbort("scrambleFa - scramble the order of records in an fa file\n" "usage:\n" " scrambleFa in.fa out.fa"); } int main(int argc, char *argv[]) /* Process command line. */ { if (argc != 3) usage(); scrambleFa(argv[1], argv[2]); return 0; }