Package Bio :: Package SearchIO :: Package ExonerateIO :: Module exonerate_text
[hide private]
[frames] | no frames]

Module exonerate_text

source code

Bio.SearchIO parser for Exonerate plain text output format.
Classes [hide private]
Parser for Exonerate plain text output.
Indexer class for Exonerate plain text.
Functions [hide private]
_flip_codons(codon_seq, target_seq)
Flips the codon characters from one seq to another (PRIVATE).
source code
_get_block_coords(parsed_seq, row_dict, has_ner=False)
Return a list of start, end coordinates for each given block in the sequence (PRIVATE).
source code
_get_inter_coords(coords, strand=1)
Return list of pairs covering intervening ranges (PRIVATE).
source code
Stitches together the parsed alignment rows and returns them in a list (PRIVATE).
source code
_get_row_dict(row_len, model)
Return a dictionary of row indices for parsing alignment blocks (PRIVATE).
source code
_get_blocks(rows, coords, idx)
Return a list of dictionaries of sequences split by the coordinates (PRIVATE).
source code
Get a dictionary of split codon locations relative to each fragment end (PRIVATE).
source code
Remove curly braces (split codon markers) from the given sequences (PRIVATE).
source code
_comp_intron_lens(seq_type, inter_blocks, raw_inter_lens)
Return the length of introns between fragments (PRIVATE).
source code
_comp_coords(hsp, seq_type, inter_lens)
Fill the block coordinates of the given hsp dictionary (PRIVATE).
source code
_comp_split_codons(hsp, seq_type, scodon_moves)
Compute positions of split codons, store in given HSP dictionary (PRIVATE).
source code
Variables [hide private]
  _RE_ALN_ROW = re.compile(r'\s*\d+\s+: (.*) :\s+\d+')
  _RE_EXON = re.compile(r'[atgc ]{2,}?(?:(?:[<>]+ \w+ Intron \d+...
  _RE_EXON_LEN = re.compile(r'(?:(\d+) bp // (\d+) bp)|(?:(\d+) ...
  _RE_NER = re.compile(r'--<\s+\d+\s+>--')
  _RE_NER_LEN = re.compile(r'--<\s+(\d+)\s+>--')
  _RE_SCODON_START = re.compile(r'\{(\w{1,2})\}$')
  _RE_SCODON_END = re.compile(r'^\{(\w{1,2})\}')
  __package__ = 'Bio.SearchIO.ExonerateIO'
Function Details [hide private]

_get_inter_coords(coords, strand=1)

source code 

Return list of pairs covering intervening ranges (PRIVATE).

From the given pairs of coordinates, returns a list of pairs covering the intervening ranges.

Variables Details [hide private]


re.compile(r'[atgc ]{2,}?(?:(?:[<>]+ \w+ Intron \d+ [<>]+)|(?:\.+))[at\
gc ]{2,}?')


re.compile(r'(?:(\d+) bp // (\d+) bp)|(?:(\d+) bp)')