frag.dat(fil, enznames, enzdata)
Given the name of restriction enzyme, the function will give the simulated RFLP pattern. The input sequences must be a fasta format object, which means it must be first converted to class "fasta". Users are encouraged to use read.fasta
, read.phy
, read.nxs
to read files from local machine, and converted the data to class fasta
using as.fasta
.
### fragdat() example
data(enzdata)
data(fil.phy)
fas <- ConvFas(fil = fil.phy, type = "phy")
frag.dat(fil = fas, enznames = "EcoRI", enzdata = enzdata)
Run the code above in your browser using DataLab