fasta_to_df: Read in sequence data and fasta header from a fasta file into...

View source: R/sequence_parsing.R

fasta_to_dfR Documentation

Read in sequence data and fasta header from a fasta file into a tidy dataframe

Description

Read in sequence data and fasta header from a fasta file into a tidy dataframe. Specify whether amino acid or DNA sequence in fasta file. If amino acid sequences, pI and molecular weight will be calculated

Usage

fasta_to_df(fasta_file, type = "AA")

Arguments

fasta_file

Input fasta file

type

One of "DNA" or "AA" - default = "AA"

Value

Data frame with sequences and headers from a fasta file (plus molecular weight and pI if fasta file is protein sequences)

Examples

fasta_to_df("path/to/file.fasta", type = "AA")


djw533/micro.gen.extra documentation built on Nov. 8, 2024, 5:11 a.m.