I have a file I'm working with where each row begins with a SNP ID and is followed by 510 mean genotypes.
These are space delimited like so:
Chr1_25 0 0 0 0.1
Chr1_33 0.2 0 0 1
Chr5_44 1.2 2 0 2
Chr7_87 0 0 0 0
I want to convert each row into tab delimited columns like so:
Chr1_25 Chr1_33 ....
0 0.2
0 0
0 0
0.1 1
So I was able to locate posts like this, but I consistently get the output as a single vector:
I have tried transposing with R but am getting the same solution:
I made an Rscript transpose.R
I then do the following to my bimbam file:
I am getting the same solution:
The original bimbam is in this format