Skip to content

Conversation

apcamargo
Copy link

I added gene-level obs_raw support to sleuth_to_matrix by multiplying the normalized matrix by the size factors if the user request non-normalized values.

s_data$target_id <- NULL
s_data <- as.matrix(s_data)

if (obj$gene_mode && which_df == "obs_raw") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you still want to issue a warning here to make sure the user understand the drawbacks of what he's doing? 😉

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure! I think this is a nice idea to expose the drawbacks.
What do you think that should be warned here?

  • scaled_reads_per_base is a artificial measure to represent the read counts of genes (in this case, the same warning appear when the user requests obs_norm).
  • The raw values of scaled_reads_per_base are not normalized and, therefore, should not be directly compared.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants