brentp / somalier

fast sample-swap and relatedness checks on BAMs/CRAMs/VCFs/GVCFs... "like damn that is one smart wine guy"
MIT License
254 stars 35 forks source link

convert somalier format to VCF/PED #112

Open adigenova opened 1 year ago

adigenova commented 1 year ago

Dear @brentp,

thanks for the awesome tool. I'm just wondering if there is a way to convert *.somalier file to VCF/PED for performing additional analysis?

Thanks in advance,

Best regards,

Alex

brentp commented 1 year ago

Hi Alex, that is possible, but you'd have to do some coding yourself. You can see how to parse the somalier files in python here: https://github.com/brentp/somalier/blob/master/scripts/ancestry-predict.py

You could modify that to then output a simple VCF.

adigenova commented 1 year ago

Cool, thanks!