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

problem with running CalculatePWProfiles #4

Open
nmalwinka opened this issue Feb 26, 2020 · 3 comments
Open

problem with running CalculatePWProfiles #4

nmalwinka opened this issue Feb 26, 2020 · 3 comments

Comments

@nmalwinka
Copy link

Hi,
I am trying to run Tempora on my dataset. I downloaded the right .gmt file(s) for mouse but keep getting error when running CalculatePWProfiles:

Calculating cluster average gene expression profile...Error in exprMatrix_bycluster[[i]] <- rowMeans(exprMatrix[, which(colnames(exprMatrix) %in% : attempt to select less than one element in integerOneIndex

is there any obvious thing i missed? I definitely have genes from the GO table in the rownames of my tempora_object data slot.

Thanks

@thinh-tran
Copy link
Collaborator

Hi! Sorry for the delayed response. I think Tempora might be throwing this error because it couldn't extract what clusters the cells belong to from meta.data. Can you check if the rownames of your gene expression matrix and the column names of your metadata dataframe are the same? If they're not the same, making sure they're similar and re-creating the tempora object should fix this error. If it doesn't, please let me know!

I have adjusted the CreateTemporaObject function to also check for cell names in both the expression matrix and the meta.data.

@nmalwinka
Copy link
Author

Somehow the problem was to run the gsva, when i used method="ssgsea", it worked (??)

@piloter2
Copy link

piloter2 commented Jan 7, 2021

I've met similar problems. I also expect your reply.

cortex_tempora <- CalculatePWProfiles(cortex_tempora,
gmt_path = "Mouse_GO_AllPathways_no_GO_iea_December_11_2020_symbol.gmt",
method="ssgsea", min.sz = 10, max.sz = 200, parallel.sz = 0)

Calculating cluster average gene expression profile...Error in GSEABase::getGmt(gmt_path) :
all records in the GMT file must have >= 2 fields
first invalid line: NA

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

3 participants