pub struct ResolvedGenRegion {Show 13 fields
pub block_group: BlockGroup,
pub path: Option<Path>,
pub accession: Option<Accession>,
pub annotation: Option<Annotation>,
pub kind: ResolvedRegionKind,
pub anchor_start: i64,
pub anchor_end: i64,
pub feature_length: i64,
pub start: i64,
pub end: i64,
pub start_anchors: Option<Vec<GraphNodePosition>>,
pub end_anchors: Option<Vec<GraphNodePosition>>,
pub remove_ambiguous_positions: bool,
}Fields§
§block_group: BlockGroup§path: Option<Path>§accession: Option<Accession>§annotation: Option<Annotation>§kind: ResolvedRegionKind§anchor_start: i64§anchor_end: i64§feature_length: i64§start: i64§end: i64§start_anchors: Option<Vec<GraphNodePosition>>§end_anchors: Option<Vec<GraphNodePosition>>§remove_ambiguous_positions: boolImplementations§
Source§impl ResolvedGenRegion
impl ResolvedGenRegion
pub fn from_path( conn: &GraphConnection, block_group_id: HashId, path: &Path, start: i64, end: i64, ) -> Result<Self, BlockGroupError>
pub fn from_accession( conn: &GraphConnection, accession: &Accession, start: i64, end: i64, ) -> Result<Self, BlockGroupError>
pub fn from_annotation( conn: &GraphConnection, annotation: &Annotation, accession: &Accession, start: i64, end: i64, ) -> Result<Self, BlockGroupError>
pub fn intervaltree_cache_key(&self) -> (HashId, ResolvedRegionKind)
pub fn offset_range( &self, start_offset: i64, end_offset: i64, ) -> Result<(i64, i64), GenRegionError>
pub fn intervaltree( &self, conn: &GraphConnection, ) -> Result<IntervalTree<i64, NodeIntervalBlock>, GenRegionError>
pub fn find_graph_positions( &self, conn: &GraphConnection, start_offset: i64, end_offset: i64, ) -> Result<Self, GraphError>
pub fn plan_edges( &self, conn: &GraphConnection, change: &BlockGroupChange, tree: Option<&IntervalTree<i64, NodeIntervalBlock>>, ) -> Result<Vec<AugmentedEdgeData>, BlockGroupError>
Trait Implementations§
Source§impl Clone for ResolvedGenRegion
impl Clone for ResolvedGenRegion
Source§fn clone(&self) -> ResolvedGenRegion
fn clone(&self) -> ResolvedGenRegion
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResolvedGenRegion
impl Debug for ResolvedGenRegion
Source§impl IntervalTreeSource for ResolvedGenRegion
impl IntervalTreeSource for ResolvedGenRegion
fn intervaltree( &self, conn: &GraphConnection, ) -> Result<IntervalTree<i64, NodeIntervalBlock>, BlockGroupError>
Auto Trait Implementations§
impl Freeze for ResolvedGenRegion
impl RefUnwindSafe for ResolvedGenRegion
impl Send for ResolvedGenRegion
impl Sync for ResolvedGenRegion
impl Unpin for ResolvedGenRegion
impl UnsafeUnpin for ResolvedGenRegion
impl UnwindSafe for ResolvedGenRegion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more