Skip to content

Commit

Permalink
Updated formula
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangycbnu committed Jul 10, 2024
1 parent c2327d6 commit d07fd88
Show file tree
Hide file tree
Showing 9 changed files with 1,782 additions and 1,923 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: MTXmodel
Title: Statistical approaches for differential expression analysis in metatranscriptomics
Year: 2021
Version: 1.2.4
Version: 1.2.5
Authors@R: c(
person("Yancong", "Zhang", email = "[email protected]", role = "aut"),
person("Eric", "Franzosa", email = "[email protected]", role = c("aut", "cre"))
Expand Down
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@

# MTXmodel History #

## Changes in v1.2.5 (2024-07-10) ##
* Tweaked formula

## Changes in v1.2.4 (2023-09-07) ##
* Fixed xtfrm warning message
* Add log info if there is no result
Expand Down
5 changes: 2 additions & 3 deletions R/utility_ext.R
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,7 @@ fit.each <- function(

mydf <- data.frame(expr = features[,i], mymeta)
formula_text <-
paste("expr ~ ", paste(colnames(mymeta), collapse = " + "))
#logging::loginfo("Formula for fixed effects: %s", formula_text)
paste("expr ~ ", paste(c(fixed_effects, i), collapse = " + "))
formula <-
tryCatch(
as.formula(formula_text),
Expand Down Expand Up @@ -539,7 +538,7 @@ fit.dnadata <-
model,
fixed_effects,
effects_names,
random_effects_formula = NULL)
random_effects_formula)


# bind the results for each feature
Expand Down
2,492 changes: 1,246 additions & 1,246 deletions test/demo_output/all_results.tsv

Large diffs are not rendered by default.

Binary file modified test/demo_output/fitted.rds
Binary file not shown.
812 changes: 406 additions & 406 deletions test/demo_output/mtx_model.log

Large diffs are not rendered by default.

Binary file modified test/demo_output/ranef.rds
Binary file not shown.
Binary file modified test/demo_output/residuals.rds
Binary file not shown.
391 changes: 124 additions & 267 deletions test/demo_output/significant_results.tsv

Large diffs are not rendered by default.

0 comments on commit d07fd88

Please sign in to comment.