scripts/export/genomes/fetch_gen_metadata.py
def fetch_assembly_attributes(attrs_node):
    """
    Runs over the attributes node in the xml file and returns all attribute
    tag-value pairs in a dictionary format

    attrs_node: GCA xml's attributes node
    """

    attribute_values = {}
    attributes = attrs_node.findall("ASSEMBLY_ATTRIBUTE")

    for attr in attributes:
        tag = attr.find("TAG").text
        value = attr.find("VALUE").text
        attribute_values[tag] = value

    return attribute_values

    Runs over the attributes node in the xml file and returns all attribute
    tag-value pairs in a dictionary format

    attrs_node: GCA xml's attributes node
    
Runs over the attributes node in the xml file and returns all attribute
tag-value pairs in a dictionary format

GCA xml's attributes node
Runs over the attributes node in the xml file and returns all attribute tag - value pairs in a dictionary format GCA xml ' s attributes node
def fetch_assembly_attributes(attrs_node):
    attribute_values = {}
    attributes = attrs_node.findall("ASSEMBLY_ATTRIBUTE")
    for attr in attributes:
        tag = attr.find("TAG").text
        value = attr.find("VALUE").text
        attribute_values[tag] = value
    return attribute_values
def fetch_assembly_attributes ( attrs_node ) : attribute_values = { } attributes = attrs_node . findall ( "ASSEMBLY_ATTRIBUTE" ) for attr in attributes : tag = attr . find ( "TAG" ) . text value = attr . find ( "VALUE" ) . text attribute_values [ tag ] = value return attribute_values
Runs over the attributes node in the xml file and returns all attribute
tag-value pairs in a dictionary format
Runs over the attributes node in the xml file and returns all attribute tag - value pairs in a dictionary format
"""
    Runs over the attributes node in the xml file and returns all attribute
    tag-value pairs in a dictionary format

    attrs_node: GCA xml's attributes node
    """
attrs_node