# HG changeset patch # User abims-sbr # Date 1751286182 0 # Node ID 000dbfafe31d47e9f6968b316a895f66b3704876 # Parent a83562c0719f88401fc67a6bfb17a6e52d34abff planemo upload for repository https://github.com/abims-sbr/adaptsearch commit ef336d64317cbf496202203c7adcd368249e99f9 diff -r a83562c0719f -r 000dbfafe31d filter_assembly.xml --- a/filter_assembly.xml Mon Feb 03 14:37:31 2025 +0000 +++ b/filter_assembly.xml Mon Jun 30 12:23:02 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 a83562c0719f -r 000dbfafe31d scripts/S01_script_to_choose.py --- a/scripts/S01_script_to_choose.py Mon Feb 03 14:37:31 2025 +0000 +++ b/scripts/S01_script_to_choose.py Mon Jun 30 12:23:02 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()