Created
February 14, 2015 17:08
-
-
Save jnpaulson/72f5976fe1cdc398d1a2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setMethod("normFactors", signature(object="MRexperiment"), | |
function(object) { | |
nf <- pData(obj@expSummary$expSummary)[["normFactors"]] | |
nf <- unlist(nf) | |
names( nf ) <- sampleNames(object) | |
nf | |
}) | |
setReplaceMethod("normFactors", signature(object="MRexperiment", value="numeric"), | |
function( object, value ) { | |
pData(object@expSummary$expSummary)[["normFactors"]] <- value | |
validObject( object ) | |
object | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Why the
unlist
in line 4?