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

Very high FREEMIX value with WES experiments #54

Open
rulixxx opened this issue Jun 2, 2023 · 3 comments
Open

Very high FREEMIX value with WES experiments #54

rulixxx opened this issue Jun 2, 2023 · 3 comments

Comments

@rulixxx
Copy link

rulixxx commented Jun 2, 2023

We have a series of high depth WES experiments that are showing very high contamination. Pileup file looks reasonable with values between 1 - 600. I suspect the PC calculation is failing:

[SimplePileup] Total Number Bases: 603116
[SimplePileup] Total Number Markers: 8791
NOTICE - Number of marker in Reference Matrix:9892
NOTICE - Number of marker shared with input file:8791
NOTICE - Mean Depth:68.606074
NOTICE - SD Depth:41.640111
NOTICE - 8753 SNP markers remained after sanity check.
NOTICE - Passing Marker Sanity Check...
Estimation from OptimizeHeter:
Contaminating Sample PC1:0	PC2:0
Intended Sample PC1:0	PC2:0
FREEMIX(Alpha):0.5
NOTICE - Success!

When I downsample that BAM file keeping 90% of the reads I get a sensible answer:

[SimplePileup] Total Number Bases: 542302
[SimplePileup] Total Number Markers: 8759
NOTICE - Number of marker in Reference Matrix:9892
NOTICE - Number of marker shared with input file:8759
NOTICE - Mean Depth:61.913689
NOTICE - SD Depth:37.354130
NOTICE - 8718 SNP markers remained after sanity check.
NOTICE - Passing Marker Sanity Check...
Estimation from OptimizeHeter:
Contaminating Sample PC1:-0.00338479	PC2:-0.0472513
Intended Sample PC1:-0.00776845	PC2:-0.0262016
FREEMIX(Alpha):0.000633472
NOTICE - Success!

Any idea whats happening here?

@rulixxx rulixxx changed the title Very high FREEMIX value Very high FREEMIX value with WES experiments Jun 2, 2023
@Griffan
Copy link
Owner

Griffan commented Jun 3, 2023

Hi, Alpha with value 0.5 means the optimization procedure doesn't converge and quit after reaching maximal rounds of iterations. Are these experiments all at 70X of sequencing depth? or any other common characteristics on these failed samples showed up?

@rulixxx
Copy link
Author

rulixxx commented Jun 5, 2023

We are doing titration experiments to test library preparation so the libraries might be a bit out of the ordinary. This experiment is 85X. We have a range of libraries 85- 180 X and all of them show abnormally high alpha. Experiments with coverage below 85X look OK.

Is it possible to increase the number of iterations? I don't see any parameters to do that.

@hyunminkang
Copy link
Collaborator

It is possible that numerical errors are introduced with extremely high depth. We may need an example to identify the source of errors.

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