Skip to content

Commit

Permalink
Leave in wrong barcodes for trimming
Browse files Browse the repository at this point in the history
  • Loading branch information
rrwick committed Feb 2, 2018
1 parent 3fde10f commit 3e8caed
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions porechop/porechop.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def main():
if args.barcode_dir:
forward_or_reverse_barcodes = choose_barcoding_kit(matching_sets, args.verbosity,
args.print_dest)
matching_sets = exclude_wrong_barcodes(matching_sets, forward_or_reverse_barcodes)
else:
forward_or_reverse_barcodes = None

Expand Down Expand Up @@ -391,20 +390,6 @@ def fix_up_1d2_sets(matching_sets):
return matching_sets


def exclude_wrong_barcodes(matching_sets, forward_or_reverse_barcodes):
"""
Rapid reads shouldn't have end adapters, so we don't want to look for them if this seems to be
a rapid read set.
"""
if forward_or_reverse_barcodes == 'forward':
matching_sets = [x for x in matching_sets
if not ('Barcode' in x.name and '(reverse)' in x.name)]
elif forward_or_reverse_barcodes == 'reverse':
matching_sets = [x for x in matching_sets
if not ('Barcode' in x.name and '(forward)' in x.name)]
return matching_sets


def display_adapter_set_results(matching_sets, verbosity, print_dest):
if verbosity < 1:
return
Expand Down

0 comments on commit 3e8caed

Please sign in to comment.