# HG changeset patch # User galaxy-australia # Date 1693526986 0 # Node ID e4a053d67e246bd2d1af0a04a21d25a0239398c5 # Parent 5b85006245f3b1d0e575e5571dd9138c9d256486 planemo upload for repository https://github.com/usegalaxy-au/tools-au commit ef97511263dcac81f8563ae6a98d1db2400fcf1d 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 @@ -3,7 +3,7 @@ 2.3.1 2.3 - 3 + 4 macro_output.xml macro_test_output.xml 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(