# HG changeset patch # User abims-sbr # Date 1757579226 0 # Node ID a01189958ae4b9bf95bc9789864adcc2975d06d8 # Parent 79f75b3faca5d9bbb9fc845d35aad53a7aea9792 planemo upload for repository https://github.com/abims-sbr/adaptsearch commit ee0948efcef5f8732f7f32ce37a8127d891d0c64 diff -r 79f75b3faca5 -r a01189958ae4 filter_assembly.xml --- a/filter_assembly.xml Mon Jun 30 12:22:44 2025 +0000 +++ b/filter_assembly.xml Thu Sep 11 08:27:06 2025 +0000 @@ -1,4 +1,4 @@ - + Filter the outputs of Spades, Velvet or Trinity assemblies diff -r 79f75b3faca5 -r a01189958ae4 scripts/S01_script_to_choose.py --- a/scripts/S01_script_to_choose.py Mon Jun 30 12:22:44 2025 +0000 +++ b/scripts/S01_script_to_choose.py Thu Sep 11 08:27:06 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()