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
predictionsby ontology term and strand, and applies a threshold on thekvalue (read count).- Parameters:
predictions (
JunctionData) – AJunctionDataobject 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 minimumkvalue for a junction to be included. If None, use 5% of the maximum value.
- Return type:
- Returns:
A list of
Junctionobjects to plot.- Raises:
ValueError – If more than one track is found for the specified ontology term.