slice_by_interval#
- GeneExpressionData.slice_by_interval(interval)[source]#
Slices the
GeneExpressionDatato include only genes within an interval.This method filters the
GeneExpressionDatato retain only those genes whose genomic intervals overlap with the providedinterval.- Parameters:
interval (
Interval) – Thegenome.Intervalobject defining the genomic region.- Return type:
- Returns:
A new
GeneExpressionDataobject containing only the genes that overlap with the specifiedinterval.