d90f7fb5e4c32a447387691539145045c609b5b9 kent Thu Apr 25 09:34:50 2013 -0700 Removing useless shuffleCount parameter from shuffleList, shuffleArrayOfChars and shuffleArrayOfPointers functions in response to code review feedback. diff --git src/hg/hgTables/bam.c src/hg/hgTables/bam.c index d697bef..e68724a 100644 --- src/hg/hgTables/bam.c +++ src/hg/hgTables/bam.c @@ -305,31 +305,31 @@ } struct slName *randomBamIds(char *table, struct sqlConnection *conn, int count) /* Return some semi-random qName based IDs from a BAM file. */ { /* Read 10000 items from bam file, or if they ask for a big list, then 4x what they ask for. */ char *fileName = bamFileName(table, conn, NULL); samfile_t *fh = bamOpen(fileName, NULL); struct lm *lm = lmInit(0); int orderedCount = count * 4; if (orderedCount < 10000) orderedCount = 10000; struct samAlignment *sam, *samList = bamReadNextSamAlignments(fh, orderedCount, lm); /* Shuffle list and extract qNames from first count of them. */ -shuffleList(&samList, 1); +shuffleList(&samList); struct slName *randomIdList = NULL; int i; for (i=0, sam = samList; inext) slNameAddHead(&randomIdList, sam->qName); /* Clean up and go home. */ lmCleanup(&lm); bamClose(&fh); freez(&fileName); return randomIdList; } void showSchemaBam(char *table, struct trackDb *tdb) /* Show schema on bam. */ {