99c9109b9f70a8ffb8a2108e702508bd6382b201
ceisenhart
  Mon Jun 23 18:28:12 2014 -0700
Changed comments to be more informative
diff --git src/utils/bamSplitByChrom/bamSplitByChrom.c src/utils/bamSplitByChrom/bamSplitByChrom.c
index 962683f..648563b 100644
--- src/utils/bamSplitByChrom/bamSplitByChrom.c
+++ src/utils/bamSplitByChrom/bamSplitByChrom.c
@@ -85,29 +85,29 @@
 	}
     }
 samclose(unmap);
 }
 
 void bamSplitByChrom(char *inBam, char *dir, boolean unmapped)
 /* Splits the bam file into multiple bam files based on chromosome. */
 {
 struct hash *hash = hashNew(0);
 samfile_t *input = bamMustOpenLocal(inBam, "rb", NULL);
 bam_header_t *head = input ->header;
 writeOutput(input, hash, unmapped, dir);
 /* Open the output bam files in a new directory. */
 /* Write each alignment to the correct output file. */
 closeOutput(hash, head);
-/* Close the output files. */
+/* Loops through each output file and closes it */
 samclose(input);
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 optionInit(&argc, argv, options);
 clUnmapped = optionExists("unmapped");
 if (argc != 3)
     usage();
 bamSplitByChrom(argv[1], argv[2], clUnmapped);
 return 0;
 }