itpseq.utils.itp_schematic#
- itpseq.utils.itp_schematic(*, codons=9, coding_sequence=None, min_overhang=12, width_factor=1, overhang_sequence=None)[source]#
Creates a schematic of an iTP-Seq read with annotations and positions.
- Parameters:
codons (int) – Number of codons to use for the translated sequence. This is ignored if an explicit coding sequence is provided.
coding_sequence (str) – Explicit coding sequence to use.
min_overhang (int) – Minimum length of the overhang (up to two extra nucleotides can be present).
width_factor (float) – Factor to change the schematic width.
- Return type:
matplotlib.Axes
Examples
- Produce a default example with a dummy sequence:
>>> itp_schematic()
- Produce a schematic with only 2 codons:
>>> itp_schematic(codons=2)
- Produce a schematic with a specific sequence:
>>> itp_schematic(sequence='ATGGCACCTCTAGAG')