MarioniLab / scran

Clone of the Bioconductor repository for the scran package.
https://bioconductor.org/packages/devel/bioc/html/scran.html
40 stars 22 forks source link

'clusters' or 'cluster' in computeSumFactor #29

Closed yicheinchang closed 5 years ago

yicheinchang commented 5 years ago

Hi,

Just a very naive question. In the reference manual of scran, computeSumFactors has one argument named clusters. However, in almost all of the documents/tutorials, people use cluster instead of clusters.

For instance:

Are cluster and clusters interchangeable in computeSumFactors?

Thanks, Yi-Chien (Bart).

LTLA commented 5 years ago

R will just expand cluster= in the function call to clusters=. For example:

FUN <- function(someReallyLongArgument) {
    someReallyLongArgument + 1
}

FUN(some=1)
yicheinchang commented 5 years ago

I see...Thanks :)