Direct probabilistic quantification of mosaic loss of chromosome Y from sequencing data
BaySeq-Y is a computational framework for estimating mosaic loss of chromosome Y (LOY) from DNA sequencing data, including whole-exome sequencing (WES) and whole-genome sequencing (WGS). BaySeq-Y directly estimates the fraction of cells lacking chromosome Y using a Bayesian framework that integrates multiple LOY-associated genomic signals.
This repository contains three R implementations of BaySeq-Y for different input data types:
-
BaySeq-Y_no_phasing.r
LOY estimation using read depth (DP) in the Y non-pseudoautosomal region (Y-non-PAR) and allelic depth (AD) in the pseudoautosomal region (PAR). -
BaySeq-Y_phasing.r
LOY estimation using phased allelic depth (AD) information in PAR1. -
BaySeq-Y_phasing_fast.r
Fast implementation of LOY estimation using phased allelic depth information in PAR1.
- R (version 4.0 or later recommended)
- Required R packages:
- rjags
- coda
- data.table
- dplyr
Additional package requirements may depend on the implementation used.
Required inputs:
- DP in Y-non-PAR
- AD in PAR
- Median DP in X-non-PAR
- Median BAF in autosomes
Example input files:
DP_sample_1.tsvAD_sample_1.tsv
Required inputs:
- Phased AD in PAR1
- Number of blocks (recommended: 10–20)
- Median BAF in autosomes
Example input file:
Phased_AD_sample_1.tsv
Rscript BaySeq-Y_no_phasing.r \
DP_sample_1.tsv \
AD_sample_1.tsv \
19 \
0.5 \
<result_file_name> \
<sample_ID>Arguments:
- DP input file
- AD input file
- Median DP in X-non-PAR
- Median BAF in autosomes
- Output file name
- Sample ID
Rscript BaySeq-Y_phasing.r \
Phased_AD_sample_1.tsv \
20 \
0.5 \
<result_file_name> \
<sample_ID>or
Rscript BaySeq-Y_phasing_fast.r \
Phased_AD_sample_1.tsv \
20 \
0.5 \
<result_file_name> \
<sample_ID>Arguments:
- Phased AD input file
- Number of blocks
- Median BAF in autosomes
- Output file name
- Sample ID
Each script generates an output file containing:
- Sample ID
- Estimated LOY fraction
- Lower bound of the 95% confidence interval
- Upper bound of the 95% confidence interval
Additionally:
- BaySeq-Y_no_phasing.r reports the ΔBIC statistic used to assess evidence for LOY.
The reported LOY estimate represents the estimated fraction of cells lacking chromosome Y in the analyzed sample.
Typical interpretation:
| LOY Estimate | Interpretation |
|---|---|
| 0.00 | No detectable LOY |
| 0.10 | Approximately 10% of cells have lost chromosome Y |
| 0.25 | Approximately 25% of cells have lost chromosome Y |
| 0.50 | Approximately 50% of cells have lost chromosome Y |
Confidence intervals provide uncertainty estimates around the inferred LOY fraction.
If you use BaySeq-Y in your research, please cite:
Lin J-R, Chang Y-C, Maslov AY, Song Y, Gao T, Shan J, Bennett D, Milman S, Barzilai N, Vijg J, Montagna C, Zhang ZD
Direct probabilistic quantification of mosaic loss of chromosome Y from sequencing data.
bioRxiv 2026.06.26.734767; doi: https://doi.org/10.64898/2026.06.26.734767
Zhengdong D. Zhang
Department of Genetics
Albert Einstein College of Medicine
For questions regarding BaySeq-Y, please contact: