pub struct StructuralVariant {
pub reference_name1: BString,
pub reference_name2: BString,
pub breakpoint1: usize,
pub breakpoint2: usize,
pub sv_type: BString,
}Expand description
Represents a structural variant in a genomic sequence.
A structural variant describes a genomic rearrangement between two locations, potentially on different reference sequences.
§Fields
reference_name1- The name of the first reference sequence.reference_name2- The name of the second reference sequence.breakpoint1- The position on the first reference sequence where the variant occurs.breakpoint2- The position on the second reference sequence where the variant occurs.sv_type- The type of structural variant (e.g., “DEL”, “INV”, “DUP”, “TRA”).
§Examples
use bstr::BString;
use tsg_core::graph::StructuralVariant;
let sv = StructuralVariant {
reference_name1: BString::from("chr1"),
reference_name2: BString::from("chr1"),
breakpoint1: 1000,
breakpoint2: 5000,
sv_type: BString::from("DEL"),
};
let sv_from_builder = StructuralVariant::builder()
.reference_name1("chr1")
.reference_name2("chr1")
.breakpoint1(1000)
.breakpoint2(5000)
.sv_type(BString::from("DEL"))
.build();Fields§
§reference_name1: BString§reference_name2: BString§breakpoint1: usize§breakpoint2: usize§sv_type: BStringImplementations§
Source§impl StructuralVariant
impl StructuralVariant
Sourcepub fn builder() -> StructuralVariantBuilder
pub fn builder() -> StructuralVariantBuilder
Create an instance of StructuralVariant using the builder syntax
Trait Implementations§
Source§impl Clone for StructuralVariant
impl Clone for StructuralVariant
Source§fn clone(&self) -> StructuralVariant
fn clone(&self) -> StructuralVariant
Returns a duplicate of the value. Read more
1.0.0 · 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 StructuralVariant
impl Debug for StructuralVariant
Source§impl Default for StructuralVariant
impl Default for StructuralVariant
Source§fn default() -> StructuralVariant
fn default() -> StructuralVariant
Returns the “default value” for a type. Read more
Source§impl Display for StructuralVariant
impl Display for StructuralVariant
Auto Trait Implementations§
impl Freeze for StructuralVariant
impl RefUnwindSafe for StructuralVariant
impl Send for StructuralVariant
impl Sync for StructuralVariant
impl Unpin for StructuralVariant
impl UnwindSafe for StructuralVariant
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