Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
giscience
disaster-tools
covid-19-research-map
Commits
6e6d983e
Commit
6e6d983e
authored
Jul 01, 2020
by
Sven Lautenbach
Browse files
updated data, exluded 2 additional studies
parent
b5ee3748
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
nginx/covid_website/assets/data/covid-19-trials.geojson
View file @
6e6d983e
This diff is collapsed.
Click to expand it.
python/covid_worker.py
View file @
6e6d983e
...
@@ -179,13 +179,15 @@ def run():
...
@@ -179,13 +179,15 @@ def run():
new_data_df
=
get_trials_df_from_url
()
new_data_df
=
get_trials_df_from_url
()
# remove wrong case NCT04256395
# remove wrong case NCT04256395
studies_to_delete
=
[
"NCT04256395"
,
"NCT04226157"
,
"ISRCTN51287266"
,
"NCT03042143"
,
"NCT03891420"
,
studies_to_delete
=
[
"NCT04256395"
,
"NCT04226157"
,
"ISRCTN51287266"
,
"NCT03042143"
,
"NCT03891420"
,
"EUCTR2019-002688-89-ES"
,
"EUCTR2017-001100-30-DE"
,
"NCT04389372"
,
"NCT04404192"
]
"EUCTR2019-002688-89-ES"
,
"EUCTR2017-001100-30-DE"
,
"NCT04389372"
,
"NCT04404192"
,
"ISRCTN55201674"
,
"NCT04435028"
,
"NCT04428099"
]
for
study
in
studies_to_delete
:
for
study
in
studies_to_delete
:
new_data_df
=
new_data_df
.
drop
(
new_data_df
[
new_data_df
[
'TrialID'
]
==
study
].
index
,
axis
=
0
)
new_data_df
=
new_data_df
.
drop
(
new_data_df
[
new_data_df
[
'TrialID'
]
==
study
].
index
,
axis
=
0
)
# for some studies that have been running for a while and have now been updated to incorporate COVID-19
# for some studies that have been running for a while and have now been updated to incorporate COVID-19
# as well the suggestions by Markus Reis and Konstantin is to use the date in "Last Update Post" instead
# as well the suggestions by Markus Reis and Konstantin is to use the date in "Last Update Post" instead
studies_updated
=
[
"EUCTR2015-002340-14-NL"
,
"NCT03331445"
,
"NCT04061382"
,
"NCT03680274"
,
"NCT03808922"
,
"NCT03042143"
studies_updated
=
[
"EUCTR2015-002340-14-NL"
,
"NCT03331445"
,
"NCT04061382"
,
"NCT03680274"
,
"NCT03808922"
,
"NCT03042143"
,
"NCT04092478"
,
"EUCTR2018-004318-16-DK"
,
"NCT03648372"
,
"NCT02765191"
,
"NCT04193878"
]
,
"NCT04092478"
,
"EUCTR2018-004318-16-DK"
,
"NCT03648372"
,
"NCT02765191"
,
"NCT04193878"
,
"NCT03963622"
,
"NCT03376854"
,
"ISRCTN18274006"
,
"ISRCTN16483855"
]
needsUpdate
=
new_data_df
[
'TrialID'
].
isin
(
studies_updated
)
needsUpdate
=
new_data_df
[
'TrialID'
].
isin
(
studies_updated
)
new_data_df
[
"Date registration"
]
=
np
.
where
(
needsUpdate
,
new_data_df
[
"Date registration"
]
=
np
.
where
(
needsUpdate
,
new_data_df
[
"Last Refreshed on"
],
new_data_df
[
"Last Refreshed on"
],
...
...
python/dat/covid-19-trials.csv
View file @
6e6d983e
This diff is collapsed.
Click to expand it.
python/dat/covid-19-trials.geojson
View file @
6e6d983e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment