Description
UMAP (Uniform Manifold Approximation and Projection) is a manifold learning technique suitable for visualizing high-dimensional data. Besides tending to be faster than tSNE, it optimizes the embedding such that it best reflects the topology of the data, which we represent throughout Scanpy using a neighborhood graph. tSNE, by contrast, optimizes the distribution of nearest-neighbor distances in the embedding such that these best match the distribution of distances in the high-dimensional space. We use the implementation of umap-learn [McInnes18]. For a few comparisons of UMAP with tSNE, see this preprint.
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
modality: [ "rna" ]
uns_neighbors: [ "neighbors" ]
output: "$id.$key.output.h5mu"
obsm_output: [ "umap" ]
min_dist: [ 0.5 ]
spread: [ 1 ]
num_components: [ 2 ]
alpha: [ 1 ]
gamma: [ 1 ]
negative_sample_rate: [ 5 ]
init_pos: [ "spectral" ]
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline.git \
-revision v3.0.2 \
-main-script target/nextflow/dimred/umap/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--input | file required |
--modality | string |
--uns_neighbors | string |
Name | Type & Properties |
|---|---|
--output -o | file required output |
--obsm_output | string |
--output_compression | string |
Name | Type & Properties |
|---|---|
--min_dist | double |
--spread | double |
--num_components | integer |
--max_iter | integer |
--alpha | double |
--gamma | double |
--negative_sample_rate | integer |
--init_pos | string |