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()
../../_images/itp_schematic.png
Produce a schematic with only 2 codons:
>>> itp_schematic(codons=2)
../../_images/itp_schematic_2codons.png
Produce a schematic with a specific sequence:
>>> itp_schematic(sequence='ATGGCACCTCTAGAG')
../../_images/itp_schematic_custom.png