diff --git a/environment.yml b/environment.yml index 746fe16..1a1d94d 100644 --- a/environment.yml +++ b/environment.yml @@ -9,7 +9,6 @@ dependencies: - click - pytest - setuptools - - plotly - boto3 - botocore - tqdm diff --git a/pridepy/statistics/__init__.py b/pridepy/statistics/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/pridepy/statistics/statistics.py b/pridepy/statistics/statistics.py deleted file mode 100644 index ddd3f98..0000000 --- a/pridepy/statistics/statistics.py +++ /dev/null @@ -1,48 +0,0 @@ -import plotly -import plotly.graph_objs as go - -from pridepy.util.api_handling import Util - -base_url = "https://www.ebi.ac.uk/pride/ws/archive/v3/" - - -class Statistics: - """ - Statistics class supports to produce charts on PRIDE submission statistics. - """ - - @staticmethod - def plot_monthly_submissions(output_filename): - """ - Plot monthly submission as a bar chart and save into a file - :param output_filename: html output file - :return: - """ - - # get monthly submission data from API - request_url = base_url + "stats/submissions-monthly" - headers = {"Accept": "application/JSON"} - - response = Util.get_api_call(request_url, headers) - response_body = response.json() - - # sort data by past to present - data = [ - go.Bar( - x=[d[0] for d in response_body][::-1], - y=[d[1] for d in response_body][::-1], - ) - ] - - # plot the data in a bar chart - plotly.offline.plot(data, filename=output_filename, auto_open=True) - - @staticmethod - def plot_submissions_by_instrument(output_filename): - """ - Plot submissions by instruments to visualise the pecentage of submission from different instruments. - :param output_filename: - :return: html output file - """ - # Todo - pass diff --git a/pyproject.toml b/pyproject.toml index 752924d..04f5804 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pridepy" -version = "0.0.11" +version = "0.0.12" description = "Python Client library for PRIDE Rest API" authors = [ "PRIDE Team ", @@ -48,7 +48,6 @@ python = "^3.9" requests = "^2.31.0" ratelimit = "^2.2.1" click = "^8.1.7" -plotly = "^5.18.0" tqdm = "^4.66.1" boto3 = "^1.34.0" botocore = "^1.34.0" diff --git a/recipe/meta.yaml b/recipe/meta.yaml index f4178cc..bef43a0 100644 --- a/recipe/meta.yaml +++ b/recipe/meta.yaml @@ -1,7 +1,7 @@ # recipe/meta.yaml package: name: pridepy - version: "0.0.8" + version: "0.0.12" source: path: ../ @@ -26,7 +26,6 @@ requirements: - click~=8.1.7 - pytest~=8.0.2 - setuptools - - plotly~=5.22.0 - boto3~=1.34.61 - botocore~=1.34.74 - tqdm diff --git a/requirements.txt b/requirements.txt index 6750e0a..3bae141 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,7 +3,6 @@ ratelimit click pytest setuptools -plotly boto3 botocore tqdm