26 lines
661 B
R
26 lines
661 B
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/mstat.R
|
|
\name{m.weight}
|
|
\alias{m.weight}
|
|
\title{Computes a weigth matrix from a \code{\linkS4class{metabarcoding.data}}}
|
|
\usage{
|
|
m.weight(data)
|
|
}
|
|
\arguments{
|
|
\item{data}{a \code{\linkS4class{metabarcoding.data}} instance}
|
|
}
|
|
\value{
|
|
a weight matrix usable for M statistics
|
|
}
|
|
\description{
|
|
The weight can be considered as a propability of presence of a MOTU in a
|
|
given sample. This function defines this probability as the fraction of
|
|
the maximal occurrence frequency over all samples.
|
|
}
|
|
\examples{
|
|
data(termes)
|
|
termes.ok = termes[,colSums(termes$reads)>0]
|
|
w = m.weight(termes.ok)
|
|
|
|
}
|