thor.pl.fringe

thor.pl.fringe(data=None, genes=None, cmap='viridis', lw=5, annotate=False, annot_bbox=None, text_offset_x=0.08, text_offset_y=0, text_size=8, ax=None)

Plot log2foldchange of gene expression against distance from the baseline.

Parameters:
  • data (Pandas DataFrame) – Rows are windows/bins. Columns are distance and all the genes (Default value = None)

  • genes (List) – List of genes for plotting (Default value = None)

  • cmap (Str) – Colormap name in matplotlib for plotting the genes. (Default value = ‘viridis’)

  • lw (Numeric) – line width. (Default value = 5)

  • annotate (Bool) – Whether to annotate the lines with the gene names. (Default value = False)

  • text_offset_x (Numeric) – Offset applied to the x position of the annotation texts. (Default value = 0.08)

  • text_offset_y (Numeric) – Offset applied to the y position of the annotation texts. (Default value = 0)

  • text_size (Numeric) – Size of the annotation texts. (Default value = 8)

  • ax (Matplotlib axis passed on for plotting) – (Default value = None)

Returns:

ax

Return type:

Matplotlib axis