Skip to content

Commit

Permalink
Use fixed grep patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
mdshw5 authored May 26, 2022
1 parent 67126e4 commit 420f8f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pisces/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,15 +149,15 @@ def fingerprint_sample(args, fastq_1, fastq_2, data_dir, output_dir,
kmers2_outname, 'w') as kmers2_out:
p1 = Popen(
[
'zgrep', '-h', '-o', '-f',
'zgrep', '-F', '-h', '-o', '-f',
os.path.join(data_dir, 'data/fp_kmers_col1.txt'),
' '.join(fastq_1)
],
stdout=kmers1_out,
stderr=PIPE)
p2 = Popen(
[
'zgrep', '-h', '-o', '-f',
'zgrep', '-F', '-h', '-o', '-f',
os.path.join(data_dir, 'data/fp_kmers_col1.txt'),
' '.join(fastq_2)
],
Expand All @@ -169,7 +169,7 @@ def fingerprint_sample(args, fastq_1, fastq_2, data_dir, output_dir,
with open(kmers1_outname, 'w') as kmers1_out:
p1 = Popen(
[
'zgrep', '-h', '-o', '-f',
'zgrep', '-F', '-h', '-o', '-f',
os.path.join(data_dir, 'data/fp_kmers_col1.txt'),
' '.join(fastq_1)
],
Expand Down

0 comments on commit 420f8f0

Please sign in to comment.