Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring of the repo #103

Merged
merged 7 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ClinMicro/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
> **Status:** Manually run whenever there is new data.

## Scripts related to clinical microbiology

This folder contains all the initial files required to produce the visualisations shown on the page for the clinical microbiology dashboard on the portal.
This folder contains all of the scripts required to produce the visualisations shown on the [SARS-CoV-2 variants for Uppsala](https://www.pathogens.se/dashboards/variants_region_uppsala/) dashboard on the portal. The data are held offline. All of the scripts use the global requirements file for the visualisations repository that contains this subfolder.

**lineage_five_recent.py** - script to prepare the data and produce the graph for lineages classified according to their Pango lineage more granularly than in the 'four' lineage plot. Data are limited to the period since October 2023.

**lineage_four_recent.py** - script to prepare the data and produce the graph for lineages classified according to their Pango lineage. Data are limited to the period since the start of 2023.

**lineage_one_wholetime.py** - script to prepare the data and produce the graph for lineages classified according to their WHO classification and/or Pango lineage. Shows data from the full timeline.

**requirements.txt** - requirements file showing packages used.
19 changes: 0 additions & 19 deletions ClinMicro/requirements.txt

This file was deleted.

123 changes: 0 additions & 123 deletions Count_publications/.gitignore

This file was deleted.

8 changes: 3 additions & 5 deletions Count_publications/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
## Count_publications
>**Status:** Active, automatically run in `dc-dynamic`'s [runner_weekly.sh](https://github.com/ScilifelabDataCentre/dc-dynamic/blob/master/runner_weekly.sh)

This folder contains the information required to create the plot related to counts of publications in the COVID-19 publication database. It comprises of a combined line and bar plot. Note that this plot is set up in the dynamic repository to automatically update.
## Count_publications

**gitignore** - a gitignore file for this part of the reporsitory.
This folder contains the information required to create the plot related to counts of publications in the COVID-19 publication database and showed in [COVID-19 publication overview](https://www.pathogens.se/dashboards/covid_publications/) dashboard. It comprises of a combined line and bar plot. Note that this plot is set up in the dynamic repository to automatically update.

**count_publications.py** - the script used to produce the plot.

**requirements.txt** - the requirements file used to recreate the environment needed to run the python script.
4 changes: 2 additions & 2 deletions Count_publications/count_publications.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
df = df[df["published"] < currdate]
df.sort_values(by="published", inplace=True)
df1 = df["published"].value_counts().sort_index().reset_index()
df1["cumulativecount"] = df1["published"].cumsum()
df1["cumulativecount"] = df1["count"].cumsum()

# find number of papers published in each month
df["year"] = pd.DatetimeIndex(df["published"]).year
Expand All @@ -42,7 +42,7 @@
# line graph
trace1 = go.Scatter(
mode="lines",
x=df1["index"],
x=df1["published"],
y=df1["cumulativecount"],
name="Cumulative Total",
marker_color="rgb(46,104,165)",
Expand Down
38 changes: 0 additions & 38 deletions Count_publications/requirements.txt

This file was deleted.

133 changes: 0 additions & 133 deletions DASH_apps/.gitignore

This file was deleted.

34 changes: 0 additions & 34 deletions DASH_apps/requirements.txt

This file was deleted.

Loading