Commit 1c3ee53d authored by Pierre Marijon's avatar Pierre Marijon

Add catch warning exemple in readme

parent e90f73f4
......@@ -52,7 +52,11 @@ with open("my.gfa") as fh:
p.parse_lines(fh) # Parser.parse_lines can parse any iterable
# alternative usage
for line in fh:
p.parse_line(line)
p.parse_line(line)
# or
warning = p.parse_line(line)
if warning is not None:
print(str(warning))
# another alternative usage
def paf_generator():
......@@ -78,8 +82,6 @@ for gfa_line in p.generate_gfa():
p.graph # get an networkx graph where overlap are store
```
## Bug report
For bug report you can send e-mail to pierre.marijon@inria.fr or create [issue](https://gitlab.inria.fr/pmarijon/paf2gfa/issues)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment