INNER CODE UNIT · Python
cluster_section
linnabrown/run_dbcan · dbcan/cli/cgc_process_json.py:100
def cluster_section(self, df_pul_grouped):
"""
Yields structured data for each gene cluster.
This method iterates over grouped dataframe and yields a dictionary containing detailed information about each gene cluster.
Args:
df_pul_grouped (DataFrame): The grouped dataframe by specific gene identifiers.
Yields
------
dict: A dictionary containing information about a gene cluster.
"""
for (
contig_id,
gene_type,
protein_id,
gene_start,