


1、汇总配体和受体的基因表达,计算主要CCC评分,考虑配体扩散。 2、置换检验推断有效的配受体事件。 3、使用SCENIC计算下游TF激活分数 4、初级CCC评分和TF激活评分以两种模式(方法)进行整合,即非严格模式和严格模式。在非严格模式下,当下游TF激活分数指示的细胞内信号通路没有激活时,预测的LRP仍然保留
1、基于空间邻接图(SAG)构建多视图GNN,该图包括空间坐标和ST数据中的基因表达,其中每个GNN视图对应一个LRP 2、the CCC scores are multiplied by the variable LRP weight, used as the edge weight to train an autoencoder-style model for encoding a latent representation 3、the latent representation undergoes inner product decoding and is iteratively optimized to reconstruct the original SAG as accurately as possible 4、潜在表示和LRP权重分别用于基于生态位的细胞类型亚聚类和生态位特异性CCC事件识别。




import pandas as pd
import numpy as np
import scanpy as sc
import STCase as st
DB_interaction = pd.read_csv('/home/user/data3/qij/project/cell_communication/interaction_database/selfdb_finalv/selfdb_human.csv',index_col=0)
DB_complex = pd.read_csv('/home/user/data3/qij/project/cell_communication/interaction_database/selfdb_finalv/selfdb_complex_human.csv',index_col=0)
DATABASES_GLOB = '/home/user/data3/qij/project/cell_communication/pySCENIC/databases/human_hg38_v10/*.genes_vs_motifs.rankings.feather'
MOTIF_ANNOTATIONS_FNAME = '/home/user/data3/qij/project/cell_communication/pySCENIC/resources/motifs-v10nr_clust-nr.hgnc-m0.001-o0.0.tbl'
adata_sp311 = sc.read_h5ad('../NG-lung/spdata/sp311_nonceco.h5ad')
adata_sp311_stringent = st.ccci.spatial_cell_communication_run(adata_sp311,
DB_interaction,
DB_complex,
method='Hill',
ct_key='cell_type',
cell_type=None,
if_hvg=False,
if_filter=False,
if_self=True,
if_intra=True,
if_stringent=True,
DATABASES_GLOB=DATABASES_GLOB,
MOTIF_ANNOTATIONS_FNAME=MOTIF_ANNOTATIONS_FNAME,
background_number=1000,
threads=10,
scope=6,
min_exp=0.1,
cutoff=0.05)
st.pl.plot_CCI_network(adata_311_stringent,
level='all',
tp='weight'
)
st.pl.plot_CCI_chord(adata_311_stringent,
level='IL6|COMPLEX:IL6R_IL6ST',
tp='edge_num',
ct_list=cell_type_show,
ticks_interval=10
)
st.pl.plot_CCI_heatmap(adata_311_stringent,
level='CCL',
tp='weight_per',
ct_list=cell_type_show,
)
st.pl.plot_Community_spatial(adata_311_stringent,
level='IL6|COMPLEX:IL6R_IL6ST',
background_type='cell_type')
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。