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 !is.null(homsegs) && !is.na(homsegs) : #166

Closed
mital14 opened this issue Jan 6, 2024 · 2 comments
Closed

Error in !is.null(homsegs) && !is.na(homsegs) : #166

mital14 opened this issue Jan 6, 2024 · 2 comments

Comments

@mital14
Copy link

mital14 commented Jan 6, 2024

I have ASCAT v3.1.2 and have the issue
[1] Plotting tumor data
[1] Sample S1 (1/100)
Error in !is.null(homsegs) && !is.na(homsegs) :
'length = 6' in coercion to 'logical(1)'
Calls: ascat.aspcf
Execution halted

@zhangzhhcb
Copy link
Collaborator

Hi, "homsegs" is the germline homozygous stretches. The error message indicates that no any homo segments was detected. Do you have normal control or you run the tumor only mode? You may need to check your normal sample.

@tlesluyes
Copy link
Collaborator

Hi @mital14,

This issue seems related to newer versions of R (4.3.0+) where arguments around the && operator must have the same lengths. A fix has been implemented as part of ASCAT v3.1.2 (c4c10f8) but we did not create a specific release for it. In your case, you must be using a v3.1.2 prior to this fix so installing a newer version of ASCAT (devtools::install_github('VanLoo-lab/ascat/ASCAT')) should fix your issue.

@zhangzhhcb: this dataset (S1 (1/100)) corresponds to the example dataset of 100 samples we provide here.

Cheers,

Tom.

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

No branches or pull requests

3 participants