diff --git a/porechop/porechop.py b/porechop/porechop.py index 16653fe..5fd91c6 100755 --- a/porechop/porechop.py +++ b/porechop/porechop.py @@ -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 @@ -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