Skip to content
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 rule freec_exome_somatic #120

Closed
samarth8392 opened this issue Oct 3, 2024 · 0 comments · Fixed by #121
Closed

Error in rule freec_exome_somatic #120

samarth8392 opened this issue Oct 3, 2024 · 0 comments · Fixed by #121
Assignees

Comments

@samarth8392
Copy link
Collaborator

Issue

The rule freec_exome_somatic_pass1 fails with the following error:

Loading required package: IRanges
Loading required package: GenomeInfoDb
Error in if (class(resultks) == "try-error") { : 
  the condition has length > 1
Calls: KS
In addition: Warning message:
In ks.test.default(values, score(normals)) :
  p-value will be approximate in the presence of ties
Execution halted

Possible explanation:

In the script assess_signficance.R, on line 51, the code is:
if (class(resultks) == "try-error")

but class(resultks) gives the output:

> class(resultks)
[1] "ks.test" "htest"  

Proposed solution:

collapse class(resultks) output into a single string, and then compare.

paste(class(resultks), collapse="_")
[1] "ks.test_htest"
@samarth8392 samarth8392 self-assigned this Oct 3, 2024
samarth8392 added a commit that referenced this issue Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant