Learn R Programming

phylosim (version 3.0.5)

getAlignment.PhyloSim: Get the alignment stored in a PhyloSim object

Description

Get the alignment stored in a PhyloSim object.

Usage

# S3 method for PhyloSim
getAlignment(this, ...)

Arguments

this

A PhyloSim object.

...

Not used.

Value

The alignment as a matrix. Gap are represented by strings composed of dashes.

See Also

For more information see PhyloSim.

Examples

Run this code
# NOT RUN {
	# Create a PhyloSim object.
	# Provide the phylo object
	# and the root sequence.
	sim<-PhyloSim(
		name="TinySim",
		phylo=rcoal(3),
		root.seq=NucleotideSequence(string="ATG",processes=list(list(JC69())))
	);
	# run the simulation
	Simulate(sim)
	# get the resulting aligment
	getAlignment(sim)
	# via virtual fileld:
	sim$alignment
 
# }

Run the code above in your browser using DataLab