forked from ELIXIR-Belgium/ISA-merger
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
31 lines (27 loc) · 1.1 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const extractor = require("./src/extractor");
// *** The ENA source extractor
const sourceOptions = {
ENAChecklist: "./input/ENA/Source/ENA.xml",
ISAConfiguration: "./input/ENA/Source/ISA.xml",
outputPath: "./output/sourceMerged.txt",
};
extractor.sourceExtractor.getENAData(sourceOptions);
// *** The assay extractor
const assayOptions = {
ISAConfiguration: "./input/ENA/Assay/genome_seq.xml",
outputPath: "./output/assayMerged.txt",
};
extractor.assayExtractor.getENAData(assayOptions);
// *** The Metabolights source extractor
const MetabolightsSourceOptions = {
ISAConfiguration: "./input/Metabolights/Source/studySample.xml",
outputPath: "./output/MetabolightsSourceExtracted.txt",
};
extractor.sourceExtractor.getMetabolightsData(MetabolightsSourceOptions);
// *** The Metabolights assay extractor
const MetabolightsAssayOptions = {
firstInput: "./input/Metabolights/Assay/metaboliteprofiling_ms.xml",
secondInput: "./input/Metabolights/Assay/metaboliteprofiling_nmr.xml",
outputPath: "./output/MetabolightsAssayMerged.txt",
};
extractor.assayExtractor.getMetabolightsData(MetabolightsAssayOptions);