neighbors/find_neighbors

Description

Compute a neighborhood graph of observations [McInnes18].

The neighbor search efficiency of this heavily relies on UMAP [McInnes18], which also provides a method for estimating connectivities of data points - the connectivity of the manifold (method=='umap'). If method=='gauss', connectivities are computed according to [Coifman05], in the adaption of [Haghverdi16].

Type

python_script

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
modality: [ "rna" ]  
obsm_input: [ "X_pca" ]  
output: "$id.$key.output.h5mu"  
uns_output: [ "neighbors" ]  
obsp_distances: [ "distances" ]  
obsp_connectivities: [ "connectivities" ]  
metric: [ "euclidean" ]  
num_neighbors: [ 15 ]  
seed: [ 0 ]  
id: "run"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \  
  -revision 1.0.3 \  
  -main-script target/nextflow/neighbors/find_neighbors/main.nf \  
  -params-file params.yaml  

Arguments

Name
Type & Properties
--input
-i
file
required
--modality
string
--obsm_input
string
--output
-o
file
output
--output_compression
string
--uns_output
string
--obsp_distances
string
--obsp_connectivities
string
--metric
string
--num_neighbors
integer
--seed
integer

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.