molgenis / NIPTeR

R Package for Non Invasive Prenatal Testing (NIPT) analysis
GNU Lesser General Public License v3.0
40 stars 16 forks source link

Is there anyways to calculate chrfraction of sex chromosomes? #24

Open KhanhLPBao opened 3 years ago

KhanhLPBao commented 3 years ago

Hi In issue #9 I saw the solution to calculate z-score of sex chromosomes. Is there anyways to calculate chromosomal fraction of sex chromosomes? Because chrfraction only returned data of chromosome 1-22

ljohansson commented 3 years ago

Dear KhanhLPBao,

Within the Z-score calculation, first the chromosomal fraction of the X-chromosome is calculated:

fraction_chrX <- sum_corrected_reads_chrX / sum_corrected_reads_refchr #fractions of the reads mapping X chromosome for test sample

This is part of the code block described in issue #9.

Regards, Lennart