Skip to content

looping for multiple cell types #11

@guttula91

Description

@guttula91

i have 12 cell types i think this algorithm works with two cell types at a time
so for 12 cell types i have to run the 66 times
so please guide me in adding the loop while running
dir_in <- "C:/Users/prave/Desktop/praveen"
lst_scrna <- CytoTalk::read_matrix_folder(dir_in)
celltypes = []
results = {}
for (i in range(len(celltypes) - 1))
{
for (j in range(i+1, len(celltypes)))
{
type_a = celltypes[i]
type_b = celltypes[j]
result = CytoTalk::run_cytotalk(lst_scrna, type_a, type_b)
results[f"result{i}{j}"] = result
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions