Skip to content

Commit

Permalink
lower required match length for adapter check
Browse files Browse the repository at this point in the history
  • Loading branch information
jts committed Sep 8, 2020
1 parent 6ffd46e commit 386f1a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bin/filter_residual_adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ def filter_reads(filter_sequences, input_R1_fp, input_R2_fp, output_R1_fp, outpu
# Illumina adapters that are occasionally leftover in reads
S7 = "CCGAGCCCACGAGAC"
P7 = "ATCTCGTATGCCGTCTTCTGCTTG"
filter_sequences = [ S7, P7 ]

# require a minimum match between read and adapter
min_length = 10
filter_sequences = [ S7[0:min_length], P7[0:min_length] ]

filter_reads(filter_sequences, args.input_R1, args.input_R2, output_R1, output_R2)

0 comments on commit 386f1a2

Please sign in to comment.