alphagenome.data.junction_data.get_junctions_to_plot#
- alphagenome.data.junction_data.get_junctions_to_plot(*, predictions, name, strand, k_threshold=0.0)[source]#
Gets a list of junctions to plot.
Filters the junctions in the
predictions
by ontology term and strand, and applies a threshold on thek
value (read count).- Parameters:
predictions (
JunctionData
) – AJunctionData
object containing junction predictions.name (
str
) – The name to filter by.strand (
str
) – The strand to filter by (‘+’ or ‘-‘).k_threshold (
float
|None
(default:0.0
)) – The minimumk
value for a junction to be included. If None, use 5% of the maximum value.
- Return type:
- Returns:
A list of
Junction
objects to plot.- Raises:
ValueError – If more than one track is found for the specified ontology term.