Open shadizaheri opened 9 months ago
Hi @shadizaheri ,
VB2 was designed to work with common SNPs in the reference panel VCF which usually should be quite abundant and easy to randomly downsample. On Chromosome 19, there should be way more than 219 sites available(I understand you were trying to extract the intersection between your vcf and the original resource markers).
The recipe to create a new set of resource files is either to:
In your case, I would suggest to 1) preprocess the reference panel VCF file to only include common biallelic site, for example:
bcftools view -M2 -q 0.05 -v snps -f 'PASS,' 1KGP.CHM13v2.0.chr19.recalibrated.snp_indel.pass.vcf.gz
2) randomly downsample to 10k markers(or 100k) across the entire genome(chr1-chr22 for 1KGP.CHM13v2.0.chr*.recalibrated.snp_indel.pass.vcf.gz) 3) concatenate these individual chromosome-wise vcfs into a single vcf file 4) fed the giant VCF file into VB2 —RefVCF
Let me know if this works and I'm happy to help.
Fan
Hi @Griffan sorry to post to an old thing here. Unrelated to the original poster here, I've written a tiny Snakemake workflow to do this and have generated parameter estimates for T2T. I need to do some validation to see if the downstream estimates I'm getting are consistent with other alignments, but once that's done, would you be at all interested in posting or linking to the parameter estimates for T2T to avoid people doing duplicated work? If so, I'd certainly welcome your inspection of the workflow such that you're comfortable with the results.
Hi @Griffan sorry to post to an old thing here. Unrelated to the original poster here, I've written a tiny Snakemake workflow to do this and have generated parameter estimates for T2T. I need to do some validation to see if the downstream estimates I'm getting are consistent with other alignments, but once that's done, would you be at all interested in posting or linking to the parameter estimates for T2T to avoid people doing duplicated work? If so, I'd certainly welcome your inspection of the workflow such that you're comfortable with the results.
Hi @lightning-auriga, yes, I will definitely be interested in this update. Let me know what I can help with. You can directly reach me at griffanzhang2013@gmail.com.
We aim to create the
.mu
and.UD
resource files, which are auxiliary files for the SVDPrefix, using the CHM13 variant call format files (VCFs) available at this link. Our objective is to conduct contamination analysis on a Telomere-to-Telomere (T2T) reference sequence that has been adapted through a lift-over process.As a preliminary step, we attempted to regenerate these resource files specifically for chromosome 19, following the instructions provided for VerifyBamID under the --RefVCF option, as detailed in the VerifyBamID GitHub repository. Chromosome 19 source vcf has 219 sites, but while running the –RefVCF command we were warned that two indel sites were skipped (please see the warning below).
skip indel at chr19:6785595 skip indel at chr19:17225618 NOTICE - Number of Markers:217 NOTICE - Number of Individuals:3202 NOTICE - Success!
As a result, we see 217 sites in our.mu
and.UD
generated files..mu
: Mean Matrix Shape: (217,).UD
: UD Matrix Shape: (217, 10) Below is the header information from the resulting files for your review:Could you advise on the following:
.mu
and.UD
files are generated correctly or doing these quick checks are enough?