diff --git a/src/utils/buildutils.rs b/src/utils/buildutils.rs index f3a87da0..b5bb9e0c 100644 --- a/src/utils/buildutils.rs +++ b/src/utils/buildutils.rs @@ -452,6 +452,13 @@ impl BuildCollection { Ok(mf.records.len()) } + pub fn anydna_size(&self) -> Result { + let multiselection = MultiSelection::from_moltypes(vec!["DNA", "skipm1n3", "skipm2n3"])?; + let mut mf = self.manifest.clone(); + mf.select(&multiselection)?; + Ok(mf.records.len()) + } + pub fn protein_size(&self) -> Result { let multiselection = MultiSelection::from_moltypes(vec!["protein"])?; let mut mf = self.manifest.clone();