-
Notifications
You must be signed in to change notification settings - Fork 95
/
Copy pathsleuth_to_matrix.Rd
28 lines (26 loc) · 994 Bytes
/
sleuth_to_matrix.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/matrix.R
\name{sleuth_to_matrix}
\alias{sleuth_to_matrix}
\title{Convert a sleuth object to matrix}
\usage{
sleuth_to_matrix(obj, which_df, which_units)
}
\arguments{
\item{obj}{a \code{sleuth} object}
\item{which_df}{character vector of length one. Which type of data to use
("obs_norm" or "obs_raw")}
\item{which_units}{character vector of length one. Which units to use ("tpm"
or "est_counts" (for transcript-level analyses) or "scaled_reads_per_base" (for gene-level analyses))}
}
\value{
a matrix which contains a matrix of target_ids and transcript (or gene) expression in \code{which_units}.
Note this currently does not support returning raw values for gene-level counts or TPMs.
}
\description{
Convert a sleuth object to a matrix with the condition names.
}
\examples{
sleuth_matrix <- sleuth_to_matrix(sleuth_obj, 'obs_norm', 'tpm')
head(sleuth_matrix) # look at first 5 transcripts, sorted by name
}