Error in hclust(d, method = "ward.D2") :

Open
#74 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
32/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
r

Research direction

Start by reproducing the supplied copykat call in R and inspect the warnings from sqrt(rawmat3) and sqrt(rawmat3 + 1) before hclust(d, method = "ward.D2"). Determine which input values produce NA, NaN, or Inf and verify that step 4 completes without the hclust error; the report does not include the expression matrix or a named test file.

Written by the indexing model from the issue text.

Description

Sorry to bother you, when i run the following code:

copykat.test <- copykat(rawmat=expr, id.type="S", ngene.chr=5, win.size=25, KS.cut=0.1, sam.name="test", distance="euclidean", norm.cell.names="",output.seg="FLASE", plot.genes="TRUE", genome="hg20", n.cores=1)

[1] "running copykat v1.1.0"
[1] "step1: read and filter data ..."
[1] "27669 genes, 1366 cells in raw data"
[1] "10895 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 ..."
Error in hclust(d, method = "ward.D2") :
NA/NaN/Inf in foreign function call (arg 10)
In addition: Warning messages:
1: In sqrt(rawmat3) : NaNs produced
2: In sqrt(rawmat3 + 1) : NaNs produced

I wonder how to fix it?

Thanks,

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from navinlabcode/copykat

All issues in navinlabcode/copykat

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.