Esempio n. 1
0
def getOtuGenomeDictionary(count, config):
    ''' Obtain a dictionary from OTU representatives to all genomes in the OTU.

        @param count Number of entities to retrieve in each function call
        @param config Dictionary of configuration variables
        @return Dictionary keyed by OTU representative of list of OTU members
    '''
    cdmi = CDMI_API(config["cdmi_url"])
    # Get list of OTUs
    otulist = getOtuGenomeIds(count, config)
    otudict = cdmi.otu_members(otulist[0])
    return otudict