# HG changeset patch # User cpt # Date 1719544641 0 # Node ID b79e98299a78e3c0ba64f4c0854664780518c3e8 # Parent b36bdd17d99a668d330259b926d631f8bd6949f7 planemo upload commit b9287cffb7503159debac57d68917f5d337f0c9e-dirty diff -r b36bdd17d99a -r b79e98299a78 dna_features_viewer/biotools.py --- a/dna_features_viewer/biotools.py Fri Jun 28 02:21:43 2024 +0000 +++ b/dna_features_viewer/biotools.py Fri Jun 28 03:17:21 2024 +0000 @@ -34,9 +34,15 @@ return complement(sequence)[::-1] -aa_short_to_long_form_dict = { - _aa1: _aa3[0] + _aa3[1:].lower() for (_aa1, _aa3) in zip(aa1 + "*", aa3 + ["*"]) -} +if type(aa1) is str and type(aa3) is list: + aa_short_to_long_form_dict = { + _aa1: _aa3[0] + _aa3[1:].lower() for (_aa1, _aa3) in zip(aa1 + "*", aa3 + ["*"]) + } +else: + aa_short_to_long_form_dict = { + _aa1: _aa3[0] + _aa3[1:].lower() + for (_aa1, _aa3) in zip(aa1 + ("*",), aa3 + ("*",)) + } def translate(dna_sequence, long_form=False): diff -r b36bdd17d99a -r b79e98299a78 linear_genome_plot.xml --- a/linear_genome_plot.xml Fri Jun 28 02:21:43 2024 +0000 +++ b/linear_genome_plot.xml Fri Jun 28 03:17:21 2024 +0000 @@ -3,8 +3,7 @@ <macros> <import>macros.xml</import> </macros> - <expand macro="requirements"> - </expand> + <expand macro="requirements"/> <command detect_errors="aggressive"><![CDATA[ python '$__tool_directory__/linear_genome_plot.py' '$input_file' diff -r b36bdd17d99a -r b79e98299a78 local_requirements.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/local_requirements.txt Fri Jun 28 03:17:21 2024 +0000 @@ -0,0 +1,4 @@ +biopython==1.77 +cpt_gffparser==1.2.2 +pandas==1.0.5 +matplotlib==3.3.2 \ No newline at end of file