read_faa: Read FASTA amino acids file into a dataframe

Description Usage Arguments Value Note Examples

Description

This function reads a FASTA amino acids file into a dataframe

Usage

1

Arguments

file

file path to the FASTA format file containing the protein sequences

Value

Dataframe containing the sequence name (seq_name) and sequence (seq_aa) columns

Note

This function was adapted from 'read.fasta.R' by Jinlong Zhang (jinlongzhang01@gmail.com) for the phylotools package (http://github.com/helixcn/phylotools)

Examples

1
2
3
4
5
read_faa(system.file("extdata/bat_protein.fasta", package = "ampir"))

## Output
#         seq_name              seq_aa
# [1] G1P6H5_MYOLU  MALTVRIQAACLLLLLLASLTSYSL....

ampir documentation built on June 29, 2021, 9:09 a.m.