Entering edit mode
3.6 years ago
storm1907
▴
30
Hello, I have Plink tped files in the following format:
> chr1:183189 0 183189 G C
> chr1:609407 0 609407 G C
That are needed to be converted in bed format (chr, start, end, name), but without plink --tfile command (the latest generates binary file, that is unusable for downstream analysis). The best option is awk, but I do not know, how to write proper code in this case. Any suggestions?
Thank you!
For OP text, to extract chromosome and coordinates:
Please be mindful of 0 based indexing of bed files. I am not sure if original file is zero based or not. Adjust coordinates accordingly.