• 0 views
•
link
Split into separate columns
How to split the chr and bp position into separate cols ? I have chr:bp as:
ID A1 A2 A1_freq P value
7:146019500 T C 0.42 0.334
13:65060537 C G 0.001 0.312
5:179589868 A G 0.005 0.102
Would like to split ID into separate columns for chr and a separate column for bp ? How to do in linux? Desired output:
CHR BP ID A1 A2 A1_freq P value
7 146019500 7:146019500 T C 0.42 0.334
13 65060537 13:65060537 C G 0.001 0.312
5 179589868 5:179589868 A G 0.005 0.102
TIA
• 2,178 views
•
link
1 answer
Thank you for a prompt reply, but i get the error: column "ID" not existed in file: test
tia
• 0 views
•
link
Log in to answer this question.