Given a data frame containing Sailfish gene-level results, from the construct_sailfish_gene_dataframe function, convert that dataframe to a matrix suitable for downstream analysis.

convert_sailfish_df_to_matrix(sailfish.df, metric = c("NumReads", "TPM"))

Arguments

sailfish.df

Data frame containing sailfish results.

metric

Expression metric to use (either 'NumReads' or 'TPM').

Value

df A data frame containing the Sailfish results.