Replies: 2 comments 4 replies
-
Not sure if this will help you here, but check out https://github.com/aertslab/scenicplus/issues/90. Generally you have a sample name which needs to be removed from one of the barcodes using the |
Beta Was this translation helpful? Give feedback.
3 replies
-
I was getting this error, so i changed the barcodes in my RNA h5ad file to match them in the cistopic_obj and around 51178 common barcodes intersected.
How can I pass the bc_transform function such that no transformation takes place? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I try to create the scenicplus obj ..I get the error Exception: No cells found which are present in both assays, check input and consider using
bc_transform_func
!. I checked the inputs and the barcodes match. Has someone had a similar issue?I converted my seurat object for scRNA to Anndata for scATAC I followed the steps given here https://scenicplus.readthedocs.io/en/latest/faqs.html#i-have-an-analysis-with-another-tool-e-g-signac-archr-can-i-still-use-scenic
Code:
from scenicplus.scenicplus_class import create_SCENICPLUS_object
import numpy as np
scplus_obj = create_SCENICPLUS_object(
GEX_anndata = adata,
cisTopic_obj = cistopic_obj,
menr = menr,
bc_transform_func = lambda x: x #function to convert scATAC-seq barcodes to scRNA-seq ones
)
Error:
Exception Traceback (most recent call last)
Cell In[108], line 3
1 from scenicplus.scenicplus_class import create_SCENICPLUS_object
2 import numpy as np
----> 3 scplus_obj = create_SCENICPLUS_object(
4 GEX_anndata = adata,
5 cisTopic_obj = cistopic_obj,
6 menr = menr,
7 bc_transform_func = lambda x: x #function to convert scATAC-seq barcodes to scRNA-seq ones
8 )
9 scplus_obj.X_EXP = np.array(scplus_obj.X_EXP.todense())
10 scplus_obj
File ~/scenicplus/src/scenicplus/scenicplus_class.py:533, in create_SCENICPLUS_object(GEX_anndata, cisTopic_obj, menr, multi_ome_mode, nr_metacells, nr_cells_per_metacells, meta_cell_split, key_to_group_by, imputed_acc_obj, imputed_acc_kwargs, normalize_imputed_acc, normalize_imputed_acc_kwargs, cell_metadata, region_metadata, gene_metadata, bc_transform_func, ACC_prefix, GEX_prefix)
530 common_cells = list(set(GEX_cell_names) & set(ACC_cell_names))
532 if len(common_cells) == 0:
--> 533 raise Exception(
534 "No cells found which are present in both assays, check input and consider using
bc_transform_func
!")536 # impute accessbility if not given as parameter and subset for HQ cells
537 if imputed_acc_obj is None:
Exception: No cells found which are present in both assays, check input and consider using
bc_transform_func
!Beta Was this translation helpful? Give feedback.
All reactions