aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPjotr Prins2020-11-06 10:31:56 +0000
committerPjotr Prins2020-11-06 10:31:56 +0000
commit951ebe949d88cdbfed028e0a2a420ce7921c3919 (patch)
treec0127ac7e4446d33deb2dc7f03114a9a934bace0 /scripts
parent039ad90b1627464b687adddb08cf489dca3c5fbc (diff)
downloadbh20-seq-resource-951ebe949d88cdbfed028e0a2a420ce7921c3919.tar.gz
bh20-seq-resource-951ebe949d88cdbfed028e0a2a420ce7921c3919.tar.lz
bh20-seq-resource-951ebe949d88cdbfed028e0a2a420ce7921c3919.zip
Countries
Diffstat (limited to 'scripts')
-rw-r--r--scripts/db_enrichment/input_location.csv21
-rw-r--r--scripts/uthsc_samples/uthsc_samples.py12
2 files changed, 22 insertions, 11 deletions
diff --git a/scripts/db_enrichment/input_location.csv b/scripts/db_enrichment/input_location.csv
index eb5322a..a4246cd 100644
--- a/scripts/db_enrichment/input_location.csv
+++ b/scripts/db_enrichment/input_location.csv
@@ -1,5 +1,16 @@
-http://www.wikidata.org/entity/Q3289517
-http://www.wikidata.org/entity/Q79663
-http://www.wikidata.org/entity/Q2145339
-http://www.wikidata.org/entity/Q23197
-http://www.wikidata.org/entity/Q494755
+http://www.wikidata.org/entity/Q7960498
+http://www.wikidata.org/entity/Q692895
+http://www.wikidata.org/entity/Q928
+http://www.wikidata.org/entity/Q2722074
+http://www.wikidata.org/entity/Q25622187
+http://www.wikidata.org/entity/Q27684996
+http://www.wikidata.org/entity/Q2757125
+http://www.wikidata.org/entity/Q1922283
+http://www.wikidata.org/entity/Q490
+http://www.wikidata.org/entity/Q677037
+http://www.wikidata.org/entity/Q3037
+http://www.wikidata.org/entity/Q843
+http://www.wikidata.org/entity/Q183
+http://www.wikidata.org/entity/Q29
+http://www.wikidata.org/entity/Q17
+http://www.wikidata.org/entity/Q810
diff --git a/scripts/uthsc_samples/uthsc_samples.py b/scripts/uthsc_samples/uthsc_samples.py
index c18c07a..3ad2561 100644
--- a/scripts/uthsc_samples/uthsc_samples.py
+++ b/scripts/uthsc_samples/uthsc_samples.py
@@ -32,13 +32,13 @@ for index, row in table.iterrows():
sample_name = sample
collection_date = parse(str(row['Collection Date'])).strftime('%Y-%m-%d')
locationx = row['City']+", "+row['State']+", USA"
- location = "http://www.wikidata.org/enitity/Q16563" # Memphis by default
+ location = "http://www.wikidata.org/entity/Q16563" # Memphis by default
map = {
- "Pegram": "http://www.wikidata.org/enitity/Q3289517",
- "Alexander": "http://www.wikidata.org/enitity/Q79663",
- "Smithville": "http://www.wikidata.org/enitity/Q2145339",
- "Nashville": "http://www.wikidata.org/enitity/Q23197",
- "Madison": "http://www.wikidata.org/enitity/Q494755"
+ "Pegram": "http://www.wikidata.org/entity/Q3289517",
+ "Alexander": "http://www.wikidata.org/entity/Q79663",
+ "Smithville": "http://www.wikidata.org/entity/Q2145339",
+ "Nashville": "http://www.wikidata.org/entity/Q23197",
+ "Madison": "http://www.wikidata.org/entity/Q494755"
}
for name in map: