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)[source]

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 (float) – line width. (Default value = 5)

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

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

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

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

  • ax (matplotlib.axes.Axes) – Matplotlib axis passed on for plotting (Default value = None)

Returns:

Matplotlib axis

Return type:

matplotlib.axes.Axes