Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

vladimirsouza
Copy link
Contributor

In this PR, I added the parameter default_priority for default row prioritization. The default I'm using is:

list(
  protocol = c("Strand_Specific_Transcriptome_2",
               "Strand_Specific_Transcriptome_3"),
  ffpe_or_frozen = "frozen"
)

Please, let me know whether there is a more adequate default prioritization.

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)){
Copy link
Contributor

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`
Copy link
Contributor

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?

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