Skip to content

attachContext errored out #25

@jianxinwang

Description

@jianxinwang

Hi,

I'm having trouble with this code:

> x <- attachContext(mutData = x,
+                    chr_colName = "chr",
+                    start_colName = "position",
+                    end_colName = "position",
+                    nucl_contextN = 3,
+                    BSGenomeDb = hg38)
An error has occurred!

I traced down the place and found the following is causing the failure:

if ((! "BSgenome" %in% class(BSGenomeDb))  | 
      sum(c("pkgname", "organism") %in% methods::slotNames(BSGenomeDb)) != 2)
    stop ("Please, provide a valid 'BSgenome'-class object")

It turns out that "organism" is not in methods::slotNames(BSGenomeDb).

Please suggest solutions.

Thanks.

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