Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best practices for converting plink bed bim fam to geno snp ind #74

Open
geneanalyst opened this issue Mar 6, 2021 · 3 comments
Open

Comments

@geneanalyst
Copy link

geneanalyst commented Mar 6, 2021

Is there currently a best practice for adding plink bed bim fam samples to geno snp ind datasets.

I've always 1st converted geno snp ind to plink using convertf , merged all plink data in plink, then converted bed bim fam to ped map pedind and back to geno snp ind using convertf.

Sometimes I feel this is not the best way to do it though.

Also, FYI plink doesn't preserve allele order and I wasn't sure if allele order in snp files is important to AF calculations, so I have as a matter of practice always re-aligned allele order in snp files (messed up by conversions from plink) to match dbSNP and ensure that col 5 is REF and col 6 is ALT in snp file

@bumblenick
Copy link
Contributor

bumblenick commented Mar 6, 2021 via email

@geneanalyst
Copy link
Author

Thanks. Do you have a par file I can use for mergit? I didn't see any commands for it.

Ok, I was concerned that that the code looks to col 6 of snp for ALT and to calculate AF. As a matter of practice I use a script to re-import REF and ALT into col 5 and 6 of snp from Hg Reference Genome

@bumblenick
Copy link
Contributor

bumblenick commented Mar 8, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants