WARNING! NOT CONVERGENT! number of iterations= 500
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- r
- Domain
- bioinformatics
Research direction
No repository file or test is identified. Reproduce the report using the supplied R code, Seurat object, and copykat parameters, then inspect the step 4 baseline-measurement path where the non-convergence appears. Done means identifying a reproducible cause and adding a documented or tested correction, if the repository supports one.
Written by the indexing model from the issue text.
Description
I wanted to use copykat to visualize the copy number variation of epithelial cell samples from this paper (R code and downstream analysis objects for the scRNA-seq atlas of normal and tumorigenic human breast tissue). I extracted a raw counts matrix from this seurat object (SeuratObject_TNBCSub.rds) and then filtered for the epithelial cells only. I then ran the copykat.test function on it afterwards and got the error message below. Would anyone happen to know what went wrong? I have also attached my code below. Any help would be appreciated!
code
## **libraries**
#install.packages("devtools")
library(devtools)
#install_github("navinlabcode/copykat")
library(copykat)
#install.packages("Seurat")
library(Seurat)
#install.packages("tidyverse")
library(tidyverse)
## **read seurat object**
tnbc <- readRDS("~/BRCA/BRCA-data/SeuratObject_TNBCSub.rds")
#updating the object if it won't open
tnbc = UpdateSeuratObject(object = tnbc) #use this if you get Error in eval(call("@", object, slot)) : no slot of name "images" for this object of class "Seurat"
#rename object
tnbc.epi <- tnbc
#rename clusters
tnbc.epi <- RenameIdents(tnbc.epi,
'0' = "epithelial",
'2' = "epithelial-cycling")
#subset object to just epithelial cells
tnbc.epi <- subset(x = tnbc.epi, idents = c("epithelial", "epithelial-cycling"))
#subset the data to a specific sample
tnbc.epi.4031 <- subset(tnbc.epi, subset = group == "TN_B1_4031")
saveRDS(object = tnbc.epi.4031, "~/BRCA/BRCA-data/tnbc.epi.4031.rds")
## **step 3: run copykat**
#may take a few minutes
copykat.test <- copykat(rawmat=as.matrix(tnbc.epi.4031@assays$RNA@counts),
id.type="S",
ngene.chr=3,
win.size=25,
KS.cut=0.1,
sam.name="test",
distance="euclidean",
norm.cell.names="",
output.seg="FLASE",
plot.genes="TRUE",
genome="hg20",
#LOW.DR = 0.01,
#UP.DR = 0.2,
n.cores=1)
error message
[1] "running copykat v1.1.0"
[1] "step1: read and filter data ..."
[1] "15403 genes, 5513 cells in raw data"
[1] "8554 genes past LOW.DR filtering"
[1] "step 2: annotations gene coordinates ..."
[1] "start annotation ..."
[1] "step 3: smoothing data with dlm ..."
[1] "step 4: measuring baselines ..."
number of iterations= 223
number of iterations= 707
number of iterations= 195
number of iterations= 590
number of iterations= 317
number of iterations= 117
[1] "low confidence in classification"
[1] "cell: 1"
WARNING! NOT CONVERGENT!
number of iterations= 500
[1] "cell: 2"
WARNING! NOT CONVERGENT!
number of iterations= 500
[1] "cell: 3"
number of iterations= 256
[1] "cell: 4"
WARNING! NOT CONVERGENT!
number of iterations= 500
- Dominant language
- R
- Stars
- 305
- Forks
- 66
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from navinlabcode/copykat
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
navinlabcode/copykat#141 · 1 comment ·
-
License discrepency Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
navinlabcode/copykat#140 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
navinlabcode/copykat#138 · 3 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
navinlabcode/copykat#137 ·
-
InferCNA plot logic Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
navinlabcode/copykat#136 ·
All issues in navinlabcode/copykat
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
r-lib/pkgdepends#485 · 3 comments ·
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
beginners blocker
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enviPathR OpenBuild Error Build OK Build Warning policies-accepted pre-review precheck-passed
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Bioconductor/BiocContributions#207 · 6 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
datacarpentry/semester-biology#1255 ·