Skip to content

Error in floodPseudotimeProcess #84

Description

@mary77

Thank you so much for the great tool.

I just wanted to report an error that I encountered when running floodPseudotimeProcess function. I don't know why my obj.urd@diff.data hasn't been initialized during diffusion step.

It seems function try to initialize it but return this error :
obj.urd = floodPseudotimeProcess(obj.urd, flood.res, floods.name='pseudotime') Error in rownames(dm@eigenvectors) : object 'dm' not found In addition: Warning message: In floodPseudotimeProcess(obj.urd, flood.res, floods.name = "pseudotime") : Initializing @diff.data, though this should have been previously initialized by creation or importation of diffusion map.

When I checked the source code it seems that the initialization is not correct. Here is the first several lines of the floodPseudotimeProcess code:

if (nrow(object@diff.data) == 0) { warning("Initializing @diff.data, though this should have been previously initialized by creation or importation of diffusion map.") if (nrow(object@dm@eigenvectors) == 0) { stop("Make sure your diffusion map is loaded into the object (calcDM or importDM)") } object@diff.data <- data.frame(row.names = rownames(dm@eigenvectors)) } if (nrow(object@pseudotime) == 0) { warning("Initializing @pseudotime, though this should have been previously initialized by creation or importation of diffusion map.") if (nrow(object@dm@eigenvectors) == 0) { stop("Make sure your diffusion map is loaded into the object (calcDM or importDM)") } object@pseudotime <- data.frame(row.names = rownames(dm@eigenvectors)) }

I think it should be object@dm@eigenvectors instead of dm@eigenvectors

Do you have any idea why it hasn't been initialized by creation or importation of diffusion map ?

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