microbetag.helpersΒΆ
Handlers classes allowing the different steps
AttributesΒΆ
ClassesΒΆ
Sets variables regarding pathway complementarity tasks based on user's config (.yml) file |
|
Sets paths to mapping files |
|
Paths to FAPROTAX collapse_table.py script and database |
|
Set network-related configuration variables based on whether a network is already available or not. |
|
Handles processing and validation of the abundance table related variables. |
|
Handles bin/genomes/MAGs related variables in case of using microbetag with local/custom genomes. |
|
Handles variables related to building GENRES and the seed complementarity module. |
FunctionsΒΆ
|
Wrapper for building the intermediate network CYJSON file; input for manta |
|
Builds a dataframe with sequence ids of nodes A and B found associated in the |
Module ContentsΒΆ
- class microbetag.helpers.PathwayComplementarity(config: microbetag.config.Config)[source]ΒΆ
Sets variables regarding pathway complementarity tasks based on userβs config (.yml) file
- Parameters:
config β An instance of the
config.Configclass.
Note
- From the
config.Configclass, the following attributes are being used: base_dir
ouput_dir
prev_path_compl
kofam_database
complement_max_length
ko_merged_file
pc_percentage
- class microbetag.helpers.Faprotax(config)[source]ΒΆ
Paths to FAPROTAX collapse_table.py script and database
- class microbetag.helpers.NetworkHandler(config)[source]ΒΆ
Set network-related configuration variables based on whether a network is already available or not. Check whether all the sequence identifiers present in the network as nodes, are also among those of the abundance table.
- class microbetag.helpers.AbdTableHandler(config)[source]ΒΆ
Handles processing and validation of the abundance table related variables.
- Parameters:
config β Instance of the
Configclass
- class microbetag.helpers.BinsHandler(config)[source]ΒΆ
Handles bin/genomes/MAGs related variables in case of using microbetag with local/custom genomes.
- class microbetag.helpers.SeedComplementarityHandler(config)[source]ΒΆ
Handles variables related to building GENRES and the seed complementarity module.
- Parameters:
config β Instance of the
Configclass
- microbetag.helpers.manta_input_net(config: microbetag.config.Config) bool[source]ΒΆ
Wrapper for building the intermediate network CYJSON file; input for manta
- microbetag.helpers.otf_seqid_ncbi_gtdb_map(config: microbetag.config.Config) tuple[dict, dict, pandas.DataFrame][source]ΒΆ
Builds a dataframe with sequence ids of nodes A and B found associated in the co-occurrence network followed by their corresponding NCBI Taxonomy ids and the representative GTDB genomes.
- Returns:
pairs_of_interest: {(ββ,ββ). (ββ,ββ)}
relative_genomes: {ncbi_id: [gc, gc, gc], ..}
- mspecies_map_df: A data frame with the sequence ids of the abundance data and
their mapped NCBI Taxonomy IDs and their corresponding GTDB representative genomes.
- Return type:
A tuple containing
Note
Strictly for the on-the-fly version