plotLatentTranscripts(gene, gown, method = c("hclust", "kmeans"), k = NULL, choosek = c("var90", "thumb"), returncluster = TRUE, labelTranscripts = TRUE, ...)
ballgown
being used for analysishclust
) or K-means (kmeans
). More
methods are in development.k
is
NULL
and thus is chosen using a rule of thumb, but providing
k
overrides those rules of thumb.k
is not provided, how should the number of clusters
be chosen? Must be one of "var90" (choose a k
that explains 90
percent of the observed variation) or "thumb" (k
is set to be
approximately sqrt(n)
, where n is the total number of transcripts
for gene
)clusterTrancsripts
so the data is available for later use.
Nothing is returned if FALSE.returncluster
is TRUE, the transcript clusters are returned
as described in clusterTranscripts
. A plot of the transcript
clusters is also produced, in the style of plotTranscripts
.
clusterTranscripts
, plotTranscripts
data(bg)
plotLatentTranscripts('XLOC_000454', bg, method='kmeans', k=2)
Run the code above in your browser using DataLab