Question: Binary Bim File To Agct Bim Format
1
gravatar for User 0422
7.5 years ago by
User 0422150
User 0422150 wrote:

Hi All,

I have a SNP data genotyped with Affymatrix 6.0 Chip. Its BIM file is in 1234 format. e.g.

1    rs3094315    0    792429    3    1
1    rs11240776    0    805132    3    1
1    rs2980319    0    816985    1    4
1    rs2905036    0    832343    2    4

And I want to convert it in to AGCT format. e.g.

1    rs3094315    0    792429    C    A
1    rs11240776    0    805132    C    A
1    rs2980319    0    816985    A    T
1    rs2905036    0    832343    G    T

thanks

snp affymetrix • 1.6k views
ADD COMMENTlink modified 5.0 years ago by Biostar ♦♦ 20 • written 7.5 years ago by User 0422150
2
gravatar for Maxime Lamontagne
7.5 years ago by
Qu├ębec
Maxime Lamontagne2.1k wrote:

If your using PLINK, try --alleleACGT.

ADD COMMENTlink written 7.5 years ago by Maxime Lamontagne2.1k

thanks, it also worked!

ADD REPLYlink written 7.5 years ago by User 0422150
1
gravatar for Pierre Lindenbaum
7.5 years ago by
France/Nantes/Institut du Thorax - INSERM UMR1087
Pierre Lindenbaum117k wrote:

You could combine the unix commands tr and cut

while read L
do
   echo $L | cut -d '  ' -f 1,4 | tr -d "\n"
   echo -n  " "
   echo  $L | cut -d ' ' -f 5 | tr "1234" "AGCT" | tr -d "\n"
   echo -n " "
   echo $L | cut -d ' ' -f 6 | tr "1234" "AGCT" 
done  < yourfile.txt | tr " " "\t"
ADD COMMENTlink written 7.5 years ago by Pierre Lindenbaum117k

thanks, it worked!

ADD REPLYlink written 7.5 years ago by User 0422150
Please log in to add an answer.

Help
Access

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