Skip to content

Error message when running SetAssayData() function #194

@chent5

Description

@chent5

Thanks a lot for developing this package. I am trying the development version following your online tutorial. I got an error message "Error: 'slot' must be one of counts, data, scale.data" when running SetAssayData().

=== Here is the code I use, start ===
motif.positions <- matchMotifs(
pwms = pwm,
subject = StringToGRanges(rownames(signac.object), sep = c(":", "-")),
out = 'positions',
genome = 'hg38'
)

motif <- CreateMotifObject(
positions = motif.positions,
pwm = pwm
)

signac.object <- SetAssayData(
object = signac.object,
slot = 'motifs',
new.data = motif
)
=== Here is my code, end ===
There is no error using matchMotifs() or CreateMotifObject() function. But I cannot pass the SetAssayData() function. Could you help to solve this problem? Thank you so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions