format the sequence headers for fasta file obtained from NCBI blast output
format_fasta_headers(fasta_file = NULL, keep_alignemnt_coord = TRUE)
fasta_file | string denoting full path of a fasta file. |
---|---|
keep_alignemnt_coord | logical (default : TRUE) decides whether alignment coordinates to keep in headers or not. When TRUE header must contains alignment coordinates in this format |
sequences as an object of class Biostrings
if (FALSE) { f <- system.file("extdata","blast_output_01.fasta" ,package = "phyloR") ## existing headers Biostrings::readAAStringSet(f) %>% names() %>% head() ## new headers f %>% format_fasta_headers() %>% names() %>% head() }