Error in step 5 when trying copykat for Visium Spatial Transcriptomics data
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- r
- Domain
- bioinformatics
Research direction
Reproduce the failure using the provided Visium SpaceRanger data and copykat call, starting with the step 5 segmentation stage. Inspect how that stage derives n and bins before the reported seq.default call, and verify the effect of ngene.chr and genome settings. Done means the example completes past step 5 or the supported limitation and required inputs are documented.
Written by the indexing model from the issue text.
Description
I tried to apply COPYKAT on a Visium Spatial Transcriptomics dataset from SpaceRanger output. However, I got the following error message:
[1] "step 5: segmentation..."
Error in seq.default(1, as.integer(n/bins - 1) * bins, bins) :
wrong sign in 'by' argument
Here is my code:
data_folder = '/mnt/atlas_local/linhua/data/RESORT_package/test/data/VisiumData/EMT/filtered_feature_bc_matrix/'
raw <- Read10X(data.dir = data_folder)
raw <- CreateSeuratObject(counts = raw, project = "copycat.test",
min.cells = 10, min.features = 0)
exp.raw <- as.matrix(raw@assays$RNA@counts)
copykat.test <- copykat(rawmat=exp.raw, id.type="S", ngene.chr=1,
win.size=15, KS.cut=0.1, sam.name="test",
distance="euclidean", norm.cell.names="",
output.seg="FLASE", plot.genes="TRUE",
genome="hg20",n.cores=5)
And here is the complete log:
[1] "running copykat v1.1.0"
[1] "step1: read and filter data ..."
[1] "14082 genes, 2598 cells in raw data"
[1] "10405 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= 1695
number of iterations= 34
number of iterations= 3
[1] "step 5: segmentation..."
Error in seq.default(1, as.integer(n/bins - 1) * bins, bins) :
wrong sign in 'by' argument
ngene.chr is set to be 1 because any value >1 resulted in all cells (spots) being filtered.
Any suggestion is appreciated!
- 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 ·