INNER CODE UNIT · Python
extract_gs
linnabrown/run_dbcan · dbcan/cli/cgc_process_json.py:33
def extract_gs(self, dataList):
"""
Extracts gene strings from the provided data list.
This method processes each entry in the dataList, extracting and concatenating specific gene-related information based on gene types like CAZyme, TC, TF, STP, and Null_Type.
Args:
dataList (list): A list of dictionaries, each containing gene and protein information.
Returns
-------
str: A string representing concatenated gene information.
"""
i = 0
geneL = []
# gene = list(map(lambda e: "{}".format(e["Gene_Type"]), dataList))
# pfam = list(map(lambda e: "{}".format(e["Protein_Family"]), dataList))
gene = ["{}".format(e["Gene_Type"]) for e in dataList]