Question: Relatedness inference using KING
gravatar for sara.aglantarek
11 months ago by
sara.aglantarek10 wrote:

Hi everyone! I need some help on KING. I have a multivcf, containing informations about a certain number of trios and I want to confirm the relationship of the trios: so parent-proband = 1st degree, parent-parent = unrelated/2nd degree (if they're consanguineous) etc...

I have the pedigree file which I created from scratch and looks like this: ped file

I tried to run king without calling the pedigree file and this is what I get using this command:

king -b multisample.bed --related --degree 2

kinship inference

I would like to use the new pedigree file using king, but I don't know how to do this, but on KING's manual there's nothing about it.

Thank you very much in advance.

ADD COMMENTlink modified 11 months ago by zx87549.9k • written 11 months ago by sara.aglantarek10

Ok I understand that from the ped and the map file I have to create the binary ped (bed, bim, fam). I tried to do this but I get this error:

Error: Line 1 of .ped file has fewer tokens than expected.

But the ped file has exactly the 6 mandatory columns that should have. How can I solve this problem?

ADD REPLYlink written 11 months ago by sara.aglantarek10

Unfortunately, there are two different types of .ped files; .ped + .map pairs require the .ped file to contain pedigree and genotype information.

Instead, try plink2 --vcf <VCF filename> --fam <pedigree-only .ped filename> --make-bed. (This requires plink 2.0.)

ADD REPLYlink modified 11 months ago • written 11 months ago by chrchang5237.6k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1851 users visited in the last hour