072debd0d5afc88a8f14178384e9c0323ff121e4
2 # -*- coding: utf-8 -*-
6 A base class for the Solexa reads parsers.
9 def __init__(self
,filename
):
10 self
.fh
= open(filename
)
19 class FilteredReadParser(ReadParser
):
21 This class offers a parser for the reads that are created by the first
22 filtering step performed to cut and join new reads.
25 def __init__(self
,filename
):
26 ReadParser
.__init
__(filename
)
28 def parseLine(self
,line
):
30 We assume that a line has the following entires:
33 return id,chr,pos
,strand
,mismatches
,align_len
,offset
,alignment
= line
.split()
43 class RemappedReadParser(ReadParser
):
45 This class offers a parser for the reads that are remapped by the vmatch
49 def __init__(self
,filename
):
50 ReadParser
.__init
__(filename
)
52 def parseLine(self
,line
):
54 We assume that a line has the following entires:
57 return id,chr,pos
,strand
,mismatches
,align_len
,offset
,alignment
= line
.split()