Description
A pipeline to compute the spatial neighborhood graph, perform nichecompass embedding followed by Leiden clustering.
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
id: "run"
modality: [ "rna" ]
input_obs_batch_key: [ "sample_id" ]
input_obs_covariates: [ "sample_id" ]
input_obsm_spatial_coords: [ "spatial" ]
var_input: [ "filter_with_hvg" ]
coord_type: [ "generic" ]
n_spatial_neighbors: [ 6 ]
delaunay: [ false ]
min_genes_per_gp: [ 1 ]
min_source_genes_per_gp: [ 0 ]
min_target_genes_per_gp: [ 0 ]
gene_expr_recon_dist: [ "nb" ]
log_variational: [ true ]
node_label_method: [ "one-hop-norm" ]
active_gp_thresh_ratio: [ 0.1 ]
active_gp_type: [ "separate" ]
n_addon_gp: [ 100 ]
random_state: [ 0 ]
n_epochs: [ 100 ]
n_epochs_all_gps: [ 25 ]
n_epochs_no_edge_recon: [ 0 ]
n_epochs_no_cat_covariates_contrastive: [ 5 ]
lr: [ 0.001 ]
weight_decay: [ 0.001 ]
edge_val_ratio: [ 0.1 ]
node_val_ratio: [ 0.1 ]
edge_batch_size: [ 256 ]
n_sampled_neighbors: [ -1 ]
obs_cluster: [ "nichecompass_leiden" ]
leiden_resolution: [ 1 ]
obsm_umap: [ "X_leiden_nichecompass_umap" ]
uns_neighbors: [ "nichecompass_neighbors" ]
obsp_neighbor_distances: [ "nichecompass_distances" ]
obsp_neighbor_connectivities: [ "nichecompass_connectivities" ]
output: "$id.$key.output.h5mu"
output_model: "$id.$key.output_model"
output_obsm_embedding: [ "nichecompass_latent" ]
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline_spatial.git \
-revision v0.6.0 \
-main-script target/nextflow/workflows/niche/nichecompass_leiden/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--id | string required |
--input -i | file required |
--input_gp_mask | file required |
--modality | string |
--layer | string |
--input_obs_batch_key | string |
--input_obs_covariates | string multiple |
--input_obsm_spatial_coords | string |
--var_input | string |
Name | Type & Properties |
|---|---|
--coord_type | string |
--n_spatial_neighbors | integer |
--delaunay | boolean |
Name | Type & Properties |
|---|---|
--min_genes_per_gp | integer |
--min_source_genes_per_gp | integer |
--min_target_genes_per_gp | integer |
--max_genes_per_gp | integer |
--max_source_genes_per_gp | integer |
--max_target_genes_per_gp | integer |
--filter_genes_not_in_masks | boolean_true |
Name | Type & Properties |
|---|---|
--covariate_edges | boolean multiple |
--gene_expr_recon_dist | string |
--log_variational | boolean |
--node_label_method | string |
--active_gp_thresh_ratio | double |
--active_gp_type | string |
--n_addon_gp | integer |
--cat_covariates_embeds_nums | integer multiple |
--random_state | integer |
Name | Type & Properties |
|---|---|
--n_epochs | integer |
--n_epochs_all_gps | integer |
--n_epochs_no_edge_recon | integer |
--n_epochs_no_cat_covariates_contrastive | integer |
--lr | double |
--weight_decay | double |
--edge_val_ratio | double |
--node_val_ratio | double |
--edge_batch_size | integer |
--node_batch_size | integer |
--n_sampled_neighbors | integer |
Name | Type & Properties |
|---|---|
--obs_cluster | string |
--leiden_resolution | double multiple |
Name | Type & Properties |
|---|---|
--obsm_umap | string |
Name | Type & Properties |
|---|---|
--uns_neighbors | string |
--obsp_neighbor_distances | string |
--obsp_neighbor_connectivities | string |
Name | Type & Properties |
|---|---|
--output | file required output |
--output_model | file required output |
--output_obsm_embedding | string |