Skip to content

version field duplicated in int_metadata after concatenating two SCE objects #65

Description

@lambdamoses

I don't think this affects the users, but I found out this issue when writing a cbind method for a class that inherits from SCE and it caused a unit test to fail. Here's the reprex:

# From an example from the SCE package
ncells <- 100
u <- matrix(rpois(20000, 5), ncol=ncells)
v <- log2(u + 1)

pca <- matrix(runif(ncells*5), ncells)
tsne <- matrix(rnorm(ncells*2), ncells)

sce <- SingleCellExperiment(assays=list(counts=u, logcounts=v),
    reducedDims=SimpleList(PCA=pca, tSNE=tsne))

Then see the int_metadata in the R console.

> int_metadata(sce)
$version
[1] ‘1.15.2’

Now I concatenate the same SCE object

sce2 <- cbind(sce, sce)

And got this:

> int_metadata(sce2)
$version
[1] ‘1.15.2’

$version
[1] ‘1.15.2’

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions