Skip to content

Unexpected behavior on converting between gfa and xg #4

@6br

Description

@6br

I tried bin/xg built at commit hash 6871a1e011954483e01ace8a517a78ba1a57b7d9.

An input file test.gfa is following.

H       VN:Z:1.0
S       1       CAAATAAG
S       2       A
S       3       G
S       4       T
S       5       C
S       6       TTG
S       7       A
S       8       G
S       9       AAATTTTCTGGAGTTCTAT
S       10      A
S       11      T
S       12      ATAT
S       13      A
S       14      T
S       15      CCAACTCTCTG
L       1       +       2       +       0M
L       1       +       3       +       0M
L       2       +       4       +       0M
L       2       +       5       +       0M
L       3       +       4       +       0M
L       3       +       5       +       0M
L       4       +       6       +       0M
L       5       +       6       +       0M
L       6       +       7       +       0M
L       6       +       8       +       0M
L       7       +       9       +       0M
L       8       +       9       +       0M
L       9       +       10      +       0M
L       9       +       11      +       0M
L       10      +       12      +       0M
L       11      +       12      +       0M
L       12      +       13      +       0M
L       12      +       14      +       0M
L       13      +       15      +       0M
L       14      +       15      +       0M
P       x       1+,3+,5+,6+,8+,9+,11+,12+,14+,15+       *,*,*,*,*,*,*,*,*
P       y       1+,2+,5+,6+,8+,9+,11+,12+,14+,15+       *,*,*,*,*,*,*,*,*
P       z       1+,2+,5+,6+,7+,9+,11+,12+,14+,15+       *,*,*,*,*,*,*,*,*

I run the following commands on a shell.

$ bin/xg -o test.xg -g test.gfa
$ bin/xg -i test.xg --gfa-out

After that, I found that the node 15+ on the path z was truncated.

P       x       1+,3+,5+,6+,8+,9+,11+,12+,14+,15+       8M,1M,1M,3M,1M,19M,1M,4M,1M,11M
P       y       1+,2+,5+,6+,8+,9+,11+,12+,14+,15+       8M,1M,1M,3M,1M,19M,1M,4M,1M,11M
P       z       1+,2+,5+,6+,7+,9+,11+,12+,14+   8M,1M,1M,3M,1M,19M,1M,4M,1M

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions