Skip to content

Commit 8dd53ae

Browse files
authored
Minor update (#27)
* helper script to index at start of module3..could be use for all modules * increment version for cmo_index, etc * initial commit of cmo_index * logging * cmo_split_reads now opens and emits gzips..slow bc native python gzip instead of subprocess zcat * add logger function * use bufferereader for speed improvement on gzip * increment version * version increment AGAIN * install cmo_fillout * longer delay for polling * speed improvement for split_reads...hopefully... * increment version for release * fake gz files for trimgalore * use args.version
1 parent 32169b8 commit 8dd53ae

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bin/cmo_fillout

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ else:
3232

3333
### Path to GetBaseCountsMultiSample
3434
#should be cmo.util.programs['GetBaseCountsMultiSample]['1.0.0'], but zeng hasn't packaged this for release yet
35-
gbcmPath = cmo.util.programs['getbasecountsmultisample']['1.2.1']
35+
gbcmPath = cmo.util.programs['getbasecountsmultisample'][args.version]
3636

3737

3838
### Set genome path

bin/cmo_split_reads

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,10 @@ if __name__ =='__main__':
2626
fh = io.BufferedReader(gzip.open(fastq, "rb"))
2727
output_file_count = 0
2828
output_file_lines = 0
29+
#these aren't relaly gz but trimgalore doesnt like files not named gz...great work trimgalore
2930
filename = output_prefix + "chunk{:0>3d}".format(output_file_count) + ".fastq.gz"
3031
logger.info("Opening %s and writing reads..." % (filename))
31-
ofh = io.BufferedWriter(gzip.open(filename, "wb"))
32+
ofh = open(filename, "wb")
3233
lines = list()
3334
for line in os.popen("zcat " + fastq):
3435
lines.append(line)
@@ -42,7 +43,7 @@ if __name__ =='__main__':
4243
output_file_count +=1
4344
filename = output_prefix + "chunk{:0>3d}".format(output_file_count) + ".fastq.gz"
4445
logger.info("Opening %s and writing reads..." % (filename))
45-
ofh = io.BufferedWriter(gzip.open(filename, "wb"))
46+
ofh = open(filename, "wb")
4647
ofh.write("".join(lines))
4748
ofh.close()
4849

cmo/_version.py

-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@
22
# This file is originally generated from Git information by running 'setup.py
33
# version'. Distribution tarballs contain a pre-generated copy of this file.
44

5-
65
__version__ = '1.3.2'

0 commit comments

Comments
 (0)