dimred/umap

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.

Type

python_script

License

MIT

Contributors

Run this component

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 v4.0.0 \  
  -main-script target/nextflow/dimred/umap/main.nf \  
  -params-file params.yaml  

Inputs

Name
Type & Properties
--input
file
required
--modality
string
--uns_neighbors
string

Outputs

Name
Type & Properties
--output
-o
file
required
output
--obsm_output
string
--output_compression
string

Arguments

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

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.