You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MSI load falls to 0 indels /Mb after upgrading PURPLE 4 .0 .2 ➞ 4 .1 #7
In the latest version of sash was updated from PURPLE 4.0.2 to 4.1.
Purity, ploidy and TMB stay identical, but msIndelsPerMb drops to 0 for every tumour i re-processed.
I did run purple PURPLE 4.0.2 with data from sash on oncoanalyser v2 and find the same result as with as with v1 samples.
But the log between the two version differ
V4.1
loaded 238 somatic SVs from L2500399.esvee.somatic.vcf.gz
load(67.0 tml=67.0000) msiIndels(0 perMb=0.0000) burden(9874.0 perMb=3.4537)
loaded 17581 germline SVs from L2500399.esvee.germline.vcf.gz
v4.0.2
loaded 15 somatic SVs from L2500399.esvee.somatic.BND.vcf.gz
load(67.0 tml=67.0000) msiIndels(313 perMb=0.1095) burden(9874.0 perMb=3.4537)
loaded 6380 germline SVs from L2500399.esvee.germline.BND.vcf.gz
I made L2500399.esvee.germline.BND.vcf.gz because SGL tag creat error in v4.0.2
for vcf in L2500399.esvee.{somatic,germline}.vcf.gz
do
out=${vcf/.vcf.gz/.BND.vcf.gz}
zcat "$vcf" | \
sed -e 's/ID=SGL/ID=BND/' \
-e 's/SVTYPE=SGL/SVTYPE=BND/g' \
-e 's/<SGL>/<BND>/g' | \
bgzip -c > "$out"
tabix -p vcf "$out"
done
From looking at how MSI is calcuated by purple and comparing VCF from oncoanalyser 2.0.0 and the one from sash.
It looks this fields maybe critical for MSI calculation of purple, and missing from sash vcf
##INFO=<ID=RC_REPC,Number=1,Type=Integer,Description="Repeat count from read context">
##INFO=<ID=RC_REPS,Number=1,Type=String,Description="Repeat sequence from read context">
##INFO=<ID=REP_C,Number=1,Type=Integer,Description="Repeat sequence count">
##INFO=<ID=REP_S,Number=1,Type=String,Description="Repeat sequence">
One possible source of error is purple use AF as filter but may expect SAGE_AF which different from DRAGEN AF
##FORMAT=<ID=AF,Number=A,Type=Float,Description="Allele fractions for alt alleles in the order listed"> ##FORMAT=<ID=SAGE_AF,Number=1,Type=Float,Description="Allelic frequency calculated from read context counts as (Full + Partial + Core + Real igned + Alt) / Coverage">
We decide to filter out MSI from cancer report summary table for the moment, and use MSI from orange report in oncoanalyser.
Related Slack thread. commit
Activity
[-]MSI load falls to 0 indels /Mb after upgrading PURPLE 4 .0 .1 ➞ 4 .1[/-][+]MSI load falls to 0 indels /Mb after upgrading PURPLE 4 .0 .2 ➞ 4 .1[/+]qclayssen commentedon May 26, 2025
I did run purple
PURPLE 4.0.2with data from sash ononcoanalyser v2and find the same result as with as withv1samples.But the log between the two version differ
V4.1
v4.0.2
I made L2500399.esvee.germline.BND.vcf.gz because SGL tag creat error in
v4.0.2qclayssen commentedon May 27, 2025
PURPLE 4.1 from oncoanalyser 2.0.0 also produces an positive results for L2500399:
qclayssen commentedon May 27, 2025
I test the purple
v4.1on the data with Onconanalyser 1.0.0 and got same msiIndels(0 perMb=0.0000)qclayssen commentedon May 27, 2025
From looking at how MSI is calcuated by purple and comparing VCF from oncoanalyser 2.0.0 and the one from sash.
It looks this fields maybe critical for MSI calculation of purple, and missing from sash vcf
qclayssen commentedon May 28, 2025
Indeed, adding this fields and values
REP_C=5;REP_S=Ato indels records. Seams to add them to the count for the MSIGive a purple
msiIndels(695 perMb=0.2431)How add the field
pdiakumis commentedon May 28, 2025
Adding some notes:
Looking at the history of the MSI-related JAVA file from hmftools: https://github.com/hartwigmedical/hmftools/commits/master/purple/src/main/java/com/hartwig/hmftools/purple/somatic/MicrosatelliteIndels.java
The latest commit from July 25th 2024 changed some of the VAF filters:
hartwigmedical/hmftools@fcf76d0
Let's take a look at the VAF distro of the VCFs fed into PURPLE, see if anything pops up.
qclayssen commentedon May 28, 2025
Allele frequency distribution of same sample from oncoanalyser and sash v2
red line represent 2% filter
qclayssen commentedon May 28, 2025
One possible source of error is purple use AF as filter but may expect SAGE_AF which different from DRAGEN AF
##FORMAT=<ID=AF,Number=A,Type=Float,Description="Allele fractions for alt alleles in the order listed">##FORMAT=<ID=SAGE_AF,Number=1,Type=Float,Description="Allelic frequency calculated from read context counts as (Full + Partial + Core + Real igned + Alt) / Coverage">pdiakumis commentedon May 28, 2025
But that hasn't changed from the previous sash version, right?
qclayssen commentedon May 28, 2025
This hasn't changed in sash, but purple now use
AFfor filtering (where it expectsSAGE_AF)qclayssen commentedon Jun 4, 2025
We decide to filter out MSI from cancer report summary table for the moment, and use MSI from orange report in oncoanalyser.
Related Slack thread.
commit