pub struct KnownReference {Show 14 fields
pub id: ReferenceId,
pub display_name: String,
pub assembly: Assembly,
pub source: ReferenceSource,
pub naming_convention: NamingConvention,
pub download_url: Option<String>,
pub assembly_report_url: Option<String>,
pub contigs: Vec<Contig>,
pub description: Option<String>,
pub tags: Vec<String>,
pub contigs_missing_from_fasta: Vec<String>,
pub md5_set: HashSet<String>,
pub name_length_set: HashSet<(String, u64)>,
pub signature: Option<String>,
}Expand description
A known reference genome in the catalog
Fields§
§id: ReferenceIdUnique identifier
display_name: StringHuman-readable display name
assembly: AssemblyAssembly version
source: ReferenceSourceSource organization
naming_convention: NamingConventionNaming convention used
download_url: Option<String>Download URL for the reference FASTA
assembly_report_url: Option<String>Path to NCBI assembly report (if applicable)
contigs: Vec<Contig>All contigs in this reference
description: Option<String>Description/notes about this reference
Tags for filtering (e.g., “with_decoy”, “no_alt”, “analysis_set”)
contigs_missing_from_fasta: Vec<String>Contigs that appear in the assembly report but not in the FASTA/dict (e.g., MT in CHM13 which uses standard rCRS mitochondria)
md5_set: HashSet<String>Set of all MD5 checksums in this reference
name_length_set: HashSet<(String, u64)>Set of all (exact_name, length) pairs for matching
signature: Option<String>Signature for exact matching (hash of sorted MD5s)
Implementations§
Source§impl KnownReference
impl KnownReference
pub fn new( id: impl Into<String>, display_name: impl Into<String>, assembly: Assembly, source: ReferenceSource, ) -> Self
pub fn with_contigs(self, contigs: Vec<Contig>) -> Self
Sourcepub fn rebuild_indexes(&mut self)
pub fn rebuild_indexes(&mut self)
Rebuild the internal indexes after modifying contigs
Sourcepub fn role_counts(&self) -> RoleCounts
pub fn role_counts(&self) -> RoleCounts
Count contigs by sequence role
Trait Implementations§
Source§impl Clone for KnownReference
impl Clone for KnownReference
Source§fn clone(&self) -> KnownReference
fn clone(&self) -> KnownReference
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 KnownReference
impl Debug for KnownReference
Source§impl<'de> Deserialize<'de> for KnownReference
impl<'de> Deserialize<'de> for KnownReference
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for KnownReference
impl RefUnwindSafe for KnownReference
impl Send for KnownReference
impl Sync for KnownReference
impl Unpin for KnownReference
impl UnwindSafe for KnownReference
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