Visualize Functions
ancestors_descendants_curves_plot(graph, sequence)
Generate a Matplotlib plot that shows the number of ancestor and descendant nodes for each node in a given sequence.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
LZGraph
|
An LZGraph object that was embedded with gene annotations. |
required |
Returns: None: Shows figure via plt.show()
Source code in src\LZGraphs\Visualization\Visualize.py
draw_graph(graph, file_name='LZGraph.png')
Generate a plot of a given graph and save is in project folder.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
LZGraph
|
An LZGraph object that was embedded with gene annotations. |
required |
Returns: None: Shows figure via plt.show()
Source code in src\LZGraphs\Visualization\Visualize.py
sequence_genomic_edges_variability_plot(graph, cdr3_sample, threshold=None, figsize=None)
Generate a Matplotlib plot that shows the distribution of V and J genes at each edge in a given sequence.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
LZGraph
|
An LZGraph object that was embedded with gene annotations. |
required |
Returns: None: Shows figure via plt.show()
Source code in src\LZGraphs\Visualization\Visualize.py
sequence_genomic_node_variability_plot(graph, cdr3)
Generate a Matplotlib plot that shows the number of unique genes/alleles at each node of a given sequence based on a given graph.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
LZGraph
|
An LZGraph object that was embedded with gene annotations. |
required |
Returns: None: Shows figure via plt.show()
Source code in src\LZGraphs\Visualization\Visualize.py
sequence_possible_paths_plot(graph, sequence)
Generate a Matplotlib plot that shows the number of alternative paths a sequence can take at each node based on an LZGraph.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
graph |
LZGraph
|
An LZGraph object that was embedded with gene annotations. |
required |
Returns: None: Shows figure via plt.show()