BiomeAssembly¶
- class BiomeAssembly(essentials=None, *args, curb=None, copy=True, **kwargs)[source]¶
Assembly class for interconnecting and containing essentials
Constructor for
BiomeAssembly- Parameters
essentials (Optional[Sequence[pmaf.biome.essentials._metakit.EssentialBackboneMetabase]]) – Single or _multiple instances of essentials
args (Optional[pmaf.biome.essentials._metakit.EssentialBackboneMetabase]) – Instances of essentials
curb (Optional[Union[str, pmaf.biome.essentials._metakit.EssentialBackboneMetabase]]) – Set limiting instance of essentials that will be used to subset remaining essentials to identical axes. If set tp ‘intersect’ intersection will be used as limiter.
copy (bool) – Whether to copy essentials or not.
kwargs (Any) – Compatibility
- Return type
Attributes
controllerEssentialsControllerof essentialsessentialsList of essentials
metadataThe essential instance metadata.
nameThe essential instance name.
shapeReturn the shape/size of the essential instance.
xridFeature identifiers.
xsidSample identifiers.
Methods
add_essentials(*args[, curb, copy])Add instance of essentials to the current instance of
BiomeAssemblycopy()Copy of the instance.
export(output_dir[, prefix, as_otu_table, sep])Export data from assembly to the directory.
get_feature_ids([dtype])This function and its sample twin is a rescue method to fix RepPhylogeny index problem.
get_sample_ids([dtype])This function and its sample twin is a rescue method to fix RepPhylogeny index problem.
get_subset([rids, sids])Get subset of the
BiomeAssembly.to_otu_table(*args, **kwargs)Crate an OTU-table
DataFramewrite_otu_table(output_fp, *args[, sep])Write OTU-table to the file.