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

Annotating simulated genes as differentially expressed or not #137

Closed
dinithins opened this issue Mar 2, 2022 · 2 comments
Closed

Annotating simulated genes as differentially expressed or not #137

dinithins opened this issue Mar 2, 2022 · 2 comments
Labels

Comments

@dinithins
Copy link

dinithins commented Mar 2, 2022

Hi, I am using Splatter to simulate differential expression for 2 groups. I want to label each gene in the simulated dataset as a true positive of DE or true negative of DE. As the documentation says that "DEFacGroup" having a value of 1 indicates that a gene is not DE, I extracted the genes for which DEFacGroup is not equal to 1 for both groups, separately, so that I have a true DE gene list across both groups by taking the union of the above 2 separate extractions. Then I notice that there are several genes that appear differentially expressed in terms of both groups. Since we consider a gene to be DE with respect to one another, how should those few genes be interpreted as DE or non DE? May be I am missing something here, and I greatly appreciate if the identificaiton of a true DE gene can be clarified. Thanks in advance!

Below is the code snippet I am running.

params <- newSplatParams()

params <- setParam(params, "nGenes", 1000) 
params <- setParam(params, "batchCells", 1000) 
params <- setParam(params, "group.prob", c(0.5,0.5)) 
params <- setParam(params, "de.prob", 0.03) 
params <- setParam(params, "de.facLoc", 0.7 )
params <- setParam(params, "de.facScale", 1.0) 
params <- setParam(params, "dropout.type", "experiment") 
params <- setParam(params, "dropout.mid", 0 )
params <- setParam(params, "dropout.shape", -1)

sim <- splatSimulate(params, method="groups", verbose=FALSE)
@lazappi
Copy link
Collaborator

lazappi commented Mar 3, 2022

Hi @dinithins

Thanks for giving {splatter} a go! Please have a look at the comments in #57. Hopefully that will answer your question but please reply if anything isn't clear.

@dinithins
Copy link
Author

Many thanks! The detailed explanation in #57 is very clear and answers my question.

@lazappi lazappi closed this as completed Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants