hf.readData: Simple interface to read an aligned fasta file into PopGenome

Description Usage Details Examples

View source: R/hf.readData.R

Description

Reads a given fasta file into a PopGenome GENOME object. We assume that the fasta file is aligned. This will not do anything related to associated gff files. This uses the defaults of the PopGenome::readData function: populations = FALSE format = "fasta" For other information, see the PopGenome documentation. If you need something more complex than a simple fasta file loaded, it is recommended to use the PopGenome functions directly.

Usage

1
hf.readData(fasta_file)

Details

Note this will load the PopGenome package if needed.

Examples

1
2
3
4
5
6
## Not run: 
fasta_file <- "name_of_aligned.fasta"
pg.object <- hf.readData(fasta_file)
pg.dataframe <- hf.alignment.stats(pg.object)

## End(Not run)

swainechen/hfufs documentation built on June 22, 2020, 7:02 a.m.