# HG changeset patch # User abims-sbr # Date 1751286164 0 # Node ID 79f75b3faca5d9bbb9fc845d35aad53a7aea9792 # Parent 36084a2949bfea624d471cd51ee9635a2df05d79 planemo upload for repository https://github.com/abims-sbr/adaptsearch commit ef336d64317cbf496202203c7adcd368249e99f9 diff -r 36084a2949bf -r 79f75b3faca5 filter_assembly.xml --- a/filter_assembly.xml Mon Feb 03 14:37:14 2025 +0000 +++ b/filter_assembly.xml Mon Jun 30 12:22:44 2025 +0000 @@ -1,7 +1,7 @@ - + - Filter the outputs of Velvet or Trinity assemblies + Filter the outputs of Spades, Velvet or Trinity assemblies @@ -34,7 +34,7 @@ - + diff -r 36084a2949bf -r 79f75b3faca5 scripts/S01_script_to_choose.py --- a/scripts/S01_script_to_choose.py Mon Feb 03 14:37:14 2025 +0000 +++ b/scripts/S01_script_to_choose.py Mon Jun 30 12:22:44 2025 +0000 @@ -5,7 +5,6 @@ from Bio import SeqIO - def fasta_formatter(input_file, output_file): """ Reformats the input FASTA file to ensure that sequences @@ -27,7 +26,6 @@ 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 @@ -78,7 +76,6 @@ # Write output file with new headers SeqIO.write(modified_sequences, output_fasta, "fasta") - def main(): if len(sys.argv) < 5: print( @@ -152,6 +149,12 @@ name_final_file = os.path.join(output_dir, tmp) fasta_formatter(name_fasta_final, name_final_file) + # Deletion of temporary files + os.remove(name_fasta_formatter) + os.remove(merged_file) + os.remove(cap_singlets_file) + os.remove(cap_contigs_file) + os.remove(name_fasta_final) if __name__ == "__main__": main()