simRFLP: Simulation of Restriction Fragment Length Polymorphism...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/simRFLP.R

Description

Simulates a Restriction Fragment Length Polymorphism (RFLP) analysis of given DNA sequences.

Usage

1
simRFLP(DNAbin, enzyme)

Arguments

DNAbin

A 'DNAbin' object.

enzyme

Character vector giving the name of the enzyme(s) to simulate fragmentation.

Details

RFLP uses restriction enzymes to digest amplified DNA, cutting them into different lengths depending on the frequency of the enzyme's recognition sequence in the given sequence. When run on an agarose gel, the different length sequences can provide an easy way to differentiate between species and populations.

This function simulates the fragmentation of known DNA sequences, resulting in a vector of the length of resulting fragments for each sequence. The resulting object can be plotted to provide a pictoral impression of what the agarose gel for those sequences will look like.

Value

A list of class 'simRFLP'. Length of the list corresponds to the number of sequences in the given 'DNAbin', each element being a numeric vector giving the length (in basepairs) of the resulting fragments.

Author(s)

Samuel Brown <s_d_j_brown@hotmail.com>

See Also

enzymes, plot.simRFLP

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
data(dolomedes)
doloSpp <- substr(dimnames(dolomedes)[[1]], 1, 5)

doloRFLP <- simRFLP(dolomedes, "Alu1")
doloRFLP
plot(doloRFLP)
plot(doloRFLP, sppVector = doloSpp, linewex = 0.1)

doloRFLP2 <- simRFLP(dolomedes, c("Alu1", "EcoRII"))
doloRFLP2
plot(doloRFLP2)

spiderDev documentation built on May 2, 2019, 5:23 p.m.

Related to simRFLP in spiderDev...