visualise: Visualise

Description Usage Arguments Value Examples

View source: R/Classify.R

Description

Produces a multidimensional scaling (MDS) plot for all of the samples in your fpkm table and colours them based on the classification in table classed.

Usage

1
visualise(FPKM,classed)

Arguments

classed

A data frame where each row represents the probability for given a sample to fit each of the four classes as well as its overall classification based on the chosen thresholds.

FPKM

A matrix of fragments/reads per kilobase per million. Rows are genes and columns are samples.

Value

Produces a multidimensional scaling (MDS) plot for all of the samples in your fpkm table and colours them based on the classification in table classed.

Examples

1
2
3
4
5
6
cf <- system.file("data","test_data.txt",package="AllSorts") #Get path to raw text file (a tsv)
counts <- read.table(file=cf,sep=' ',stringsAsFactors = FALSE,header=TRUE)
FPKM <- streamline(counts[,c(1:6)],counts$Gene_Length)
thresh <- c(0.2,0.2,0.8,0.9)
classed <- classify(FPKM,thresh)
visualise(FPKM,classed)

Oshlack/Baller documentation built on Jan. 23, 2021, 6:50 p.m.