pub struct Selection {
pub species: Option<HashSet<Species>>,
pub chains: Option<HashSet<ChainType>>,
pub genes: Option<HashSet<GeneType>>,
pub allele: AlleleSelection,
}
Expand description
The selection rules for iterating over a selection of germlines.
Fields§
§species: Option<HashSet<Species>>
The species you want, None allows all, otherwise only the species specified will be returned
chains: Option<HashSet<ChainType>>
The chain of genes you want, None allows all, otherwise only the chains specified will be returned
genes: Option<HashSet<GeneType>>
The kind of genes you want, None allows all, otherwise only the genes specified will be returned
allele: AlleleSelection
The way of handling alleles you want
Implementations§
source§impl Selection
impl Selection
sourcepub fn species(self, species: impl Into<HashSet<Species>>) -> Self
pub fn species(self, species: impl Into<HashSet<Species>>) -> Self
Builder pattern method to add a species selection, will replace any previously set species selection
sourcepub fn chain(self, chains: impl Into<HashSet<ChainType>>) -> Self
pub fn chain(self, chains: impl Into<HashSet<ChainType>>) -> Self
Builder pattern method to add a chain selection, will replace any previously set chain selection
sourcepub fn gene(self, genes: impl Into<HashSet<GeneType>>) -> Self
pub fn gene(self, genes: impl Into<HashSet<GeneType>>) -> Self
Builder pattern method to add a gene selection, will replace any previously set gene selection
sourcepub fn allele(self, allele: AlleleSelection) -> Self
pub fn allele(self, allele: AlleleSelection) -> Self
Builder pattern method to add an allele selection, will replace any previously set allele selection
sourcepub fn par_germlines(self) -> impl ParallelIterator<Item = Allele<'static>>
pub fn par_germlines(self) -> impl ParallelIterator<Item = Allele<'static>>
Get the selected alleles in parallel fashion, only available if you enable the feature “rayon” (on by default)