Ejemplo n.º 1
0
def ctwc_recursive_select(data, tree, samples, otus, table):
    ctwc__plot.init()
    iteration_results = dict()
    __ctwc_recursive_iteration(data, tree, samples, otus, table, iteration_results = iteration_results)

    ctwc__plot.wait_for_user()
    return iteration_results
Ejemplo n.º 2
0
def ctwc_select(data, tree, samples, otus, table):
    ctwc__plot.init()

    iteration_results = dict()
    result, samp_filter, samp_compliment = run_iteration("Iteration 1", "Pick samples from full dataset...",
                                                         data,
                                                         tree,
                                                         samples,
                                                         otus,
                                                         [],
                                                         [],
                                                         table,
                                                         False)
    iteration_results["Iteration 1"] = result

    result, otu_filter, otu_compliment = run_iteration("Iteration 1.1", "Pick OTUs from selected samples...",
                                                         data,
                                                         tree,
                                                         samples,
                                                         otus,
                                                         [],
                                                         samp_filter,
                                                         table,
                                                         True)
    iteration_results["Iteration 1.1"] = result

    result, otu_filter, otu_compliment = run_iteration("Iteration 1.2", "Pick OTUs from compliment of selected samples...",
                                                         data,
                                                         tree,
                                                         samples,
                                                         otus,
                                                         [],
                                                         samp_compliment,
                                                         table,
                                                         True)
    iteration_results["Iteration 1.2"] = result

    result, otu_filter, otu_compliment = run_iteration("Iteration 2", "Pick OTUs from full dataset...",
                                                         data,
                                                         tree,
                                                         samples,
                                                         otus,
                                                         [],
                                                         [],
                                                         table,
                                                         True)
    iteration_results["Iteration 2"] = result

    result, samp_filter, samp_compliment = run_iteration("Iteration 2.1", "Pick samples from selected OTUs...",
                                                         data,
                                                         tree,
                                                         samples,
                                                         otus,
                                                         otu_filter,
                                                         [],
                                                         table,
                                                         False)
    iteration_results["Iteration 2.1"] = result

    result, samp_filter, samp_compliment = run_iteration("Iteration 2.2", "Pick samples from compliment of selected OTUs...",
                                                         data,
                                                         tree,
                                                         samples,
                                                         otus,
                                                         otu_compliment,
                                                         [],
                                                         table,
                                                         False)
    iteration_results["Iteration 2.2"] = result

    ctwc__plot.wait_for_user()

    return iteration_results