Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Analyzes ligand-receptor communication between cells in spatial transcriptomics with Squidpy, inferring signaling and visualizing networks.
59% 91%+32 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 13 of 22 without it.
3 of 3 safety checks passed
45 agent runs
1 forkA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
Analyze ligand-receptor interactions and cell-cell communication in spatial data.
import squidpy as sq
import scanpy as sc
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
# Requires clustered data with cell type annotations
adata = sc.read_h5ad('clustered_spatial.h5ad')
# Build spatial neighbors if not already done
sq.gr.spatial_neighbors(adata, coord_type='generic', n_neighs=6)
# Run ligand-receptor analysis
sq.gr.ligrec(
adata,
cluster_key='cell_type', # Column with cell type annotations
Published skills whose descriptions closely match this one, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.