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

Mouse or human (?) for option "species" #89

Open
yingzhang121 opened this issue Jun 17, 2024 · 1 comment
Open

Mouse or human (?) for option "species" #89

yingzhang121 opened this issue Jun 17, 2024 · 1 comment

Comments

@yingzhang121
Copy link

Hi, I encountered a weird issue while running BayesPrism.

I am working on Mouse data, and the gene names are in the following format:

> head(colnames(sc.dat))
[1] "ENSMUSG00000109644" "ENSMUSG00000007777" "ENSMUSG00000086714" "ENSMUSG00000043644" "ENSMUSG00000020831"
[6] "ENSMUSG00000046683"

After plotting the outlier genes, I started to filter out genes using the cleanup.genes() function.

Below is my error:

> sc.dat.filtered <- cleanup.genes(input=sc.dat, input.type="GEP", species="hs",
+                                   gene.group=c("Rb","Mrp","other_Rb","chrM","MALAT1","chrX","chrY"))
[1] "As the input is a collpased GEP, exp.cells is set to min(exp.cells,1)"
EMSEMBLE IDs detected.
number of genes filtered in each category: 
      Rb      Mrp other_Rb     chrM   MALAT1     chrX     chrY 
       0        0        0        0        0        0        0 
A total of  0  genes from Rb Mrp other_Rb chrM MALAT1 chrX chrY  have been excluded 
A total of  596  gene expressed in fewer than  1  cells have been excluded 


> sc.dat.filtered <- cleanup.genes(input=sc.dat, input.type="GEP", species="mm",
+                                   gene.group=c("Rb","Mrp","other_Rb","chrM","MALAT1","chrX","chrY"))
[1] "As the input is a collpased GEP, exp.cells is set to min(exp.cells,1)"
EMSEMBLE IDs detected.
Error in `[.data.frame`(category.matrix, , gene.group, drop = F) : 
  undefined columns selected

So I checked the help page for cleanup.genes, it says:

species | A character variable to denote if genes are human ("mm") or mouse ("hs"). Currently only these two species are supported.

Does this mean in some of the functions, we should use "hs" for mouse data, and in some functions, we should use "mm" for mouse data?

So confusing.

Best,
Ying

@tinyi
Copy link
Collaborator

tinyi commented Jun 18, 2024 via email

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

2 participants