Skip to content
Snippets Groups Projects
checkFractionOfZero.Rd 683 B
Newer Older
Arnaud Duvermy's avatar
Arnaud Duvermy committed
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mock_rnaseq.R
\name{checkFractionOfZero}
\alias{checkFractionOfZero}
\title{Check Fraction of Zero or One in Counts Table}
\usage{
checkFractionOfZero(counts_table)
}
\arguments{
\item{counts_table}{A matrix or data frame representing counts.}
}
\description{
This function checks the percentage of counts in a given counts table that are either zero or one.
If more than 50\% of the counts fall in this category, a warning is issued, suggesting a review of input parameters.
}
\examples{
# Example usage:
counts_table <- matrix(c(0, 1, 2, 3, 4, 0, 0, 1, 1), ncol = 3)
checkFractionOfZero(counts_table)
}