geoseeq 0.6.2__py3-none-any.whl → 0.6.3__py3-none-any.whl
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.
- geoseeq/cli/download.py +2 -2
- geoseeq/cli/main.py +2 -2
- geoseeq/result/file_download.py +2 -1
- {geoseeq-0.6.2.dist-info → geoseeq-0.6.3.dist-info}/METADATA +6 -1
- {geoseeq-0.6.2.dist-info → geoseeq-0.6.3.dist-info}/RECORD +9 -9
- {geoseeq-0.6.2.dist-info → geoseeq-0.6.3.dist-info}/WHEEL +1 -1
- {geoseeq-0.6.2.dist-info → geoseeq-0.6.3.dist-info}/LICENSE +0 -0
- {geoseeq-0.6.2.dist-info → geoseeq-0.6.3.dist-info}/entry_points.txt +0 -0
- {geoseeq-0.6.2.dist-info → geoseeq-0.6.3.dist-info}/top_level.txt +0 -0
geoseeq/cli/download.py
CHANGED
@@ -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
|
---
|
geoseeq/cli/main.py
CHANGED
@@ -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')
|
geoseeq/result/file_download.py
CHANGED
@@ -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
|
|
@@ -19,10 +19,10 @@ geoseeq/cli/__init__.py,sha256=4WnK87K5seRK3SGJAxNWnQTqyg5uBhdhrOrzB1D4b3M,24
|
|
19
19
|
geoseeq/cli/constants.py,sha256=Do5AUf9lMO9_P8KpFJ3XwwFBAWsxSjZ6sx9_QEGyC_c,176
|
20
20
|
geoseeq/cli/copy.py,sha256=02U9kdrAIbbM8MlRMLL6p-LMYFSuRObE3h5jyvcL__M,2275
|
21
21
|
geoseeq/cli/detail.py,sha256=q8Suu-j2k18knfSVFG-SWWGNsKM-n8y9RMA3LcIIi9Y,4132
|
22
|
-
geoseeq/cli/download.py,sha256=
|
22
|
+
geoseeq/cli/download.py,sha256=QTNA7qFjCdRJg2vKbAm5yH8WGlcF5fb5bSjm5QiI4XE,17768
|
23
23
|
geoseeq/cli/fastq_utils.py,sha256=-bmeQLaiMBm57zWOF0R5OlWTU0_3sh1JBC1RYw2BOFM,3083
|
24
24
|
geoseeq/cli/get_eula.py,sha256=79mbUwyiF7O1r0g6UTxG9kJGQEqKuH805E6eLkPC6Y4,997
|
25
|
-
geoseeq/cli/main.py,sha256=
|
25
|
+
geoseeq/cli/main.py,sha256=9yQRXR8Bs304a0m0eVFnrtmTClChED9S9C3ns2I0szA,3830
|
26
26
|
geoseeq/cli/manage.py,sha256=wGXAcVaXqE5JQEU8Jh6OlHr02nB396bpS_SFcOZdrEo,5929
|
27
27
|
geoseeq/cli/progress_bar.py,sha256=p1Xl01nkYxSBZCB30ue2verIIi22W93m3ZAMAxipD0g,738
|
28
28
|
geoseeq/cli/project.py,sha256=V5SdXm2Hwo2lxrkpwRDedw-mAE4XnM2uwT-Gj1D90VQ,3030
|
@@ -69,7 +69,7 @@ geoseeq/plotting/map/overlay.py,sha256=4VmxqOESTQra9tPr8b8OLEUhJSit9lNipabeSznEY
|
|
69
69
|
geoseeq/result/__init__.py,sha256=IFHIyRV8ZzuKIfwfze1SXgcKwNMcSgMAknLHMkwjXIU,356
|
70
70
|
geoseeq/result/bioinfo.py,sha256=QQtbyogrdro9avJSN0713sxLVnVeA24mFw3hWtKDKyw,1782
|
71
71
|
geoseeq/result/file_chunker.py,sha256=bXq1csuRtqMB5sbH-AfWo6gdPwrivv5DJPuHVj-h08w,1758
|
72
|
-
geoseeq/result/file_download.py,sha256=
|
72
|
+
geoseeq/result/file_download.py,sha256=KalIkwBbFI8xRpbhToixfd1KMAu_0FYwxdKq146NAHw,7832
|
73
73
|
geoseeq/result/file_upload.py,sha256=xs1DrI-h4ZP7xN8HPBc3SFpcPAxR5HAolraP1Zu7tvE,10648
|
74
74
|
geoseeq/result/result_file.py,sha256=1Yj9fkZhds3J-tay6eNH2-EHi00MovHGV1M80_ckHD8,8677
|
75
75
|
geoseeq/result/result_folder.py,sha256=6porOXPh7Tpxw3oX5yMRPYQzNCGYqszqmFJd3SwQmTc,11122
|
@@ -88,9 +88,9 @@ geoseeq/vc/vc_stub.py,sha256=IQr8dI0zsWKVAeY_5ybDD6n49_3othcgfHS3P0O9tuY,3110
|
|
88
88
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
89
89
|
tests/test_api_client.py,sha256=TS5njc5pcPP_Ycy-ljcfPVT1hQRBsFVdQ0lCqBmoesU,12810
|
90
90
|
tests/test_plotting.py,sha256=TcTu-2ARr8sxZJ7wPQxmbs3-gHw7uRvsgrhhhg0qKik,784
|
91
|
-
geoseeq-0.6.
|
92
|
-
geoseeq-0.6.
|
93
|
-
geoseeq-0.6.
|
94
|
-
geoseeq-0.6.
|
95
|
-
geoseeq-0.6.
|
96
|
-
geoseeq-0.6.
|
91
|
+
geoseeq-0.6.3.dist-info/LICENSE,sha256=IuhIl1XCxXLPLJT_coN1CNqQU4Khlq7x4IdW7ioOJD8,1067
|
92
|
+
geoseeq-0.6.3.dist-info/METADATA,sha256=IH-VB_1NsbGTLGO_j2OuJunReO7L-FSnougvAgZUQkE,4915
|
93
|
+
geoseeq-0.6.3.dist-info/WHEEL,sha256=y4mX-SOX4fYIkonsAGA5N0Oy-8_gI4FXw5HNI1xqvWg,91
|
94
|
+
geoseeq-0.6.3.dist-info/entry_points.txt,sha256=yF-6KDM8zXib4Al0qn49TX-qM7PUkWUIcYtsgt36rjM,45
|
95
|
+
geoseeq-0.6.3.dist-info/top_level.txt,sha256=zZk7mmeaqAYqFJG8nq2DTgSQPbflRjJwkDIhNURPDEU,14
|
96
|
+
geoseeq-0.6.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|