SPADE.flattenAnnotations: Flatten list of annotations to matrix

Description Usage Arguments Value Author(s) Examples

View source: R/driver.R

Description

Helper function for flattening list of annotations

Usage

1

Arguments

annotations

A list of annotation matrices. All matrices must have the same number of rows.

Value

Single matrix of annotations

Author(s)

Michael Linderman

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
	# Not run
	## Load two-parameters sample data included in package
	#data_file_path = paste(installed.packages()["spade","LibPath"],"spade","extdata","SimulatedRawData.fcs",sep=.Platform$file.sep)

	## Run basic SPADE analyses, clustering on two parameters. 
	#output_dir <- tempdir()
	#SPADE.driver(data_file_path, out_dir=output_dir, cluster_cols=c("marker1","marker2"))

	## Compute medians, counts and other parameters from processed files
	#upsampled_file_path <- paste(output_dir,.Platform$file.sep,basename(data_file_path),".density.fcs.cluster.fcs",sep="")
	#mst_graph <- igraph:::read.graph(paste(output_dir,"mst.gml",sep=.Platform$file.sep),format="gml")
	#anno <- SPADE.markerMedians(upsampled_file_path, igraph:::vcount(mst_graph), cols = c("marker1","marker2"))

	## Flatten annotations so they can easily be saved in table
	#flat_anno <- SPADE.flattenAnnotations(anno)

nolanlab/spade documentation built on May 23, 2019, 9:32 p.m.