Skip to content

samples function and generics #35

@nsheff

Description

@nsheff

the bioconductor Biobase package creates a generic samples function:

https://github.com/Bioconductor/Biobase/blob/2845fa44788b8379f931fa0a19c6812fb1dd453b/R/AllGenerics.R#L60

This makes it so if you load Biobase after BiocProject, it fails:

library(BiocProject)
library(Biobase)
bp = BiocProject::BiocProject("/home/ns5bc/code/dura_macs/metadata/config.yaml", subproject="atac")
samples(bp)

Returns:

Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘samples’ for signature ‘"SimpleList"’

and:


Attaching package: ‘Biobase’

The following object is masked from ‘package:BiocProject’:

    samples

The following object is masked from ‘package:pepr’:

    samples

it works if you load BiocProject after Biobase, but then samples can't work on a MIAME object:

> samples(m)
Error in (function (classes, fdef, mtable)  : 
  unable to find an inherited method for function ‘samples’ for signature ‘"MIAME"’
> Biobase::samples(m)
list()
> class(m)
[1] "MIAME"
attr(,"package")
[1] "Biobase"

Is there any way to make these place nicely?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions