-
Notifications
You must be signed in to change notification settings - Fork 0
/
child_search_metadata.sh
executable file
·40 lines (35 loc) · 1.17 KB
/
child_search_metadata.sh
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
32
33
34
35
36
37
38
39
40
#!/bin/bash
echo "Importing WP3-mapped JSON"
mongoimport -d search \
-c child_wp3 \
--drop \
--jsonArray \
--file="data/patched_child.json"
echo "Importing unmapped questionnaire pseudodata"
mongoimport -d search \
-c child_unmapped \
--drop \
--type=csv \
--headerline \
--file="data/CHILDPseudoData_03-10-20/Questionnaire pseudodata-Table 1.csv"
echo "Importing cohort attributes"
mongoimport -d search \
-c child_attributes \
--drop \
--type=csv \
--headerline \
--file="data/CHILDPseudoData_03-10-20/Cohort attributes-Table 1.csv"
echo "Importing laboratory measures"
mongoimport -d search \
-c child_measures \
--drop \
--type=csv \
--headerline \
--file="data/CHILDPseudoData_03-10-20/Laboratory measures-Table 1.csv"
echo "Importing biosamples table"
mongoimport -d search \
-c child_biosamples \
--drop \
--type=csv \
--headerline \
--file="data/CHILDPseudoData_03-10-20/Biosamples-Table 1.csv"