This is a test version of Biostars. For the public version, visit https://www.biostars.org.
How to create link file from NUCmer output

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

0 answers

No answers yet.

Log in to answer this question.