read.fasta_to_list {baseq}R Documentation

Read a fasta file into a list and assign to the environment

Description

This function reads a fasta file and creates a list with two columns: Header and Sequence. The list is then assigned to the environment with the name same as the fasta file name but without the .fasta extension.

Usage

read.fasta_to_list(fasta_file)

Arguments

fasta_file

The path to the fasta file to be read.

Value

This function does not return anything. It assigns the resulting list to the environment.

Examples


# Read in sequences from a FASTA file

sample_file_path <- system.file("extdata", "sample_fa.fasta", package = "baseq")
read.fasta_to_list(sample_file_path)

# Access a specific sequence by name
# sample_fa[["sample_seq.1"]]


[Package baseq version 0.1.4 Index]