Skip to content

Error in scirpy.pp.merge_airr_chains() #268

@samcwj

Description

@samcwj

Hi! I'm new to scanpy and scirpy. I've encountered an error while trying to merge 10x 5'GEx, BCR and TCR datasets. The first merge of BCR with 5'GEx using scirpy.pp.merge_with_ir() was successful, but adding on the TCR after that was not. This is the error:

>>> ir.pp.merge_with_ir(IOGex, IOBCR)
... storing 'orig.ident' as categorical
... storing 'SampleID' as categorical
... storing 'Batch' as categorical

>>> ir.pp.merge_airr_chains(IOGex, IOTCR)
WARNING: Non-standard locus name ignored: Multi
WARNING: Non-standard locus name ignored: None
WARNING: Non-standard locus name ignored: Multi
WARNING: Non-standard locus name ignored: None
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/samuel_chuah/miniconda3/lib/python3.9/site-packages/scirpy/io/_util.py", line 66, in check_wrapper
    return f(*args, **kwargs)
  File "/home/samuel_chuah/miniconda3/lib/python3.9/site-packages/scirpy/_preprocessing/_merge_adata.py", line 59, in merge_airr_chains
    tmp_cell.update(cell)
  File "/home/samuel_chuah/miniconda3/lib/python3.9/_collections_abc.py", line 856, in update
    self[key] = other[key]
  File "/home/samuel_chuah/miniconda3/lib/python3.9/site-packages/scirpy/io/_datastructures.py", line 113, in __setitem__
    raise ValueError(
ValueError: Cell-level attributes differ between different chains. Already present: `None`. Tried to add `True`.

Would appreciate some help in understanding the error! Thank you so much!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions