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 when analyze_peaks #41

Open
kmavrommatis opened this issue Jan 22, 2025 · 0 comments
Open

Error when analyze_peaks #41

kmavrommatis opened this issue Jan 22, 2025 · 0 comments

Comments

@kmavrommatis
Copy link

kmavrommatis commented Jan 22, 2025

muts_4gh.rds.gz
cnas_4gh.rds.gz

HI,
When I am using subclonal events and run analyze_peaks I get an error:

set.seed(123)
x=CNAqc::init(
    mutations=muts,
    cna=cnas,
    purity=0.65552,
    sample='0002-0051',
    ref='hg38'
  )

x =x %>% CNAqc::analyze_peaks(x, n_bootstrap = 4)


Error in if (QC == "FAIL") cli::cli_alert_danger("Peak detection {red('FAIL')} with {.value {red(paste0('r = ', overall_score))}} - maximum purity error ε = {.field {purity_error}}.") : 
  missing value where TRUE/FALSE needed

The same segments when treated as clonal (ie. keep only Major and minor and set CCF to 1 works.

Any help is appreciated
Thanks

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

1 participant