pub struct OrphosConfig {
pub metagenomic: bool,
pub closed_ends: bool,
pub mask_n_runs: bool,
pub force_non_sd: bool,
pub quiet: bool,
pub output_format: OutputFormat,
pub translation_table: Option<u8>,
pub num_threads: Option<usize>,
}Expand description
Configuration settings for Orphos gene prediction analysis.
This struct controls all aspects of gene prediction including analysis mode, sequence handling, and output formatting.
§Examples
§Default configuration
use orphos_core::config::OrphosConfig;
let config = OrphosConfig::default();§Custom configuration for closed-ended genomes
use orphos_core::config::{OrphosConfig, OutputFormat};
let config = OrphosConfig {
closed_ends: true,
mask_n_runs: true,
output_format: OutputFormat::Gff,
..Default::default()
};§Metagenomic mode with multiple threads
use orphos_core::config::OrphosConfig;
let config = OrphosConfig {
metagenomic: true,
num_threads: Some(8),
quiet: true,
..Default::default()
};Fields§
§metagenomic: boolEnable metagenomic mode for fragmented sequences.
When true, uses pre-computed models instead of training on each sequence.
Recommended for:
- Short contigs (< 100 kb)
- Mixed community samples
- Fragmented assemblies
Default: false (single genome mode)
closed_ends: boolTreat sequences as having closed ends (complete genomes).
When true, prevents genes from extending off sequence edges.
Use for complete, circularized genomes.
Default: false (allow edge genes)
mask_n_runs: boolMask runs of N characters during analysis.
When true, treats stretches of N’s as gaps and prevents
genes from spanning them. Useful for draft genomes with gaps.
Default: false
force_non_sd: boolForce use of non-Shine-Dalgarno models for start recognition.
When true, disables detection of ribosome binding sites.
Rarely needed except for organisms without canonical RBS.
Default: false (auto-detect)
quiet: boolSuppress informational output during processing.
When true, prevents progress messages and statistics from
being printed to stderr.
Default: false
output_format: OutputFormatOutput format for gene prediction results.
Controls the format of generated output files. See OutputFormat
for available options.
Default: OutputFormat::Genbank
translation_table: Option<u8>Genetic code translation table number (1-25).
Specifies which genetic code to use for translation:
11: Bacterial/Archaeal (most common, default)4: Mycoplasma/Spiroplasma- Others: See NCBI genetic code tables
Default: None (auto-detect, usually table 11)
num_threads: Option<usize>Number of threads to use for parallel processing.
When set, configures Rayon thread pool for parallel analysis
of multiple sequences. Set to None for automatic detection.
Default: None (use all available cores)
Trait Implementations§
Source§impl Clone for OrphosConfig
impl Clone for OrphosConfig
Source§fn clone(&self) -> OrphosConfig
fn clone(&self) -> OrphosConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OrphosConfig
impl Debug for OrphosConfig
Auto Trait Implementations§
impl Freeze for OrphosConfig
impl RefUnwindSafe for OrphosConfig
impl Send for OrphosConfig
impl Sync for OrphosConfig
impl Unpin for OrphosConfig
impl UnwindSafe for OrphosConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.