I am analyzing self-collected datasets of single-cell scRNAseq and single-cell ATACseq. The two datasets were obtained separately. I integrated single-cell transcriptomic data and single-cell ATAC data following the workflow provided by multimodal analysis. Subsequently, I obtained several files, namely adata_G, adata_M, adata_all, adata_cmp_CG, and adata_cmp_CM. I then executed the following code:
The following error occurred while running si.tl.find_master_regulators:
Traceback (most recent call last):
File "/root/anaconda3/envs/env_simba/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3791, in get_loc
return self._engine.get_loc(casted_key)
File "index.pyx", line 152, in pandas._libs.index.IndexEngine.get_loc
File "index.pyx", line 181, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 7080, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 7088, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'SREBF1'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/root/anaconda3/envs/env_simba/lib/python3.10/site-packages/IPython/core/interactiveshell.py", line 3553, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-235-6901c5c76ad1>", line 1, in <module>
df_MR = si.tl.find_master_regulators(adata_all,
File "/root/anaconda3/envs/env_simba/lib/python3.10/site-packages/simba/tools/_post_training.py", line 618, in find_master_regulators
df_MR.loc[i, 'rank'] = dist_MG.loc[x_motif, ].rank()[x_gene]
File "/root/anaconda3/envs/env_simba/lib/python3.10/site-packages/pandas/core/series.py", line 1040, in __getitem__
return self._get_value(key)
File "/root/anaconda3/envs/env_simba/lib/python3.10/site-packages/pandas/core/series.py", line 1156, in _get_value
loc = self.index.get_loc(label)
File "/root/anaconda3/envs/env_simba/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3798, in get_loc
raise KeyError(key) from err
KeyError: 'SREBF1'
Additionally, adata.PM.var_names is very strange; it doesn't consist of motifs but rather a list of genes. When running the scATAC-seq process, I used the hg38 annotation, and therefore, I also used the hg38 reference genome in Simba. Does this have any impact?
In addition, the 'chr', 'start', and 'end' columns in adata_CP.var are derived by splitting the row names of the peak matrix output from Cell Ranger, as shown below.
I am analyzing self-collected datasets of single-cell scRNAseq and single-cell ATACseq. The two datasets were obtained separately. I integrated single-cell transcriptomic data and single-cell ATAC data following the workflow provided by multimodal analysis. Subsequently, I obtained several files, namely adata_G, adata_M, adata_all, adata_cmp_CG, and adata_cmp_CM. I then executed the following code:
The following error occurred while running si.tl.find_master_regulators:
Additionally, adata.PM.var_names is very strange; it doesn't consist of motifs but rather a list of genes. When running the scATAC-seq process, I used the hg38 annotation, and therefore, I also used the hg38 reference genome in Simba. Does this have any impact?
In addition, the 'chr', 'start', and 'end' columns in adata_CP.var are derived by splitting the row names of the peak matrix output from Cell Ranger, as shown below.