Skip to content

Commit

Permalink
Added parameter cutoffVersion to function power.sameReadDepth.restric…
Browse files Browse the repository at this point in the history
…tedDoublets (missed when introducing the parameter)
  • Loading branch information
katharina.schmid committed Jun 25, 2021
1 parent f28265a commit 7deb134
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/power.R
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,8 @@ power.sameReadDepth.withDoublets<-function(nSamples,nCells,ct.freq,
} else if (multipletRateGrowth == "constant") {
multipletFraction<-multipletRate
} else {
stop("No known option for multipletRateGrowth. Use the values 'linear' or 'constant'.")
stop(paste("Input", multipletRateGrowth, "No known option for multipletRateGrowth.",
"Use the values 'linear' or 'constant'."))
}

#Check that the number of cells entered does not provide a multiplet rate of >100%
Expand Down Expand Up @@ -754,6 +755,7 @@ power.sameReadDepth.restrictedDoublets<-function(nSamples,nCells,ct.freq,
mappingEfficiency=0.8,
multipletRate=7.67e-06,multipletFactor=1.82,
min.UMI.counts=3,perc.indiv.expr=0.5,
cutoffVersion="absolute",
nGenes=21000,samplingMethod="quantiles",
multipletRateGrowth="linear",
sign.threshold=0.05, MTmethod="Bonferroni",
Expand All @@ -779,6 +781,7 @@ power.sameReadDepth.restrictedDoublets<-function(nSamples,nCells,ct.freq,
mappingEfficiency,
multipletRate,multipletFactor,
min.UMI.counts,perc.indiv.expr,
cutoffVersion,
nGenes,samplingMethod,
multipletRateGrowth,
sign.threshold,
Expand Down
4 changes: 4 additions & 0 deletions man/power.sameReadDepth.restrictedDoublets.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7deb134

Please sign in to comment.