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

convert_bim_allele.pl help #10

Open
zoeward-nz opened this issue Jan 24, 2022 · 6 comments
Open

convert_bim_allele.pl help #10

zoeward-nz opened this issue Jan 24, 2022 · 6 comments

Comments

@zoeward-nz
Copy link

zoeward-nz commented Jan 24, 2022

I am using Illumina data.

rs646776 in dbSNP is C>T. In my data it is G>A
I have created a SNPTable.txt file (the line for rs646776 looks like this):
rs646776 [A/G] TOP TOP

I tried with --outtype dbsnp:
$ perl convert_bim_allele.pl my.bim SNPTable.txt --intype top --outtype dbsnp --outfile converted_allele.bim
but I get the same G A genotypes

I'm thinking I need to do --outtype forward:
$ perl convert_bim_allele.pl my.bim SNPTable.txt --intype top --outtype forward --outfile converted_allele.bim --strandfile my_strandfile.txt

I made my_strandfile.txt from taking the rsID and strand information from the Illumina manifest.csv
so:
rs646776 -

This seems to run successfully but when I check the now converted_allele.bim
$ grep rs646776 converted_allele.bim
1 rs646776 129.6542 109818530 G A

I'm still getting the same genotype as before?
Do you know how I convert this to the same as dbSNP e.g. C>T

@kaichop
Copy link
Contributor

kaichop commented Jan 24, 2022 via email

@zoeward-nz
Copy link
Author

zoeward-nz commented Jan 24, 2022 via email

@kaichop
Copy link
Contributor

kaichop commented Jan 25, 2022 via email

@zoeward-nz
Copy link
Author

zoeward-nz commented Jan 25, 2022 via email

@kaichop
Copy link
Contributor

kaichop commented Jan 25, 2022 via email

@zoeward-nz
Copy link
Author

zoeward-nz commented Jan 25, 2022 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