powered by
Convert a sleuth object to a matrix with the condition names.
sleuth_to_matrix(obj, which_df, which_units)
a sleuth object
sleuth
character vector of length one. Which type of data to use ("obs_norm" or "obs_raw")
character vector of length one. Which units to use ("tpm" or "est_counts")
a list with an attribute 'data', which contains a matrix of target_ids and transcript expression in which_units
list
which_units
# NOT RUN { sleuth_matrix <- sleuth_to_matrix(sleuth_obj, 'obs_norm', 'tpm') head(sleuth_matrix$data) # look at first 5 transcripts, sorted by name # }
Run the code above in your browser using DataLab