Learn R Programming

BPEC (version 1.3.1)

bpec.loadSeq: 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".

Value

rawSeqs

R object of sequences.

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.

Examples

Run this code
# NOT RUN {
#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')
# }

Run the code above in your browser using DataLab