polly-python 2.1.0__tar.gz → 3.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. {polly_python-2.1.0/polly_python.egg-info → polly_python-3.0.0}/PKG-INFO +7 -14
  2. polly_python-3.0.0/polly/__init__.py +1 -0
  3. {polly_python-2.1.0 → polly_python-3.0.0}/polly/analyze.py +5 -1
  4. {polly_python-2.1.0 → polly_python-3.0.0}/polly/constants.py +15 -15
  5. {polly_python-2.1.0 → polly_python-3.0.0}/polly/curation.py +259 -246
  6. {polly_python-2.1.0 → polly_python-3.0.0}/polly/errors.py +38 -38
  7. {polly_python-2.1.0 → polly_python-3.0.0}/polly/helpers.py +40 -79
  8. {polly_python-2.1.0 → polly_python-3.0.0}/polly/jobs.py +8 -5
  9. {polly_python-2.1.0 → polly_python-3.0.0}/polly/omixatlas.py +102 -70
  10. {polly_python-2.1.0 → polly_python-3.0.0}/polly/pipelines.py +132 -98
  11. {polly_python-2.1.0 → polly_python-3.0.0}/polly/workspaces.py +181 -76
  12. {polly_python-2.1.0 → polly_python-3.0.0/polly_python.egg-info}/PKG-INFO +7 -14
  13. {polly_python-2.1.0 → polly_python-3.0.0}/polly_python.egg-info/SOURCES.txt +2 -4
  14. {polly_python-2.1.0 → polly_python-3.0.0}/polly_python.egg-info/requires.txt +5 -14
  15. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/reporting/reporting.py +49 -27
  16. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/reporting/reporting_hlpr.py +1 -1
  17. {polly_python-2.1.0 → polly_python-3.0.0}/setup.cfg +6 -13
  18. {polly_python-2.1.0 → polly_python-3.0.0}/tests/test_constants.py +10 -8
  19. polly_python-3.0.0/tests/test_help.py +81 -0
  20. {polly_python-2.1.0 → polly_python-3.0.0}/tests/test_helpers.py +10 -10
  21. {polly_python-2.1.0 → polly_python-3.0.0}/tests/test_omixatlas.py +9 -4
  22. {polly_python-2.1.0 → polly_python-3.0.0}/tests/test_pipelines.py +34 -25
  23. polly_python-3.0.0/tests/test_validation.py +135 -0
  24. polly_python-2.1.0/polly/__init__.py +0 -1
  25. polly_python-2.1.0/polly/bridge_cohort.py +0 -399
  26. polly_python-2.1.0/polly/cohort.py +0 -429
  27. polly_python-2.1.0/polly/core_cohort.py +0 -721
  28. polly_python-2.1.0/tests/test_cohort.py +0 -216
  29. {polly_python-2.1.0 → polly_python-3.0.0}/LICENSE.md +0 -0
  30. {polly_python-2.1.0 → polly_python-3.0.0}/MANIFEST.in +0 -0
  31. {polly_python-2.1.0 → polly_python-3.0.0}/README.md +0 -0
  32. {polly_python-2.1.0 → polly_python-3.0.0}/polly/application_error_info.py +0 -0
  33. {polly_python-2.1.0 → polly_python-3.0.0}/polly/atlas.py +0 -0
  34. {polly_python-2.1.0 → polly_python-3.0.0}/polly/auth.py +0 -0
  35. {polly_python-2.1.0 → polly_python-3.0.0}/polly/data_management.py +0 -0
  36. {polly_python-2.1.0 → polly_python-3.0.0}/polly/help.py +0 -0
  37. {polly_python-2.1.0 → polly_python-3.0.0}/polly/http_response_codes.py +0 -0
  38. {polly_python-2.1.0 → polly_python-3.0.0}/polly/index_schema_level_conversion_const.py +0 -0
  39. {polly_python-2.1.0 → polly_python-3.0.0}/polly/omixatlas_hlpr.py +0 -0
  40. {polly_python-2.1.0 → polly_python-3.0.0}/polly/s3_utils.py +0 -0
  41. {polly_python-2.1.0 → polly_python-3.0.0}/polly/session.py +0 -0
  42. {polly_python-2.1.0 → polly_python-3.0.0}/polly/threading_utils.py +0 -0
  43. {polly_python-2.1.0 → polly_python-3.0.0}/polly/tracking.py +0 -0
  44. {polly_python-2.1.0 → polly_python-3.0.0}/polly/validation.py +0 -0
  45. {polly_python-2.1.0 → polly_python-3.0.0}/polly/validation_hlpr.py +0 -0
  46. {polly_python-2.1.0 → polly_python-3.0.0}/polly_interfaces/IFiles.py +0 -0
  47. {polly_python-2.1.0 → polly_python-3.0.0}/polly_interfaces/IReporting.py +0 -0
  48. {polly_python-2.1.0 → polly_python-3.0.0}/polly_interfaces/ISchema.py +0 -0
  49. {polly_python-2.1.0 → polly_python-3.0.0}/polly_interfaces/__init__.py +0 -0
  50. {polly_python-2.1.0 → polly_python-3.0.0}/polly_python.egg-info/dependency_links.txt +0 -0
  51. {polly_python-2.1.0 → polly_python-3.0.0}/polly_python.egg-info/top_level.txt +0 -0
  52. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/__init__.py +0 -0
  53. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/dataset.py +0 -0
  54. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/files/__init__.py +0 -0
  55. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/files/files.py +0 -0
  56. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/files/files_hlpr.py +0 -0
  57. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/polly_services_hlpr.py +0 -0
  58. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/reporting/__init__.py +0 -0
  59. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/schema/__init__.py +0 -0
  60. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/schema/schema.py +0 -0
  61. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/schema/schema_const.py +0 -0
  62. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/schema/schema_hlpr.py +0 -0
  63. {polly_python-2.1.0 → polly_python-3.0.0}/polly_services/schema/validate_schema_hlpr.py +0 -0
  64. {polly_python-2.1.0 → polly_python-3.0.0}/pyproject.toml +0 -0
  65. {polly_python-2.1.0 → polly_python-3.0.0}/setup.py +0 -0
  66. {polly_python-2.1.0 → polly_python-3.0.0}/tests/test_curation.py +0 -0
  67. {polly_python-2.1.0 → polly_python-3.0.0}/tests/test_data_management.py +0 -0
  68. {polly_python-2.1.0 → polly_python-3.0.0}/tests/test_jobs.py +0 -0
  69. {polly_python-2.1.0 → polly_python-3.0.0}/tests/test_s3_utils.py +0 -0
  70. {polly_python-2.1.0 → polly_python-3.0.0}/tests/test_schema_ux.py +0 -0
  71. {polly_python-2.1.0 → polly_python-3.0.0}/tests/test_threading_utils.py +0 -0
  72. {polly_python-2.1.0 → polly_python-3.0.0}/tests/test_workspaces.py +0 -0
@@ -1,14 +1,14 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: polly_python
3
- Version: 2.1.0
3
+ Version: 3.0.0
4
4
  Summary: Polly SDK
5
5
  Home-page: https://github.com/ElucidataInc/polly-python
6
6
  Project-URL: Documentation, https://docs.elucidata.io
7
7
  Project-URL: Tutorial Notebooks, https://github.com/ElucidataInc/polly-python
8
- Requires-Python: >3.6
8
+ Requires-Python: <=3.11,>=3.9
9
9
  Description-Content-Type: text/markdown
10
10
  License-File: LICENSE.md
11
- Requires-Dist: elucidatacmapPy==3.3.4
11
+ Requires-Dist: cmapPy<=4.0.1
12
12
  Requires-Dist: cloudpathlib>=0.15.0
13
13
  Requires-Dist: retrying==1.3.4
14
14
  Requires-Dist: rst2txt==1.1.0
@@ -17,22 +17,15 @@ Requires-Dist: mixpanel==4.10.0
17
17
  Requires-Dist: Deprecated>=1.2.12
18
18
  Requires-Dist: pytest>=6.2.5
19
19
  Requires-Dist: cryptography<=38.0.0,>=37.0.1
20
- Requires-Dist: plotly<5.0.0,>=4.8.1; python_version > "3.6" and python_version < "3.7"
21
20
  Requires-Dist: plotly>=5.0.0; python_version >= "3.7"
22
- Requires-Dist: pandas<1.2.0,>=1.1.0; python_version > "3.6" and python_version < "3.7"
23
- Requires-Dist: pandas>=1.3.5; python_version >= "3.7"
24
- Requires-Dist: pydantic<1.10.0a1,>=1.8.2; python_version > "3.6" and python_version < "3.7"
21
+ Requires-Dist: pandas<=2.2.2,>=1.3.5; python_version >= "3.7"
22
+ Requires-Dist: numpy<=1.26.4
25
23
  Requires-Dist: pydantic==1.10.12; python_version >= "3.7"
26
24
  Requires-Dist: requests==2.28.1
27
- Requires-Dist: numpy==1.26.4
28
- Requires-Dist: boto3<1.24.0,>=1.17.73; python_version > "3.6" and python_version < "3.7"
29
- Requires-Dist: boto3>=1.24.0; python_version >= "3.7"
30
- Requires-Dist: botocore<1.27.0,>=1.20.73; python_version > "3.6" and python_version < "3.7"
31
- Requires-Dist: botocore>=1.27.0; python_version >= "3.7"
32
- Requires-Dist: joblib<=1.1.0,>0.11.0; python_version > "3.6" and python_version < "3.7"
25
+ Requires-Dist: boto3<2.0,>=1.24.0; python_version >= "3.7"
26
+ Requires-Dist: botocore<2.0,>=1.27.0; python_version >= "3.7"
33
27
  Requires-Dist: joblib>=1.2.0; python_version >= "3.7"
34
28
  Requires-Dist: tabulate==0.9.0
35
- Requires-Dist: tqdm<4.65.0,>=4.61.0; python_version > "3.6" and python_version < "3.7"
36
29
  Requires-Dist: tqdm==4.65.0; python_version >= "3.7"
37
30
  Provides-Extra: testing
38
31
  Requires-Dist: black; extra == "testing"
@@ -0,0 +1 @@
1
+ __version__ = "3.0.0"
@@ -23,9 +23,11 @@ import numpy as np
23
23
  class Analyze:
24
24
  """
25
25
  The Analyze class contains functions which can be used to identify cohorts in datasets, \
26
- perform differential expression and pathway analysis, and execute meta-analysis workflows.\
26
+ perform differential expression and pathway analysis, and execute meta-analysis workflows.
27
+
27
28
  Args:
28
29
  token (str): Authentication token from polly
30
+
29
31
  Usage:
30
32
  from polly.analyze import Analyze
31
33
 
@@ -58,6 +60,7 @@ class Analyze:
58
60
  Args:
59
61
  repo_key (int/str): repo_id or repo_name in str or int format
60
62
  dataset_id (str): dataset_id of the GEO dataset. eg. "GSE132270_GPL11154_raw"
63
+
61
64
  Returns:
62
65
  Dataframe showing values of samples across factors/cohorts.
63
66
  """
@@ -290,6 +293,7 @@ class Analyze:
290
293
  """
291
294
  Use this function to execute the Polly DIY Meta-Analysis Pipeline.
292
295
  Only the 'geo_transcriptomics_omixatlas' omixatlas is supported currently.
296
+
293
297
  Args:
294
298
  repo_key (int/str): repo_id or repo_name in str or int format
295
299
  workspace_id (int): the workspace in which the datasets and results should be stored
@@ -92,22 +92,22 @@ IO_CHUNKSIZE_LARGE_FILE_SIZE = 100 * MB
92
92
  EXPIRED_TOKEN = "ExpiredToken"
93
93
 
94
94
  # cohort constants
95
- COHORT_VERSION = "0.2"
96
- COHORT_CONSTANTS_URL = (
97
- "https://elucidatainc.github.io/PublicAssets/cohort_constants.txt"
98
- )
95
+ # COHORT_VERSION = "0.2"
96
+ # COHORT_CONSTANTS_URL = (
97
+ # "https://elucidatainc.github.io/PublicAssets/cohort_constants.txt"
98
+ # )
99
99
 
100
- OBSOLETE_METADATA_FIELDS = [
101
- "package",
102
- "region",
103
- "bucket",
104
- "key",
105
- "file_type",
106
- "file_location",
107
- "src_uri",
108
- "timestamp_",
109
- ]
110
- dot = "."
100
+ # OBSOLETE_METADATA_FIELDS = [
101
+ # "package",
102
+ # "region",
103
+ # "bucket",
104
+ # "key",
105
+ # "file_type",
106
+ # "file_location",
107
+ # "src_uri",
108
+ # "timestamp_",
109
+ # ]
110
+ # dot = "."
111
111
 
112
112
  GETTING_UPLOAD_URLS_PAYLOAD = {"data": {"type": "files", "attributes": {"folder": ""}}}
113
113