Skip to content

Commit

Permalink
Merge pull request #401 from kevm29/patch-1
Browse files Browse the repository at this point in the history
Update split_reads.py
  • Loading branch information
nservant authored Feb 1, 2021
2 parents c0198d7 + 01a14bd commit 84eb7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/utils/split_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

if filename.endswith('.gz'):
prefix = re.sub('((.fastq)|(.fq)).gz','_part', os.path.join(out, os.path.basename(filename)))
cmd = "zcat {} | split -l {} -d - {}".format(
cmd = "zcat -fc {} | split -l {} -d - {}".format(
filename, nlines, prefix)
else:
prefix = re.sub('(.fastq)|(.fq)','_part', os.path.join(out, os.path.basename(filename)))
Expand Down

0 comments on commit 84eb7f1

Please sign in to comment.