File: run_parse_alignment.py

package info (click to toggle)
hinge 0.5.0-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,972 kB
  • sloc: cpp: 9,480; ansic: 8,826; python: 5,023; sh: 340; makefile: 10
file content (18 lines) | stat: -rwxr-xr-x 406 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/python3
import sys
import os
import subprocess
from parse_read import *
from parse_alignment import *

filename = sys.argv[1]
readarg = sys.argv[2]


stream = subprocess.Popen(["LAshow", filename , filename ,readarg],
                                  stdout=subprocess.PIPE, bufsize=1)

alignments = parse_alignment(stream.stdout) # generator

for alignment in alignments:
    print(alignment)