neighbors/join_graphs

Description

Combine spatial and expression neighborhood graphs into a single graph for
use in downstream clustering or trajectory analysis.

The fusion is a linear combination of the expression connectivities
and spatial connectivities matrices, weighted by alpha.

Type

python_script

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
modality: [ "rna" ]  
input_obsp_expression_graph: [ "connectivities" ]  
input_obsp_spatial_graph: [ "spatial_connectivities" ]  
alpha: [ 0.5 ]  
output: "$id.$key.output.h5mu"  
output_obsp_graph: [ "spatial_expression_connectivities" ]  
id: "run"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline_spatial.git \  
  -revision v0.5.0 \  
  -main-script target/nextflow/neighbors/join_graphs/main.nf \  
  -params-file params.yaml  

Inputs

Name
Type & Properties
--input
file
required
--modality
string
--input_obsp_expression_graph
string
--input_obsp_spatial_graph
string

Parameters

Name
Type & Properties
--alpha
double

Outputs

Name
Type & Properties
--output
file
required
output
--output_obsp_graph
string
--output_compression
string

Collaborate Accelerate Succeed

Empower your organization with secure, scalable workflow solutions that simplify development, ensure compliance, and drive innovation.

Viash Hub is a platform developed by Data Intuitive, a Belgian-based bioinformatics company specializing in data workflow development and deployment.