Open mbihie opened 1 year ago
Hi @mbihie ,
Looking at the code of how you create the infercnv object, any of the identities present in annotations_file=as.matrix(tnbc.epi@active.ident)
is a valid option for reference groups. It can be a single of them or multiple.
Since you also run
tnbc.epi <- RenameIdents(tnbc.epi,
'0' = "epithelial",
'2' = "epithelial-cycling")
#subset to only epithelial cells
tnbc.epi <- subset(x = tnbc.epi, idents = c("epithelial", "epithelial-cycling"))
It seems you only have 2 groups as part of your annotations, so you are currently setting the "epithelial-cycling" as references, and the "epithelial" as observations.
Further, looking at the log you posted, I don't actually see any error. The log you posted however is from rerunning infercnv in an existing run directory, so the backup reloading already finds all the results up to the step you specified it to run (step 15, the subclustering) and so stops after that.
If you thought you had an issue because because you don't have the final figure, you should just need to remove the up_to_step
option so it keeps going after the subclustering.
If you had an issue in step 15, based on the backup being saved in your rerun attempt, it means the error happened during the plotting which is after saving the backup. In that case, a likely source of issue is having a leiden_resolution
that is too high with the default and thus too many singleton subclusters. If you want to rerun step 15 alone to post the log of that step actually being run, you can delete the file named "15_*.infercnv_obj" and rerun infercnv as you did until now.
Regards, Christophe.
I am using a Seurat object to create an infercnv object and have filled out every argument except for ref_group_name. The object uses 10x raw count data and it is a human breast cancer tissue sample. The cells of interest are epithelial cells, which have been identified as a cluster in the object. Would the classifications of the reference (normal) cells be stored somewhere in the Seurat object? I'm not sure what the exact spelling used by the object is.
I am trying to replicate the infercnv workflow from this article (x). I cannot find the reference normal cell names used in the Seurat object titled "TNBCSub.rds" (x).
I attempted to use this c("epithelial", "epithelial-cycling") as the ref_group_name, but I got the error message below. Does anyone know where I went wrong? Any assistance would be appreciated.
subsetting the TNBC object to just the epithelial cells of interest
Create the infercnv object
run
output from creating the object
output from run