annotate BC/README.md @ 4:23314e1192d4 draft default tip

Uploaded
author melpetera
date Thu, 14 Jan 2021 09:56:58 +0000
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
1 Signal drift and batch-effect correction
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
2 ========================================
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
3
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
4 A Galaxy module from the [Workflow4metabolomics](http://workflow4metabolomics.org) infrastructure
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
5
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
6 Status: [![Build Status](https://travis-ci.org/workflow4metabolomics/batch_correction.svg?branch=master)](https://travis-ci.org/workflow4metabolomics/batch_correction).
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
7
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
8 ### Description
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
9
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
10 **Version:** 3.0.0
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
11 **Date:** 2020-10-02
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
12 **Author:** Jean-Francois Martin (INRAE, AXIOM), Melanie Petera (INRAE, PFEM), Marion Landi (PFEM), Franck Giacomoni (INRAE, PFEM), and Etienne A. Thevenot (CEA, LIST)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
13 **Email:** [jean-francois.martin(at)inrae.fr](mailto:jean-francois.martin@inrae.fr), [melanie.petera(at)inrae.fr](mailto:melanie.petera@inrae.fr), [etienne.thevenot(at)cea.fr](mailto:etienne.thevenot@cea.fr)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
14 **Citation:**
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
15 **Licence:** CeCILL
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
16 **Reference history:** [W4M00001_Sacurine-statistics; DOI:10.15454/1.4811121736910142E12](http://dx.doi.org/10.15454/1.4811121736910142E12) and [W4M00002_Sacurine-comprehensive; DOI:10.15454/1.481114233733302E12](http://dx.doi.org/10.15454/1.481114233733302E12)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
17 **Funding:** Agence Nationale de la Recherche ([MetaboHUB](http://www.metabohub.fr/index.php?lang=en&Itemid=473) national infrastructure for metabolomics and fluxomics, ANR-11-INBS-0010 grant)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
18
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
19 ### Installation
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
20
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
21 * Configuration files:
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
22 + `batch_correction.xml` (for the "Batch Correction" module)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
23 + `determine_bc.xml` (for the "Determine Batch Correction" module)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
24 * Image files:
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
25 + `static/images/batch_correction.png`
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
26 + `static/images/determine_batch_correction.png`
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
27 * Wrapper files:
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
28 + `batch_correction_3Lwrapper.R`
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
29 + `batch_correction_all_loess_wrapper.R`
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
30 * Script files:
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
31 + `batch_correction_3Lfct.R`
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
32 + `batch_correction_3Llauncher.R`
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
33 + `batch_correction_all_loess_script.R`
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
34 * R packages
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
35 + **batch** from CRAN
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
36
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
37 ```r
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
38 install.packages("batch", dep=TRUE)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
39 ```
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
40
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
41 + **ade4** from CRAN
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
42
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
43 ```r
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
44 install.packages("ade4", dep=TRUE)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
45 ```
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
46
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
47 + **pcaMethods** from Bioconductor
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
48
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
49 ```r
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
50 source("http://www.bioconductor.org/biocLite.R")
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
51 biocLite("pcaMethods")
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
52 ```
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
53
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
54 + **ropls** from Bioconductor
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
55
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
56 ```r
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
57 source("http://www.bioconductor.org/biocLite.R")
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
58 biocLite("ropls")
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
59 ```
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
60
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
61 ### Tests
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
62
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
63 Some functional tests are provided in Galaxy format (see XML wrapper and test-data folder).
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
64
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
65 WIP: The code in the batch_correction_wrapper can be tested by running the `test/batchcorrection_runtests.R` R file
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
66 You will need to install **RUnit** package in order to make it run:
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
67 ```r
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
68 install.packages('RUnit', dependencies = TRUE)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
69 ```
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
70
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
71 ### Working example
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
72
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
73 See the reference histories [W4M00001_Sacurine-statistics; DOI:10.15454/1.4811121736910142E12](http://dx.doi.org/10.15454/1.4811121736910142E12) and [W4M00002_Sacurine-comprehensive; DOI:10.15454/1.481114233733302E12](http://dx.doi.org/10.15454/1.481114233733302E12)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
74
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
75
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
76 ### News
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
77
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
78 ###### CHANGES IN VERSION 3.0.0
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
79
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
80 NEW FEATURES
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
81
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
82 * Specific names for the 'sampleType', 'injectionOrder', and 'batch' from sampleMetadata are now available in a dedicated parameter section
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
83 * Addition of a sum of ions before/after plot for linear/lowess/loess methods
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
84 * Addition of a third option in "Null values" parameter (renamed "unconsistant values") in linear/lowess/loess methods
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
85 * linear/lowess/loess methods now handle NA in intensities and allow "blank" samples in the dataset
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
86
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
87 INTERNAL MODIFICATIONS
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
88
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
89 * XML optimisation using macros
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
90 * Output name changes
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
91 * linear/lowess/loess methods: disabling of RData output
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
92 * linear/lowess/loess methods: split of tool-linked code and script-linked one
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
93 * linear/lowess/loess methods: adjustments in the normalisation process to match matters linked to NA acceptance
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
94 * linear/lowess/loess methods: better handling of special characters in IDs and column names
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
95
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
96 ###### CHANGES IN VERSION 2.2.4
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
97
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
98 INTERNAL MODIFICATIONS
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
99
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
100 Fixed bug for pool selection ("all_loess" methods)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
101
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
102 ###### CHANGES IN VERSION 2.2.2
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
103
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
104 INTERNAL MODIFICATIONS
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
105
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
106 Fixed bug for color plot ("all_loess" methods)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
107
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
108 ###### CHANGES IN VERSION 2.2.0
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
109
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
110 NEW FEATURE
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
111
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
112 Specific names for the 'sampleType', 'injectionOrder', and 'batch' from sampleMetadata can be selected by the user (for compatibility with the MTBLS downloader)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
113
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
114 ##### CHANGES IN VERSION 2.1.2
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
115
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
116 INTERNAL MODIFICATIONS
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
117
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
118 * Minor modifications in config file
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
119
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
120 ##### CHANGES IN VERSION 2.1.0
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
121
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
122 INTERNAL MODIFICATIONS
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
123
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
124 * For PCA figure display only ("all_loess_" options): missing values are set to the minimum value before PCA computation is performed (with svd)
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
125
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
126 * Additional running and installation tests added with planemo, conda, and travis
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
127
23314e1192d4 Uploaded
melpetera
parents:
diff changeset
128 * Modification of the 'all_loess_wrapper.R' file to handle 'ropls' package versions of 1.3.15 and above (i.e. after switching to S4 classes)