slivar icon indicating copy to clipboard operation
slivar copied to clipboard

query about PED and trio VCF

Open prasundutta87 opened this issue 1 year ago • 2 comments

Hi,

I have trio VCF for structural variants. The sequence of my samples in the VCF is Father, Mother. Proband. Does this sequence affect slivar results? I have seen slivar function in the form of kid, mom, dad.

I don't have a ped file. Do you have any recommendation on how to create one? Is vcftools okay to use like this:

vcftools --vcf <input_vcf> --out ped --plink

Regards, Prasun

prasundutta87 avatar Jul 05 '22 16:07 prasundutta87

you can just make text pedfile like this:

#family_id sample_id paternal_id maternal_id sex phenotype
1                kid_id        dad_id       mom_id        2    2
1                dad_id       0               0                   1     1
1                mom_id     0               0                   2      1

replacing mom_id, dad_id, and kid_id with the sample names in the VCF. Once you have this pedigree file, then the order of the samples doesn't matter, it just infers mom, dad and kid.

brentp avatar Jul 05 '22 18:07 brentp

Thanks @brentp !

prasundutta87 avatar Aug 03 '22 18:08 prasundutta87