Skip to content

Add condition to adata.obs #13

@spatts14

Description

@spatts14

Currently adding condition to adata.obs like this:

adata.obs["condition"] = (roi_name.split("_")[0] if roi_name.split("_")[0] in ["IPF", "COPD", "PM08"] else "Unknown" ```

However that only works for my data, so want to remove the hard coding

Ideas:
Could add a variable list the user inputs in the config? e.g condition_names = ["IPF", "COPD", "PM08"]
However still would need the condition to be the first word in the ROI
Can I change the code so it looks for the word in the ROI? 

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