This function reads a multi FASTA file containing DNA sequences, removes any characters other than A, T, G, and C, and writes the cleaned sequences to a new multi FASTA file. The output file name is generated from the input file name with the suffix '_clean.fasta'.
Examples
sample_file_path_three <- system.file("extdata", "sample2_fa.fasta", package = "baseq")
clean_DNA_file(sample_file_path_three)
#> Cleaned sequences written to file 'C:/Users/BSL CTCRI/AppData/Local/Temp/RtmpYlDm86/temp_libpath49301e5117b7/baseq/extdata/sample2_fa_clean.fasta'.