clean_DNA_file: Clean DNA file

View source: R/clean_DNA.R

clean_DNA_fileR Documentation

Clean DNA file

Description

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'.

Usage

clean_DNA_file(input_file)

Arguments

input_file

The name of the input multi FASTA file.

Value

A character string specifying the path to the output FASTA file.

Examples

sample_file_path_three <- system.file("extdata", "sample2_fa.fasta", package = "baseq")
clean_DNA_file(sample_file_path_three)


ambu-vijayan/baseq documentation built on May 6, 2023, 10:31 p.m.