Rrestdist(X, path=NULL, ...)
"dist"
.quiet
suppress some output to R console (defaults to quiet = FALSE
); method
, the method for calculating the genetic distance - options are "Modified"
(the default), and "Nei/Li"
(Nei & Li 1979); data
, the type of data - either "sites"
or "fragments"
; gamma
alpha shape parameter of a gamma model of rate heterogeneity among sites (defaults to no gamma rate heterogeneity); kappa
transition:transversion ratio (defaults to kappa = 2.0
); site.length
the restriction site length (defaults to site.length=6
); and cleanup
remove PHYLIP input & output files after the analysis is completed (defaults to cleanup = TRUE
).
More information about the restdist program in PHYLIP can be found here Rdnadist
, Rgendist
, Rprotdist
data(restriction.data)
D<-Rrestdist(restriction.data)
Run the code above in your browser using DataLab