Thanks to visit codestin.com
Credit goes to github.com

Skip to content

zinbAIC, zinbBIC functions seems to have got the rows and columns of the data matrix switched #40

@reubenthomas

Description

@reubenthomas

Hi Davide,

I looked at the code for the functions zinbAIC and zinbBIC. It seems like the rows and columns are switched in the if function:

if ((nSamples(model) != nrow(x))|(nFeatures(model) != ncol(x))) {
stop("x and model should have the same dimensions!")
}

Shouldn't the rows of the x data matrix correspond to the features (genes) and columns to the samples (cells)?

Thanks,
-Reuben

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