Skip to content

Commit

Permalink
Merge pull request #82 from jasenfinch/devel
Browse files Browse the repository at this point in the history
v0.14.5
  • Loading branch information
jasenfinch authored Nov 11, 2021
2 parents 43a68c9 + ec421b7 commit 051fc5d
Show file tree
Hide file tree
Showing 66 changed files with 132 additions and 119 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: metabolyseR
Title: Methods for Pre-Treatment, Data Mining and Correlation Analyses of Metabolomics Data
Version: 0.14.4
Version: 0.14.5
Authors@R: person("Jasen", "Finch", email = "jsf9@aber.ac.uk", role = c("aut", "cre"))
Description: A tool kit for pre-treatment, modelling, feature selection and correlation analyses of metabolomics data.
URL: https://jasenfinch.github.io/metabolyseR
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# metabolyseR 0.14.5

* Correlation analysis results now include an absolute correlation coefficient column by which the results are also arranged in descending order.

# metabolyseR 0.14.4

* Console output from [`imputeAll()`](https://jasenfinch.github.io/metabolyseR/reference/impute.html) now suppressed.
Expand Down
8 changes: 5 additions & 3 deletions R/correlations.R
Original file line number Diff line number Diff line change
Expand Up @@ -156,9 +156,11 @@ doCorrelations <- function(d,
rename(Intensity1 = Intensity) %>%
left_join(intensity, by = c('Feature2' = 'Feature')) %>%
rename(Intensity2 = Intensity) %>%
mutate(log2IntensityRatio = log2(Intensity1/Intensity2)) %>%
select(Feature1,Feature2,log2IntensityRatio,r,p,n) %>%
na.omit()
mutate(`|r|` = abs(r),
log2IntensityRatio = log2(Intensity1/Intensity2)) %>%
select(Feature1,Feature2,log2IntensityRatio,r,`|r|`,p,n) %>%
na.omit() %>%
arrange(desc(`|r|`))

return(rs)
}
2 changes: 1 addition & 1 deletion R/metabolyseR.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ globalVariables(
'Occupancy','adjustedPvalue','adjusted.p.value','Label','response',
'-log10(p)','DF1','Sample1','Proximity','Dimension 1','Dimension 2',
'x','.level','sensitivity','specificity','Mode','RSD','Median','Colour',
'Index','TIC','y','label','batch','correction','N','term','Metric','Frequency'
'Index','TIC','y','label','batch','correction','N','term','Metric','Frequency','|r|'
))
2 changes: 1 addition & 1 deletion docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/articles/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 17 additions & 17 deletions docs/articles/metabolyseR.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions docs/articles/modelling.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified docs/articles/modelling_files/figure-html/outlier-detect-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/articles/modelling_files/figure-html/regression-mds-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions docs/articles/pre_treatment.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions docs/articles/quick_start.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/authors.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 051fc5d

Please sign in to comment.