-
Notifications
You must be signed in to change notification settings - Fork 102
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
Fix conversion fuction #158
base: master
Are you sure you want to change the base?
Conversation
for more information, see https://pre-commit.ci
…v/immunedeconv into fix_conversion_fuction
for more information, see https://pre-commit.ci
…v/immunedeconv into fix_conversion_fuction
for more information, see https://pre-commit.ci
…v/immunedeconv into fix_conversion_fuction
@grst do you have an idea about what's wrong here? I assumed we needed to update the version of conda but this looks already like the latest one |
…v/immunedeconv into fix_conversion_fuction
for more information, see https://pre-commit.ci
…v/immunedeconv into fix_conversion_fuction # Conflicts: # .github/workflows/conda.yml
@grst I'm waiting to merge to see what you think about that |
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.
Sorry, I missed your comment about conda in all the github notifications.
I have a couple of questions, but looks good otherwise
@@ -29,7 +29,7 @@ custom_deconvolution_methods <- c( | |||
"EPIC" = "epic", | |||
"CIBERSORT" = "cibersort", | |||
"ConsensusTME" = "consensus_tme", | |||
"BASE" = "base" | |||
"seqImmuCC" = "seqimmucc" |
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.
What happened to BASE?
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.
Removing a method is a breaking change that should only happen with a good reason (+ major version bump + explanation in changelog)
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.
I'm not removing a method here, I'm just removing the possibility to use it with a custom matrix (this is due to an error in my implementation)
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.
all good then
R/immune_deconvolution_methods.R
Outdated
rownames <- Reduce(intersect, lapply(list.results, rownames)) | ||
list.results <- lapply(list.results, function(x) x[rownames, ]) |
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.
Why? And wouldn't you rather want an "outer" join with NAs (or 0s) in places where individual samples don't have a cell-type?
Maybe add a comment, why this was necessary to understand this better in the future.
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.
Could be another solution too
@@ -124,26 +124,28 @@ In addition, human-based methods can be used to deconvolute mouse data through t | |||
to the corresponding human orthologues | |||
|
|||
```R | |||
gene_expression_matrix <- immunedeconv::mouse_genes_to_human(gene_expression_matrix) | |||
gene_expression_matrix <- immunedeconv::convert_human_mouse_genes(gene_expression_matrix, convert_to = "human") |
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.
Did I get this right that the function wasn't renamed, but just the wrong function reference from the tutorial?
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.
The function was renamed because instead of going from mouse genes to human, now it can go both ways
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.
This is also a breaking change then... Usually what is done in such cases is to keep the old function as an alias to the new one (provided that it has a compatible signature) and show a deprecation warning when it is still used.
for more information, see https://pre-commit.ci
…v/immunedeconv into fix_conversion_fuction
for more information, see https://pre-commit.ci
Update of conversion function between mouse and human genes
Addition of custom deconvolution with seqimmucc
Fixing minor bugs (#156 )