/usr/bin/gfapy-validate is in python3-gfapy 1.0.0+dfsg-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/usr/bin/python3
"""
Validate a GFA file
"""
import sys
import os
import gfapy
import argparse
op = argparse.ArgumentParser(description=__doc__)
op.add_argument("filename")
op.add_argument('--version', action='version', version='%(prog)s 1.0')
opts = op.parse_args()
try:
gfa = gfapy.Gfa.from_file(opts.filename)
gfa.validate()
except gfapy.Error as err:
sys.stderr.write(str(err)+"\n")
sys.exit(1)
|