-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error in ImputeDNAmRef #3
Comments
Hi, |
Thank you for the reply! I checked into the
where some xx[[map.idx[n]]][1] return NULL thus causing the trouble. |
Dear developer, |
We only used samples for which there was both DNA methylation and RNA-Seq expression. Any sample related to cancer was dropped. At the time we processed the data, there were 45 samples with both types of data in RMAP and 34 samples in SCM2. You can check what the samples are since the database matrix columns are annotated to their tissue/cell-type. |
Thank you for the reply. I checked that my tissue of interest was not included in neither RMAP nor SCM2. Can I still use EpiSCORE to impute the DNAm reference for our samples? Do we assume that model trained from those samples in RMAP and SCM2 can be applied to other tissues (or cell types) universally? |
What is your tissue? |
Placenta |
EpiSCORE was designed for adult tissues (e.g. adult lung, breast, skin, brain,...). I doubt that it can be successfully applied to placenta, as many of the cell-types present in placenta were not represented in the RMAP and SCM2 databases. As always, |
Hey, Thank you for your help! |
There is a bug in that part of the code where it converts the gene annotation, which will be corrected in due course. |
I was having the same issue and solved it as you describe. But now I am getting another error:
p.m was my normalized count matrix. This is a third type of error I am getting with the ImputeDNAmRef function, and I have tried various different inputs, checked for ranges and negative values, etc. From everything that I can see from object description of expref.o$ref$med, I tried to make it as similar to yours use in the vignette, but cannot get the function to work. I am also using 4 categories only. traceback() Do you know what 0.2 is referring to? |
Well, the "p.m" within the ImputeDNAmRef function refers to the expression matrix from the database (RMAP/SCM2), so nothing to do with your count matrix. I suspect the problem may be related to your expref.o$ref$med....... it could be that for one or more cell-types, there is no marker gene that are not expressed in that cell-type, which would then make "notE.idx" NULL and "p.m" undefined, and you'd get the error you are reporting. Alternatively, you still have a problem with your gene annotation. For instance, it could be that your EntrezID are e.g. " 2406" which would perhaps not match to the numeric 2406 identifier in the database reference matrices we provide. |
Dear developers,
I encountered an error while running:
refMscm2.m<- ImputeDNAmRef(expref.o$ref$med,db="SCM2",geneID="SYMBOL");
Error in eidNA.v[n] <- xx[[map.idx[n]]][1] : replacement has length zero
I have a different tissue type, could this error mean that there is no hit for my marker genes in the database?
I constructed expref.o using:
expref.o <- ConstExpRef( data, celltype.idx, celltype.v );
and succesfully obtained the reference matrix:
[1] "Now construct reference"
[1] 1727 5
Type1 Typel2 Type3 Type4 Type5
CYP19A1 0 0 0 0 3.169925
SERPINE1 0 0 0 0 2.807355
EPS8L1 0 0 0 0 2.321928
The text was updated successfully, but these errors were encountered: