construct.CAM: Quickly Construct a Simple "CAM" Class Object from .rawld...

Description Usage Arguments Value Note See Also Examples

View source: R/CAMer.R

Description

Construct a simple "CAM" class object which can be passed to plot.CAM and whose elements in CAM.list can be passed to reconstruct.fitted. Can be used when only the .rawld file, m_1 and the summary table is available (e.g., only the summary table was saved after running CAM last time).

Usage

1
construct.CAM(rawld, m1, dataset)

Arguments

rawld

original .rawld filepath or its data frame

m1

the admixture proportion of population 1 or the path of the .log file containing this information. If m2 is the admixing proportion of population 2, then m1+m2=1. The .log file should be the output of MALDmef.

dataset

summary table as in summary of an object of "CAM" class

Value

a simple "CAM" class object.

Note

The returned onject is not as complate as the "CAM" class object obtained from CAM. Particularly, it does not include the information about how the estimates are found. The T and A are not the original ones. The T is the minial possible one, i.e. the smallest one that is sufficient to do the following analysis and construction.

See Also

CAM, plot.CAM

Examples

1
2
3
4
5
6
7
8
data(GA_I)
fit<-CAM(GA_I,m1=0.3,T=150L)
dataset<-fit$summary
fit2<-construct.CAM(GA_I,m1=0.3,dataset)
## Not run: 
plot(fit2)

## End(Not run)

QIU-Hongxiang-David/CAMer documentation built on Nov. 13, 2021, 5:15 p.m.