collapseTranscripts: cluster a gene's transcripts and calculate cluster-level...

Description Usage Arguments Value Author(s) See Also Examples

View source: R/collapseTranscripts.R

Description

cluster a gene's transcripts and calculate cluster-level expression

Usage

1
2
3
4
5
6
7
collapseTranscripts(
  gene,
  gown,
  meas = "FPKM",
  method = c("hclust", "kmeans"),
  k = NULL
)

Arguments

gene

which gene's transcripts should be clustered

gown

ballgown object

meas

which transcript-level expression measurement to use ('cov', average per-base coverage, or 'FPKM')

method

which clustering method to use: 'hclust' (hierarchical clustering) or 'kmeans' (k-means clustering).

k

how many clusters to use.

Value

list with two elements:

Author(s)

Alyssa Frazee

See Also

hclust, kmeans, clusterTranscripts, plotLatentTranscripts

Examples

1
2
data(bg)
collapseTranscripts(bg, gene='XLOC_000454', meas='FPKM', method='kmeans')

alyssafrazee/ballgown documentation built on Sept. 3, 2021, 7:15 p.m.