/usr/lib/python2.7/dist-packages/pbsuite/utils/blasrToBed.py is in python-pbsuite-utils 15.8.24+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 22 23 24 25 26 | #!/usr/bin/python
import sys
from pbsuite.utils.FileHandlers import M4File, M5File
if __name__ == '__main__':
try:
fn = sys.argv[1]
except:
sys.stderr.write(("Error! Expected One Argument, " \
"an m4 or m5 alignment file\n"))
exit(1)
if fn.endswith('.m4'):
file = M4File(sys.argv[1])
elif fn.endswith('.m5'):
file = M5File(sys.argv[1])
else:
print "Unrecognized File Type (expecting .m4 or .m5)"
exit(1)
if len(sys.argv) == 3:
out = open(sys.argv[2],'w')
else:
out = sys.stdout
out.write("\n".join(map(lambda x: x.toBed(), file))+"\n")
|