Previous changeset 2:b36bdd17d99a (2024-06-28) Next changeset 4:318248986ee7 (2024-06-28) |
Commit message:
planemo upload commit b9287cffb7503159debac57d68917f5d337f0c9e-dirty |
modified:
dna_features_viewer/biotools.py linear_genome_plot.xml |
added:
local_requirements.txt |
b |
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): |
b |
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' |
b |
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 |
b |
@@ -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 |