INNER CODE UNIT · Rust
is_valid
informationsea/transanno · liftover-rs/src/chain/mod.rs:66
pub fn is_valid(&self) -> bool {
self.size != 0
&& (self.difference_new.unwrap_or(0) != 0 || self.difference_original.unwrap_or(0) != 0)
}
}
#[derive(Debug, Default, Clone, PartialEq)]
pub struct Chain {
pub chain_interval: Vec<ChainInterval>,
pub score: i64,
pub original_chromosome: Chromosome,
pub original_strand: Strand,
pub original_start: u64,
pub original_end: u64,
pub new_strand: Strand,
pub new_chromosome: Chromosome,
pub new_start: u64,
pub new_end: u64,