geoseeq 0.6.2__tar.gz → 0.6.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {geoseeq-0.6.2 → geoseeq-0.6.3}/PKG-INFO +6 -1
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/download.py +2 -2
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/main.py +2 -2
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/result/file_download.py +2 -1
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq.egg-info/PKG-INFO +6 -1
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq.egg-info/SOURCES.txt +1 -0
- geoseeq-0.6.3/geoseeq.egg-info/requires.txt +5 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/pyproject.toml +9 -2
- {geoseeq-0.6.2 → geoseeq-0.6.3}/LICENSE +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/README.md +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/app.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/blob_constructors.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/bulk_creators.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/constants.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/copy.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/detail.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/fastq_utils.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/get_eula.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/manage.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/progress_bar.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/project.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/raw.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/run.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/search.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/shared_params/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/shared_params/common_state.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/shared_params/config.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/shared_params/id_handlers.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/shared_params/obj_getters.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/shared_params/opts_and_args.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/upload/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/upload/upload.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/upload/upload_advanced.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/upload/upload_reads.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/user.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/utils.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/cli/view.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/constants.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/contrib/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/contrib/ncbi/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/contrib/ncbi/api.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/contrib/ncbi/bioproject.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/contrib/ncbi/cli.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/contrib/ncbi/setup_logging.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/file_system/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/file_system/filesystem_download.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/file_system/main.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/file_system_cache.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/id_constructors/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/id_constructors/from_blobs.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/id_constructors/from_ids.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/id_constructors/from_names.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/id_constructors/from_uuids.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/id_constructors/resolvers.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/id_constructors/utils.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/knex.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/organization.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/pipeline.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/plotting/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/plotting/constants.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/plotting/highcharts.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/plotting/map/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/plotting/map/base_layer.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/plotting/map/map.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/plotting/map/overlay.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/plotting/selectable.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/project.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/remote_object.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/result/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/result/bioinfo.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/result/file_chunker.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/result/file_upload.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/result/result_file.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/result/result_folder.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/result/resumable_download_tracker.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/result/resumable_upload_tracker.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/result/utils.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/sample.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/search.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/upload_download_manager.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/user.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/utils.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/vc/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/vc/checksum.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/vc/cli.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/vc/clone.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/vc/constants.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/vc/vc_cache.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/vc/vc_dir.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/vc/vc_sample.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/vc/vc_stub.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq/work_orders.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq.egg-info/dependency_links.txt +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq.egg-info/entry_points.txt +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/geoseeq.egg-info/top_level.txt +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/setup.cfg +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/setup.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/tests/__init__.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/tests/test_api_client.py +0 -0
- {geoseeq-0.6.2 → geoseeq-0.6.3}/tests/test_plotting.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: geoseeq
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.3
|
4
4
|
Summary: GeoSeeq command line tools and python API
|
5
5
|
Author: David C. Danko
|
6
6
|
Author-email: "David C. Danko" <dcdanko@biotia.io>
|
@@ -12,6 +12,11 @@ Classifier: Operating System :: OS Independent
|
|
12
12
|
Requires-Python: >=3.8
|
13
13
|
Description-Content-Type: text/markdown
|
14
14
|
License-File: LICENSE
|
15
|
+
Requires-Dist: requests
|
16
|
+
Requires-Dist: click
|
17
|
+
Requires-Dist: pandas
|
18
|
+
Requires-Dist: biopython
|
19
|
+
Requires-Dist: tqdm
|
15
20
|
|
16
21
|
# Geoseeq API Client
|
17
22
|
|
@@ -160,8 +160,8 @@ def cli_download_files(
|
|
160
160
|
|
161
161
|
\b
|
162
162
|
# Download assembly contigs from two samples in the MetaSUB Consortium CSD16 project
|
163
|
-
$ geoseeq download files "MetaSUB Consortium/CSD16" `# specify the project`
|
164
|
-
haib17CEM4890_H2NYMCCXY_SL254769 haib17CEM4890_H2NYMCCXY_SL254773 `# specify the samples by name`
|
163
|
+
$ geoseeq download files "MetaSUB Consortium/CSD16" `# specify the project` \\
|
164
|
+
haib17CEM4890_H2NYMCCXY_SL254769 haib17CEM4890_H2NYMCCXY_SL254773 `# specify the samples by name` \\
|
165
165
|
--folder-type sample --extension '.contigs.fasta' # filter for contig files
|
166
166
|
|
167
167
|
---
|
@@ -26,7 +26,7 @@ handler.setFormatter(logging.Formatter('[%(levelname)s] %(name)s :: %(message)s'
|
|
26
26
|
logger.addHandler(handler)
|
27
27
|
|
28
28
|
|
29
|
-
@click.group()
|
29
|
+
@click.group(context_settings={'show_default': True})
|
30
30
|
def main():
|
31
31
|
"""Command line interface for the GeoSeeq API.
|
32
32
|
|
@@ -54,7 +54,7 @@ def version():
|
|
54
54
|
Use of this tool implies acceptance of the GeoSeeq End User License Agreement.
|
55
55
|
Run `geoseeq eula show` to view the EULA.
|
56
56
|
"""
|
57
|
-
click.echo('0.6.
|
57
|
+
click.echo('0.6.3') # remember to update setup
|
58
58
|
|
59
59
|
|
60
60
|
@main.group('advanced')
|
@@ -6,6 +6,7 @@ import os
|
|
6
6
|
from os.path import basename, getsize, join, isfile, getmtime, dirname
|
7
7
|
from pathlib import Path
|
8
8
|
from tempfile import NamedTemporaryFile
|
9
|
+
from math import ceil
|
9
10
|
|
10
11
|
from geoseeq.utils import download_ftp
|
11
12
|
from geoseeq.constants import FIVE_MB
|
@@ -43,7 +44,7 @@ def _download_resumable(response, filename, total_size_in_bytes, progress_tracke
|
|
43
44
|
target_id = url_to_id(response.url)
|
44
45
|
tracker = ResumableDownloadTracker(chunk_size, target_id, filename)
|
45
46
|
if not tracker.download_started: tracker.start_download(response.url)
|
46
|
-
n_chunks = total_size_in_bytes
|
47
|
+
n_chunks = ceil(total_size_in_bytes / chunk_size)
|
47
48
|
for i in range(n_chunks):
|
48
49
|
bytes_start, bytes_end = i * chunk_size, min((i + 1) * chunk_size - 1, total_size_in_bytes - 1)
|
49
50
|
if tracker.part_has_been_downloaded(i):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: geoseeq
|
3
|
-
Version: 0.6.
|
3
|
+
Version: 0.6.3
|
4
4
|
Summary: GeoSeeq command line tools and python API
|
5
5
|
Author: David C. Danko
|
6
6
|
Author-email: "David C. Danko" <dcdanko@biotia.io>
|
@@ -12,6 +12,11 @@ Classifier: Operating System :: OS Independent
|
|
12
12
|
Requires-Python: >=3.8
|
13
13
|
Description-Content-Type: text/markdown
|
14
14
|
License-File: LICENSE
|
15
|
+
Requires-Dist: requests
|
16
|
+
Requires-Dist: click
|
17
|
+
Requires-Dist: pandas
|
18
|
+
Requires-Dist: biopython
|
19
|
+
Requires-Dist: tqdm
|
15
20
|
|
16
21
|
# Geoseeq API Client
|
17
22
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "geoseeq"
|
7
|
-
version = "0.6.
|
7
|
+
version = "0.6.3"
|
8
8
|
authors = [
|
9
9
|
{ name="David C. Danko", email="dcdanko@biotia.io" },
|
10
10
|
]
|
@@ -16,10 +16,17 @@ classifiers = [
|
|
16
16
|
"License :: OSI Approved :: MIT License",
|
17
17
|
"Operating System :: OS Independent",
|
18
18
|
]
|
19
|
+
dependencies = [
|
20
|
+
"requests",
|
21
|
+
"click",
|
22
|
+
"pandas",
|
23
|
+
"biopython",
|
24
|
+
"tqdm",
|
25
|
+
]
|
19
26
|
|
20
27
|
[project.urls]
|
21
28
|
Homepage = "https://github.com/biotia/geoseeq_api_client"
|
22
29
|
Issues = "https://github.com/biotia/geoseeq_api_client/issues"
|
23
30
|
|
24
31
|
[project.scripts]
|
25
|
-
geoseeq = "geoseeq.cli:main"
|
32
|
+
geoseeq = "geoseeq.cli:main"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|