bpec.loadSeq {BPEC}R Documentation

Load sequence data

Description

Create R objects of sequences from NEXUS file.

Usage

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

#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)

[Package BPEC version 1.3.1 Index]