Previous changeset 17:5b85006245f3 (2023-05-31) Next changeset 19:2f7702fd0a4c (2024-05-08) |
Commit message:
planemo upload for repository https://github.com/usegalaxy-au/tools-au commit ef97511263dcac81f8563ae6a98d1db2400fcf1d |
modified:
alphafold.xml scripts/validate_fasta.py |
b |
diff -r 5b85006245f3 -r e4a053d67e24 alphafold.xml --- a/alphafold.xml Wed May 31 01:30:22 2023 +0000 +++ b/alphafold.xml Fri Sep 01 00:09:46 2023 +0000 |
b |
@@ -3,7 +3,7 @@ <macros> <token name="@TOOL_VERSION@">2.3.1</token> <token name="@TOOL_MINOR_VERSION@">2.3</token> - <token name="@VERSION_SUFFIX@">3</token> + <token name="@VERSION_SUFFIX@">4</token> <import>macro_output.xml</import> <import>macro_test_output.xml</import> </macros> |
b |
diff -r 5b85006245f3 -r e4a053d67e24 scripts/validate_fasta.py --- a/scripts/validate_fasta.py Wed May 31 01:30:22 2023 +0000 +++ b/scripts/validate_fasta.py Fri Sep 01 00:09:46 2023 +0000 |
[ |
@@ -6,6 +6,7 @@ from typing import List MULTIMER_MAX_SEQUENCE_COUNT = 10 +STRIP_SEQUENCE_CHARS = ['\n', '\r', '\t', ' '] class Fasta: @@ -67,6 +68,9 @@ fasta_count = len(self.fastas) header = f'>sequence_{fasta_count}' + for char in STRIP_SEQUENCE_CHARS: + sequence = sequence.replace(char, '') + # Create new Fasta self.fastas.append(Fasta(header, sequence)) @@ -109,7 +113,6 @@ 'Multimer mode requires multiple input sequence.' f' Only {fasta_count} sequences were detected in' ' the provided file.') - self.fasta_list = self.fasta_list elif fasta_count > MULTIMER_MAX_SEQUENCE_COUNT: sys.stderr.write( |