Junction#
- class alphagenome.data.genome.Junction(chromosome, start, end, strand='.', name='', info=<factory>, k=None)[source]#
Represents a splice junction.
A splice junction is a point in a pre-mRNA transcript where an intron is removed and exons are joined during RNA splicing. This class inherits from
Intervaland adds properties and methods specific to splice junctions.- chromosome#
The chromosome name.
- start#
The 0-based start position of the junction.
- end#
The 0-based end position of the junction.
- strand#
The strand of the junction (‘+’ or ‘-‘).
- name#
An optional name for the junction.
- info#
An optional dictionary to store additional information.
- k#
An optional integer representing the number of reads supporting the splice junction.
- negative_strand#
True if the junction is on the negative (‘-’) strand.
- acceptor#
Position of the splice acceptor site.
- donor#
Position of the splice donor site.
- Raises:
ValueError – If the strand is unstranded.
Methods
|
Returns the region around the acceptor site with overhang. |
Returns an unstranded copy of the interval. |
|
|
Boolean mask True if any interval overlaps the bin: coverage > 0. |
|
Stranded boolean mask that is True where any interval overlaps the bin. |
|
Extends or shrinks the interval by adjusting the positions with padding. |
|
Computes the center of the interval. |
|
Checks if this interval completely contains another interval. |
|
Returns a deep copy of the interval. |
|
Computes coverage track from sequence of intervals overlapping interval. |
|
Computes a coverage track from intervals overlapping this interval. |
Returns the dinucleotide regions around acceptor and donor sites. |
|
|
Returns the region around the donor site with overhang. |
|
Creates an Interval from a dictionary. |
|
Creates an Interval from a string (e.g., 'chr1:100-200:+'). |
|
Returns the intersection of this interval with another interval. |
|
Returns overlapping ranges from intervals overlapping this interval. |
|
Checks if this interval overlaps with another interval. |
|
Pads the interval by adding the specified padding to the start and end. |
|
Resizes the interval to a new width, centered around the original center. |
|
Shifts the interval by the given offset. |
Swaps the strand of the interval. |
|
Converts the interval to a dictionary. |
|
|
Truncates the interval to fit within the valid reference range. |
|
Checks if the interval is within the valid reference range. |