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

Running the same sample multiple times results in different PASS/FAIL result #39

Open
kmavrommatis opened this issue Dec 5, 2024 · 0 comments

Comments

@kmavrommatis
Copy link

Hi,
I have a very fragmented tumor sample which has been segmented by various methods (FACETS, SCLUST, Battenberg) and i am using CNAqc to check its quality and potentially identify the best approach to analyze this genome.
My thoughts are that given the current segmentation I could use CNAqc to identify the segments that are more likely to be correct vs more likely to be wrong. Furthermore, I am hoping that if a sample fails I can get rerun it with different arguments through the same algorithms e.g. provide a different ploidy estimate etc.

I have noticed though that if I run the same cnaqc object through the analyze_peaks function multiple times I get different results.
For example

Running:

xlist=lapply( 1:10, function(y){analyze_peaks(x, n_bootstrap=10)}) %>% magrittr::set_names( paste0( "rep_",1:10))

I get

sapply(xlist, function(x){
    x$peaks_analysis$QC
})
  rep_1 rep_2 rep_3 rep_4 rep_5 rep_6 rep_7 rep_8 rep_9 rep_10
  <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> 
FAIL  PASS  FAIL  FAIL  PASS  FAIL  PASS  PASS  FAIL  PASS 

While

xlist2=lapply( 1:10, function(y){analyze_peaks(x)}) %>% magrittr::set_names( paste0( "rep_",1:10))

I get

sapply(xlist2, function(x){
    x$peaks_analysis$QC
})
  rep_1 rep_2 rep_3 rep_4 rep_5 rep_6 rep_7 rep_8 rep_9 rep_10
  <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> <chr> 
PASS  PASS  PASS  PASS  PASS  FAIL  PASS  PASS  PASS  PASS

These samples fail because their purity correction is high (> 8%). However, in the instances where the samples PASS the purity correction is <2%.
Any advice on this?
Thanks
K

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