read_faa {ampir} | R Documentation |
This function reads a FASTA amino acids file into a dataframe
read_faa(file = NULL)
file |
file path to the FASTA format file containing the protein sequences |
Dataframe containing the sequence name (seq_name) and sequence (seq_aa) columns
This function was adapted from 'read.fasta.R' by Jinlong Zhang (jinlongzhang01@gmail.com) for the phylotools package (http://github.com/helixcn/phylotools)
read_faa(system.file("extdata/bat_protein.fasta", package = "ampir"))
## Output
# seq_name seq_aa
# [1] G1P6H5_MYOLU MALTVRIQAACLLLLLLASLTSYSL....