seismicrna.relate.py package
Subpackages
Submodules
- class seismicrna.relate.py.ambindel.Deletion(opposite: int, lateral3: int, pod: IndelPod)
- Bases: - Indel- lateral3
 - opposite
 - pod
 
- class seismicrna.relate.py.ambindel.DeletionPod
- Bases: - IndelPod- classmethod indel_type()
- All indels in the pod must be of this type. 
 
- class seismicrna.relate.py.ambindel.Indel(opposite: int, lateral3: int, pod: IndelPod)
- Bases: - ABC- Insertion or Deletion. - lateral3
 - property lateral5
 - opposite
 - pod
 
- class seismicrna.relate.py.ambindel.IndelPod
- Bases: - ABC- get_indel_by_opp(opposite: int)
- Return the indel that lies opposite the given position (opposite), or None if such an indel does not exist. 
 - sort()
- Sort the indels in the pod by their positions. 
 
- class seismicrna.relate.py.ambindel.Insertion(opposite: int, lateral3: int, pod: IndelPod)
- Bases: - Indel- lateral3
 - opposite
 - pod
 
- class seismicrna.relate.py.ambindel.InsertionPod
- Bases: - IndelPod- classmethod indel_type()
- All indels in the pod must be of this type. 
 
- seismicrna.relate.py.ambindel.find_ambindels(rels: dict[int, int], pods: list[IndelPod], insert3: bool, ref_seq: str, read_seq: str, read_qual: str, min_qual: str, ref_end5: int, ref_end3: int, read_end5: int, read_end3: int)
- seismicrna.relate.py.cigar.op_consumes_read(op: str)
- Whether the CIGAR operation consumes the read. 
- seismicrna.relate.py.cigar.op_consumes_ref(op: str)
- Whether the CIGAR operation consumes the reference. 
- seismicrna.relate.py.cigar.parse_cigar(cigar_string: str)
- Yield the fields of a CIGAR string as pairs of (operation, length), where operation is 1 byte indicating the CIGAR operation and length is a positive integer indicating the number of bases from the read that the operation consumes. Note that in the CIGAR string itself, each length precedes its corresponding operation. - Parameters:
- cigar_string ( - bytes) – CIGAR string from a SAM file. For full documentation, refer to https://samtools.github.io/hts-specs/
- Yields:
- bytes (length = 1)– Current CIGAR operation
- int (≥ 1)– Length of current CIGAR operation
 
 
- seismicrna.relate.py.encode.encode_relate(ref_base: str, read_base: str, read_qual: str, min_qual: str)
- Encode the relationship between a base in the read and a base in the reference sequence. 
- exception seismicrna.relate.py.error.RelateError
- Bases: - RuntimeError- Any error that occurs during the relate algorithm. 
- class seismicrna.relate.py.relate.SamFlag(flag: int)
- Bases: - object- Represents the set of 12 boolean flags for a SAM record. - flag
 - paired
 - proper
 - read1
 - read2
 - rev
 
- class seismicrna.relate.py.relate.SamRead(line: str)
- Bases: - object- One read in a SAM file. - cigar
 - flag
 - mapq
 - name
 - pos
 - quals
 - ref
 - seq
 
- seismicrna.relate.py.relate.calc_rels_lines(line1: str, line2: str, ref: str, refseq: str, min_mapq: int, min_qual: int, insert3: bool, ambindel: bool, overhangs: bool, clip_end5: int = 0, clip_end3: int = 0)
- seismicrna.relate.py.relate.merge_mates(end5sf: list[int], end3sf: list[int], relsf: dict[int, int], end5sr: list[int], end3sr: list[int], relsr: dict[int, int], overhangs: bool)