read_faa {ampir}R Documentation

Read FASTA amino acids file into a dataframe

Description

This function reads a FASTA amino acids file into a dataframe

Usage

read_faa(file = NULL)

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


read_faa(system.file("extdata/bat_protein.fasta", package = "ampir"))

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

[Package ampir version 1.1.0 Index]