-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change how get_gene_expression
handle duplications
#59
base: main
Are you sure you want to change the base?
Conversation
This commit also fixes an error in the creation of multi_exp column (sample_id replaced by sample_seqType in the split call) and changes how duplications are handled.
stopifnot("You did not specify a valid engine. Please use one of \"read_tsv\", \"grep\", \"vroom\", or \"fread\"." = | ||
engine %in% c("read_tsv", "grep", "vroom", "fread")) | ||
|
||
if(default_priority & !missing(prioritize_rows_by)){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These three lines need to be removed. I think these were left over from the earlier implementation that was recently scrapped.
@@ -231,52 +221,39 @@ get_gene_expression = function(these_samples_metadata, | |||
|
|||
# add column `multi_exp` to inform whether there are more than one | |||
# `mrna_sample_id` associated to a `sample_id` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like the whole expression data set is loaded in before anything is done with the metadata. This seems wasteful but perhaps it's a limitation imposed by having some of the required information exist only in the expression table?
In this PR, I added the parameter
default_priority
for default row prioritization. The default I'm using is:Please, let me know whether there is a more adequate default prioritization.