How to create link file from NUCmer output
0
0
Entering edit mode
3.1 years ago
agata88 ▴ 870

Hi all!

I have out.coords file from NUCmer program and I would like to change it for link file for circos. Unfortunately file out.coords is with many different spaces in many places and I can't parse it in python. I think that AWK can be used here, but I don't know how to use it.

Here is a fragment of out.coords file:

 [S1]     [E1]  |     [S2]     [E2]  |  [LEN 1]  [LEN 2]  |  [% IDY]  | [TAGS]
=====================================================================================
       1       62  |        1       62  |       62       62  |   100.00  | X    Y
     227      496  |      227      496  |      270      270  |    98.89  | X    Y

And here is the desirable output:

X   62  Y   1   62  color=jgntrz
X 227   496 Y   227 496 color=sdnbxi

I would appriciate for any AWK specialist for help :)

Best, Agata

nucmer • 572 views
ADD COMMENT

Login before adding your answer.

Traffic: 2566 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6