createNearestNetwork: createNearestNetwork

Description Usage Arguments Details Value Examples

View source: R/NN_network.R

Description

create a nearest neighbour (NN) network

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
createNearestNetwork(
  gobject,
  type = c("sNN", "kNN"),
  dim_reduction_to_use = "pca",
  dim_reduction_name = "pca",
  dimensions_to_use = 1:10,
  genes_to_use = NULL,
  expression_values = c("normalized", "scaled", "custom"),
  name = "sNN.pca",
  return_gobject = TRUE,
  k = 30,
  minimum_shared = 5,
  top_shared = 3,
  verbose = T,
  ...
)

Arguments

gobject

giotto object

type

sNN or kNN

dim_reduction_to_use

dimension reduction method to use

dim_reduction_name

name of dimension reduction set to use

dimensions_to_use

number of dimensions to use as input

genes_to_use

if dim_reduction_to_use = NULL, which genes to use

expression_values

expression values to use

name

arbitrary name for NN network

return_gobject

boolean: return giotto object (default = TRUE)

k

number of k neighbors to use

minimum_shared

minimum shared neighbors

top_shared

keep at ...

verbose

be verbose

...

additional parameters for kNN and sNN functions from dbscan

Details

This function creates a k-nearest neighbour (kNN) or shared nearest neighbour (sNN) network based on the provided dimension reduction space. To run it directly on the gene expression matrix set dim_reduction_to_use = NULL.

See also kNN and sNN for more information about how the networks are created.

Output for kNN:

Output for sNN:

For sNN networks two additional parameters can be set:

Value

giotto object with updated NN network

Examples

1

bernard2012/Giotto documentation built on Sept. 22, 2020, 10:29 a.m.