Skip to content

Commit

Permalink
Resolve incorrect mCNV genotype counts for hom-alt (#708)
Browse files Browse the repository at this point in the history
* Initial commit

* Added to Dockstore file

* Trivial change

* Undo trivial change

* Update .github/.dockstore.yml

Co-authored-by: Mark Walker <[email protected]>

---------

Co-authored-by: Mark Walker <[email protected]>
  • Loading branch information
kjaisingh and mwalker174 authored Sep 25, 2024
1 parent f064b2d commit f344ae0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sv-pipeline/scripts/vcf_qc/collectQC.vcf_wide.sh
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ awk -v FS="\t" -v OFS="\t" -v nsamp=${nsamp} '{
for(i=10;i<=NF;i++) {
split($i,a,":");
if (a[CN]==2) {homref++}
else if (a[CN]==0) {homalt++}
else if (a[CN]==0 || a[CN]>=4) {homalt++}
else {het++} };
AC=(2*homalt)+het; AN=2*(nsamp-(unknown+other)); AF=AC/AN;
print $3, nsamp-unknown, homref, het, homalt, other, unknown, AC, AN, AF }' >> \
Expand Down

0 comments on commit f344ae0

Please sign in to comment.