rmscols | R Documentation |
Estimates the fraction of each genome in a sample, based on read counts and copy numbers for each amplicon cluster.
rmscols(rms.obj, trim = 0, reltol = 1e-06, verbose = TRUE)
rms.obj |
A |
trim |
Fraction of extreme readcounts to discard when fitting linear model. |
reltol |
Relative stopping tolerance for the iterative constrained least square search. |
verbose |
Logical, if TRUE text is written to the Console during computations. |
The rms.obj
must be a list with the required data structures for performing a
Constrained Ordinary Least Square estimation of abundances.
The rms.obj
is typically constructed by the use of RMSobject
. In this step
the copy number matrix Cpn.mat
is constructed, based on RMS fragments in a selection
(database) of genomes.
In addition, a matrix of readcounts from one or more samples is required to be found in
rms.obj$Readcount.mat
, see readMapper
and tutorial for more details on this.
A matrix with one row for each genome in rms.obj$Cpn.mat
and one column for each
sample in rms.obj$Readcount.mat
. Each column contains the estimated relative abundance for
all genomes in the corresponding sample.
Lars Snipen.
RMSobject
, readMapper
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.