Ejemplo n.º 1
0
def loopThroughEachState(all_genes_TPM):
    ### Import all genes with TPM values for all cells
    matrix, column_header, row_header, dataset_name, group_db = clustering.importData(
        all_genes_TPM)
    group_index = {}
    all_indexes = []
    for sampleName in group_db:
        ICGS_state = group_db[sampleName][0]
        try:
            group_index[ICGS_state].append(column_header.index(sampleName))
        except Exception:
            group_index[ICGS_state] = [column_header.index(sampleName)]
        all_indexes.append(column_header.index(sampleName))
    for ICGS_state in group_index:
        group_index[ICGS_state].sort()
    all_indexes.sort()
    expressionData = matrix, column_header, row_header, dataset_name, group_db
    return all_indexes, group_index, expressionData
Ejemplo n.º 2
0
 def importQueryDataset(fn):
     matrix, column_header, row_header, dataset_name, group_db = clustering.importData(
         fn)
     return matrix, column_header, row_header, dataset_name, group_db