MCPcopy Create free account
hub / github.com/SingleRust/SingleRust / run

Function run

src/memory/processing/dimred/tsne/mod.rs:6–24  ·  view source on GitHub ↗
(
    adata: IMAnnData,
    output_dim: u8,
    perplexity: f32,
    epochs: usize,
    theta: f32,
    pp_key: Option<String>
)

Source from the content-addressed store, hash-verified

4use single_utilities::traits::FloatOpsTS;
5
6pub fn run<T: FloatOpsTS>(
7 adata: IMAnnData,
8 output_dim: u8,
9 perplexity: f32,
10 epochs: usize,
11 theta: f32,
12 pp_key: Option<String>
13) -> anyhow::Result<ArrayD<T>> {
14 let obsm_keys = adata.obsm().keys();
15 let pp_key = pp_key.unwrap_or("X_pca".to_string());
16 if !obsm_keys.contains(&pp_key) {
17 return Err(anyhow!("X_pca not found in obsm_keys"));
18 }
19
20
21
22
23
24}
25

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected