brentp / somalier

fast sample-swap and relatedness checks on BAMs/CRAMs/VCFs/GVCFs... "like damn that is one smart wine guy"

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

convert somalier format to VCF/PED

adigenova opened this issue · comments

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

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.

Cool, thanks!