pub struct TSGPath<'a> {
pub nodes: Vec<NodeIndex>,
pub edges: Vec<EdgeIndex>,
pub attributes: Vec<Attribute>,
/* private fields */
}Expand description
A path in the transcript segment graph
A path is a sequence of nodes and edges that form a valid path through the graph. Paths can represent transcripts, exon chains, or other traversals through the graph.
Fields§
§nodes: Vec<NodeIndex>The nodes in the path
edges: Vec<EdgeIndex>The edges connecting the nodes in the path
attributes: Vec<Attribute>Implementations§
Source§impl<'a> TSGPath<'a>
impl<'a> TSGPath<'a>
Sourcepub fn builder() -> TSGPathBuilder<'a>
pub fn builder() -> TSGPathBuilder<'a>
Create an instance of TSGPath using the builder syntax
Source§impl<'a> TSGPath<'a>
impl<'a> TSGPath<'a>
Sourcepub fn graph_mut(&mut self) -> &mut Option<&'a GraphSection>
pub fn graph_mut(&mut self) -> &mut Option<&'a GraphSection>
Set the graph for the path
pub fn graph(&self) -> Option<&GraphSection>
pub fn id(&self) -> Result<BString>
pub fn validate(&self) -> Result<()>
pub fn to_gtf(&self) -> Result<BString>
pub fn to_vcf(&self) -> Result<BString>
pub fn to_fa(&self) -> Result<BString>
Trait Implementations§
Source§impl PathAnalysis for TSGPath<'_>
impl PathAnalysis for TSGPath<'_>
Source§fn is_super(&self) -> Result<bool>
fn is_super(&self) -> Result<bool>
Determines if a path is a “super path” - a path where all nodes share at least one common read
A super path indicates that all nodes in the path share at least one common read, suggesting the path represents a continuous sequence supported by sequencing data.
§Returns
Ok(true)- If all nodes in the path share at least one common readOk(false)- If not all nodes share a common read, or if the path has fewer than 2 nodesErr- If an error occurs during the analysis
Auto Trait Implementations§
impl<'a> Freeze for TSGPath<'a>
impl<'a> RefUnwindSafe for TSGPath<'a>
impl<'a> Send for TSGPath<'a>
impl<'a> Sync for TSGPath<'a>
impl<'a> Unpin for TSGPath<'a>
impl<'a> UnwindSafe for TSGPath<'a>
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