Update object
Usage
updateObject(object, ..., verbose = FALSE)
# S4 method for bcbioRNASeq
updateObject(object, rowRanges = NULL, ..., verbose = FALSE)
Arguments
- object
Object.
- rowRanges
GRanges
orNULL
. Row annotations. Since we converted toRangedSummarizedExperiment
in v0.2.0, this option had to be added to enable updating of newly requiredrowRanges
slot. Objects that are >= v0.2 don't require this argument and it can be leftNULL
.- ...
Additional arguments.
- verbose
logical(1)
. Run the function with verbose output.
Details
Update old objects created by the bcbioRNASeq package. The session information metadata is preserved from the time when the bcbio data was originally loaded into R.
Legacy bcbioRNADataSet
class
Support for bcbioRNADataSet
objects was dropped in v0.2.0 of the package.
If you need to load one of these objects, please install an older release.
Legacy bcbioRnaseq
package
The previous bcbioRnaseq
package (note case) must be reinstalled to load
objects from versions <= 0.0.20. We changed the name of the package to
bcbioRNASeq
starting in v0.0.21.
Examples
data(bcb)
## bcbioRNASeq ====
object <- bcb
object <- updateObject(object)
validObject(object)
#> [1] TRUE
## Example that depends on remote file.
object <- pipette::import(file.path(
bcbioRnaSeqTestsUrl,
"bcbioRNASeq_0.1.4.rds"
))
#> → Downloading <https://r.acidgenomics.com/testdata/bcbiornaseq/bcbioRNASeq_0.1.4.rds> to /private/var/folders/l1/8y8sjzmn15v49jgrqglghcfr0000gn/T/RtmpLRa76s/AuSYziw95V-171162800316016/pipette-b228666eafd5.rds.
#> → Importing <https://r.acidgenomics.com/testdata/bcbiornaseq/bcbioRNASeq_0.1.4.rds> using base::`readRDS()`.
object <- updateObject(object, verbose = TRUE)
#> → Updating <bcbioRNASeq> object from version "0.1.4" to "0.6.2".
#> ℹ `NAMES` slot must be set to "NULL".
#> ℹ `elementMetadata` slot must contain a zero-column <DFrame>.
#> ! Slotting empty `rowRanges()`.
#> ! Dropping legacy `bcbio` slot.
#> ! Setting `bcbioLog` as "empty character".
#> ! Setting `bcbioCommands` as "empty character".
#> ! Stashing empty `call`.
#> ! Setting `caller` as "salmon".
#> ! Dropping legacy `design`.
#> → Renaming `ensemblVersion` to `ensemblRelease`.
#> → Setting `ensemblRelease` as <integer>.
#> → Setting `gffFile` as <character>.
#> → Setting `lanes` as integer.
#> → Setting `level` as "genes".
#> → Renaming `programs` to `programVersions`.
#> → Coercing `programVersions` to <DFrame>.
#> → Setting `sampleMetadataFile` as <character>.
#> → Simplifying stashed `sessionInfo`.
#> → Dropping legacy `template`.
#> ! Dropping `unannotatedGenes` from `metadata()`.
#> ! Setting `countsFromAbundance` as "lengthScaledTPM".
#> → Coercing <data.frame> to <TxToGene>.
#> → Coercing `vst` assay from <DESeqTransform> to <matrix>.
#> → Coercing `rlog` assay from <DESeqTransform> to <matrix>.
#> → Renaming `raw` assay to `counts`.
#> → Dropping `tmm` from `assays()`. Calculating on the fly instead.
#> → Setting `level` in `rowRanges` metadata.
#> → Setting `organism` in `rowRanges` metadata.
#> → Moving `metrics` from `metadata()` into `colData()`.
#> → Renaming `x53Bias` to `x5x3Bias`.
#> ✔ Update of <bcbioRNASeq> object was successful.
#> [updateObject] Validating the updated object ...
#> OK
validObject(object)
#> [1] TRUE