diff BlastParser_and_hits.py @ 5:5b7aa9f6fd59 draft default tip

planemo upload for repository https://github.com/ARTbio/tools-artbio/tree/master/tools/blastparser_and_hits commit 51a6a16f2b26ed1a44243a17fcd32e302e69cb62
author artbio
date Thu, 22 Dec 2022 12:27:22 +0000
parents b4c9c085d709
children
line wrap: on
line diff
--- a/BlastParser_and_hits.py	Wed Mar 10 16:32:18 2021 +0000
+++ b/BlastParser_and_hits.py	Thu Dec 22 12:27:22 2022 +0000
@@ -47,7 +47,7 @@
                             help="sequences that have not been blast aligned")
     the_parser.add_argument('--dataset_name', action="store", type=str,
                             default="",
-                            help="the name of the dataset that has been parsed,\
+                            help="name of the dataset that has been parsed,\
                                   to be reported in the output")
     args = the_parser.parse_args()
     if not all((args.sequences, args.blast, args.fastaOutput,
@@ -194,7 +194,7 @@
     def filter_results(results, filter_relativeCov=0, filter_maxScore=0,
                        filter_meanScore=0, filter_term_in="",
                        filter_term_out=""):
-        for subject in results.keys():
+        for subject in list(results):
             if results[subject][
                        "RelativeSubjectCoverage"] < filter_relativeCov:
                 del results[subject]