Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inefficient Manual Coding Required #6

Open
DarioS opened this issue Feb 16, 2024 · 0 comments
Open

Inefficient Manual Coding Required #6

DarioS opened this issue Feb 16, 2024 · 0 comments

Comments

@DarioS
Copy link

DarioS commented Feb 16, 2024

Some of the code in the vignette is inefficient and perhaps should be convenience functions for users. For example,

gene.set.list <- list()
for (gene.set.name in unique(mdb_c5_bp$gs_name)) {
    gene.set.list[[gene.set.name]] <- mdb_c5_bp[mdb_c5_bp$gs_name %in%
        gene.set.name, ]$gene_symbol
}

is inefficient and not how R lists should be created. A better way is split(geneSets[["gene_symbol"]], geneSets[["gs_name"]]).

Also, Preparation section has NormalizeData(pbmc3k) but doesn't explain why it is required, What is the purpose? It seems to be repeated again in MCA step, which seems inefficient to me.

> embeds <- compute.mca(allHumanSeurat)
Normalizing layer: counts
Performing log-normalization

Why does log-normalisation need to be done twice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant