Skip to content

Tissue filtered IC50 matrix may have columns with all NA results #185

@howard-lightfoot

Description

@howard-lightfoot

Error when running GDSC(ic50_file, drug_decode_file, genomic_feature_pattern='GF*csv'):

"
======================== Analysing BLCA data
...
File ".../GDSCtools/env/lib/python3.9/site-packages/gdsctools-1.1.0-py3.9.egg/gdsctools/models.py", line 232, in
(d, {"indices": ic50_parse.loc[d].index, "Y": ic50_parse.loc[d].values})
...
File ".../GDSCtools/env/lib/python3.9/site-packages/pandas-1.3.5-py3.9-macosx-10.15-x86_64.egg/pandas/core/indexes/multi.py", line 3223, in _get_level_indexer
raise KeyError(key)
KeyError: 1240
"
The key error relates to a drug with no results (all NA) once the IC50 object has been filtered for BLCA cell lines only. This reoccurs across tissue types.

Solution: filter columns in IC50 using exisiting drop_drugs() method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions