scverse / scirpy

A scanpy extension to analyse single-cell TCR and BCR data.
https://scirpy.scverse.org/en/latest/
BSD 3-Clause "New" or "Revised" License
220 stars 34 forks source link

Multiple sample integration - 10X #254

Closed jdhenaos closed 3 years ago

jdhenaos commented 3 years ago

Hi.

I have the .json from 10X per sample. How could I integrate all those samples with the expression anndata.

I used the following code. However, in the further steps I saw the information is present just for the first sample.

Thanks in advance,

Juan

samples = ["BulbC_1207","BulbC_6","BulbC_7","NOD_1","NOD_10","NOD_1107","NOD_1207"]
location = "../../../../datasets/sc_T1D/TCR/"

adata_IR = ir.io.read_10x_vdj(location + "BulbC_1107/outs/all_contig_annotations.json")
adata_IR.obs['sample'] = "BulbC_1107"
adata_IR.obs['type'] = "BulbC_1107".split("_")[0]
adata_IR.obs['ID'] = "BulbC_1107".split("_")[1]

sample_id = "BulbC_1107"
adata_IR.obs.index = [j.replace("_","-") for j in adata_IR.obs_names]
adata_IR.obs_names = ["{}_{}".format(sample_id, barcode) for barcode in adata_IR.obs_names]
adata_IR.obs.index = [j.split("-")[0] for j in adata_IR.obs_names]

ir.pp.merge_with_ir(adata,adata_IR)

for i in range(len(samples)):
    adata_IR_tmp = ir.io.read_10x_vdj(location + samples[i] + "/outs/all_contig_annotations.json")

    adata_IR_tmp.obs['sample'] = samples[i]
    adata_IR_tmp.obs['type'] = samples[i].split("_")[0]
    adata_IR_tmp.obs['ID'] = samples[i].split("_")[1]

    adata_IR_tmp.obs.index = [j.replace("_","-") for j in adata_IR_tmp.obs_names]
    adata_IR_tmp.obs_names = ["{}_{}".format(samples[i], barcode) for barcode in adata_IR_tmp.obs_names]
    adata_IR_tmp.obs.index = [j.split("-")[0] for j in adata_IR_tmp.obs_names]

    ir.pp.merge_with_ir(adata,adata_IR_tmp)
grst commented 3 years ago

Hi Juan,

on this first glance, this looks like it should work (provided that adata contains all samples and the obs_names match). Do you get any logging output (try setting sc.settings.verbosity = 4)?

Otherwise you could also try to merge them on a per-sample basis, and concatenate the merged adatas, as described in the data loading tutorial.

Best, Gregor

jdhenaos commented 3 years ago

Hi.

Thanks a lot for the quick response! When I merge sample by sample with the expression anndata I received the next message:

.... storing 'IR_VJ_1_cdr3' as categorical
... storing 'IR_VJ_2_cdr3' as categorical
... storing 'IR_VDJ_1_cdr3' as categorical
... storing 'IR_VDJ_2_cdr3' as categorical
... storing 'IR_VJ_1_cdr3_nt' as categorical
... storing 'IR_VJ_2_cdr3_nt' as categorical
... storing 'IR_VDJ_1_cdr3_nt' as categorical
... storing 'IR_VDJ_2_cdr3_nt' as categorical
... storing 'sample_y' as categorical
... storing 'type_y' as categorical
... storing 'ID_y' as categorical
... storing 'multi_chain' as categorical
... storing 'IR_VJ_1_cdr3' as categorical
... storing 'IR_VJ_2_cdr3' as categorical
... storing 'IR_VDJ_1_cdr3' as categorical
... storing 'IR_VDJ_2_cdr3' as categorical
... storing 'IR_VJ_1_cdr3_nt' as categorical
... storing 'IR_VJ_2_cdr3_nt' as categorical
... storing 'IR_VDJ_1_cdr3_nt' as categorical
... storing 'IR_VDJ_2_cdr3_nt' as categorical
WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain.

I cannot follow the tutorial because the expression anndata I am working on is an already preprocessed one. That is the reason I am adding TCR data directly to the same anndata object.

Kind regards,

Juan

grst commented 3 years ago

When I merge sample by sample with the expression anndata I received the next message:

I'd actually expect this message in every loop iteration :thinking:

I cannot follow the tutorial because the expression anndata I am working on is an already preprocessed one.

I see! Before I start further investigation, could you please double-check that the obs_names match between transcriptomics and IR adata? As the transcriptomics adata is already merged, it might have batch ids appended to the barcodes, while the IR adatas don't.

jdhenaos commented 3 years ago

The obs_names are the same. However, when I merge both, the column "samples" become into "sample_x" and a couple of new columns with the same name arise. But only one of them have the entire sample information

grst commented 3 years ago

Providing columns that are both in adata.obs and adata_ir.obs to on should do the trick, i.e.

ir.pp.merge_with_ir(adata, adata_ir, on=["sample", "type", "ID"])

In principle, the merge_with_ir function seems to work as I expected, when I use this toy example here (splitting up an existing adata_ir by sample, and merging it into the corresponding transcriptomics adata on a sample-by-sample basis):

ir_adatas = {
    sample: adata_ir[adata.obs["sample"] == sample, :].copy() for sample in adata_ir.obs["sample"]
}
for tmp_adata in ir_adatas.values():
    ir.pp.merge_with_ir(adata, tmp_adata, on=["patient", "sample"])
Output ``` WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ... storing 'patient' as categorical ... storing 'sample' as categorical WARNING: It seems you already have immune receptor (IR) data in `adata`. Merging IR objects by chain. ... storing 'IR_VJ_1_cdr3' as categorical ... storing 'IR_VJ_2_cdr3' as categorical ... storing 'IR_VDJ_1_cdr3' as categorical ... storing 'IR_VDJ_2_cdr3' as categorical ... storing 'IR_VJ_1_cdr3_nt' as categorical ... storing 'IR_VJ_2_cdr3_nt' as categorical ... storing 'IR_VDJ_1_cdr3_nt' as categorical ... storing 'IR_VDJ_2_cdr3_nt' as categorical ... storing 'IR_VJ_1_junction_ins' as categorical ... storing 'IR_VJ_2_junction_ins' as categorical ... storing 'IR_VDJ_1_junction_ins' as categorical ... storing 'IR_VDJ_2_junction_ins' as categorical ```
jdhenaos commented 3 years ago

Problem solved!

Now all info merged in the previously created .obs without problems.

Thanks a lot!