Skip to content

looping for multiple cell types #11

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
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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