-
Notifications
You must be signed in to change notification settings - Fork 6
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
CTS-DE Analysis #11
Comments
Hey, Thanks for using our tool, and sorry for my late response as I went to Italy for vacation in past two weeks. The provided exampleDataset is used for only run for demo, it's a simulation dataset so we know that y is [1,1,1...,1,0,0,0,...,0] vector. Here y is phenotype vector, in real case, suppose we have three samples with sample-1,2,3, and the phenotype you interest with is ['control', 'case', 'control']. Then we encoded the phenotype vector as [0,1,0]. In this case, the positive ExpressionDifference means gene is up-regulated in 'case' sample. Following above way to provide your y vector, p is not important and only used for demo. Note: I updated the package, when run ENIGMA_trace_norm, please use following function
the newest added parameter do_cpm means whether we need to perform cpm normalisation perform deconvolution. in our simulation dataset, because gene expression is sampled from normal distribution, so you could regard the input gene expression matrix as Z-score transformed matrix, then perform deconvolution. Therefore any preprocessing is unnecessary, so do_cpm = FALSE, pos = FALSE (convert the resulted gene expression matrix is positive in all entries) and preprocess = "none" (don't need log or sqrt transformation) Best, |
Hi Ken, |
No, gl is a function used to generate factor level, what you need is just
in my provided case Best, |
Yay thank you so much, this corrected the initial issue for me and now my 3 control and 3 case samples are entered correctly. But with:
I now have new issue I cannot figure out how to solve: I looked at the traceback: I cannot figure out how to correct this issue with mu. |
Thank you so much for designing this wonderful program. For the Cell Type Specific Differential Expression (CTS-DE) Analysis could you please offer more context for setting this up after normalizing the ENIGMA? In vignette the analysis is performed by:
p <- 100
y <- as.numeric(gl(2, p/2)) - 1
DEG <- FindCSE_DEG(egm, y)
How are the values and formula for 'p' and 'y' determined? Doing 'Help?' for FindCSE_DEG does not define 'y'
Currently I cannot get this step to work and get error:
"CSE estimates and y have different length"
Error in h(simpleError(msg, call)) :
error in evaluating the argument 'object' in selecting a method for function 'coef': variable lengths differ (found for 'Epithelium')
The text was updated successfully, but these errors were encountered: