INNER CODE UNIT · Python

i

linnabrown/run_dbcan · dbcan/cli/cgc_process_json.py:68

            i = i + 1
        gene_st = "-".join(geneL)
        return gene_st

    def pul_section(self):
        """
        Processes the dataframe and yields structured genetic data.

        This method groups the dataframe by 'cgc_id' and processes each group to yield a dictionary containing detailed genetic information for each 'cgc_id'.

        Yields
        ------
            dict: A dictionary containing genetic and protein information structured by 'cgc_id'.
        """
        for (cgc_id), df_pul_grouped in self.df.groupby("cgc_id"):
            datalist = list(self.cluster_section(df_pul_grouped))
            gene_str = self.extract_gs(datalist)
            yield {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…