# HG changeset patch # User abims-sbr # Date 1757579242 0 # Node ID faadbce1bbd2cc40e9c5214d9cbaab06192e9d50 # Parent 000dbfafe31d47e9f6968b316a895f66b3704876 planemo upload for repository https://github.com/abims-sbr/adaptsearch commit ee0948efcef5f8732f7f32ce37a8127d891d0c64 diff -r 000dbfafe31d -r faadbce1bbd2 filter_assembly.xml --- a/filter_assembly.xml Mon Jun 30 12:23:02 2025 +0000 +++ b/filter_assembly.xml Thu Sep 11 08:27:22 2025 +0000 @@ -1,4 +1,4 @@ - + Filter the outputs of Spades, Velvet or Trinity assemblies diff -r 000dbfafe31d -r faadbce1bbd2 scripts/S01_script_to_choose.py --- a/scripts/S01_script_to_choose.py Mon Jun 30 12:23:02 2025 +0000 +++ b/scripts/S01_script_to_choose.py Thu Sep 11 08:27:22 2025 +0000 @@ -5,6 +5,7 @@ from Bio import SeqIO + def fasta_formatter(input_file, output_file): """ Reformats the input FASTA file to ensure that sequences @@ -26,6 +27,7 @@ if sequence: outfile.write(sequence + '\n') + def reformat_headers(input_file, output_file, prefix): """ Reformats the headers of the FASTA records by adding a specified prefix @@ -76,6 +78,7 @@ # Write output file with new headers SeqIO.write(modified_sequences, output_fasta, "fasta") + def main(): if len(sys.argv) < 5: print( @@ -156,5 +159,6 @@ os.remove(cap_contigs_file) os.remove(name_fasta_final) + if __name__ == "__main__": main()