bpec.loadSeq: Load sequence data

Description Usage Arguments Details Value Author(s) Examples

View source: R/bpec.load.R

Description

Create R objects of sequences from NEXUS file.

Usage

1
bpec.loadSeq(seqsFile)

Arguments

seqsFile

The name of the NEXUS file in full, eg "SeqsFile.nex".

Details

Given the names of the two files, this command will create an R objects of the sequences that can be fed into bpec.MCMCout.

Value

rawSeqs

R object of sequences.

Author(s)

Ioanna Manolopoulou & Axel Hille

Examples

1
2
3
4
5
6
7
8
9
#to load existing example file from BPEC
seqsFile <- system.file("haplotypes.nex",package = "BPEC")
rawSeqs <- bpec.loadSeq(seqsFile)

## Not run: 
#to load a different input file "haplotypes.nex"
rawSeqs <- bpec.loadSeq('haplotypes.nex')

## End(Not run)

BPEC documentation built on March 2, 2020, 1:07 a.m.