steverozen / ICAMS

ICAMS: In-depth Characterization and Analysis of Mutational Signatures
GNU General Public License v3.0
8 stars 3 forks source link

Does GetMutectVAF fits the situations of polyploids #9

Closed hkhllyzh closed 3 years ago

hkhllyzh commented 3 years ago

Hi, I've been reading the codes of ICAMS and noticed that the GetMutectVAF function might only consider diploid alt, for it calculated vaf merely with vaf <- sum(x[c(2, 4)])/sum(x). Is that propose-designed or the whole toolkit was only meant to be used for diploid analyse?

jnh01 commented 3 years ago

Hi @hkhllyzh,

Thanks for your question.

The GATK Mutect2 toolkit can work on non-diploid organisms, you may refer to this post for more details.

GetMutectVAF function can fit the situation of polyploids. Variant allele frequencies (VAFs) is a low level concept, the reads supporting the alternate alleles may come from diploid or polyploids. Calculation of the VAF does not need to know the ploidy of the sample. Hope this helps.