geoseeq 0.7.8__py3-none-any.whl → 0.7.10__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 +4 -3
- geoseeq/cli/main.py +1 -1
- geoseeq/project.py +15 -12
- {geoseeq-0.7.8.dist-info → geoseeq-0.7.10.dist-info}/METADATA +1 -1
- {geoseeq-0.7.8.dist-info → geoseeq-0.7.10.dist-info}/RECORD +8 -8
- {geoseeq-0.7.8.dist-info → geoseeq-0.7.10.dist-info}/WHEEL +0 -0
- {geoseeq-0.7.8.dist-info → geoseeq-0.7.10.dist-info}/entry_points.txt +0 -0
- {geoseeq-0.7.8.dist-info → geoseeq-0.7.10.dist-info}/licenses/LICENSE +0 -0
geoseeq/cli/download.py
CHANGED
|
@@ -21,6 +21,7 @@ from .shared_params import (
|
|
|
21
21
|
ignore_errors_option,
|
|
22
22
|
folder_ids_arg,
|
|
23
23
|
)
|
|
24
|
+
from tqdm import tqdm
|
|
24
25
|
from geoseeq.result.file_download import download_url
|
|
25
26
|
from geoseeq.utils import download_ftp
|
|
26
27
|
from geoseeq.id_constructors import (
|
|
@@ -598,10 +599,10 @@ def cli_download_fastqs(state,
|
|
|
598
599
|
samples = handle_multiple_sample_ids(knex, sample_ids, proj=proj, alternate_id_col=alt_sample_id)
|
|
599
600
|
else:
|
|
600
601
|
logger.info("Fetching info for all samples in project.")
|
|
601
|
-
samples = proj.get_samples()
|
|
602
|
+
samples = list(tqdm(proj.get_samples(), total=proj.samples_count, desc="Fetching Sample Info"))
|
|
602
603
|
|
|
603
604
|
result_files_with_names = []
|
|
604
|
-
for sample in samples:
|
|
605
|
+
for sample in tqdm(samples, desc="Finding Fastq Files in Samples"):
|
|
605
606
|
try:
|
|
606
607
|
result_files_with_names += _get_sample_result_files_with_names(sample, module_name, which_fastqs_mode, file_name_mode)
|
|
607
608
|
except Exception as e:
|
|
@@ -620,7 +621,7 @@ def cli_download_fastqs(state,
|
|
|
620
621
|
progress_tracker_factory=PBarManager().get_new_bar,
|
|
621
622
|
head=head,
|
|
622
623
|
)
|
|
623
|
-
for result_file, filename, key in result_files_with_names:
|
|
624
|
+
for result_file, filename, key in tqdm(result_files_with_names, desc="Adding Fastq Files to Download Manager"):
|
|
624
625
|
callback = None
|
|
625
626
|
if head:
|
|
626
627
|
callback = _trim_fastq_to_complete_reads
|
geoseeq/cli/main.py
CHANGED
|
@@ -55,7 +55,7 @@ def version():
|
|
|
55
55
|
Use of this tool implies acceptance of the GeoSeeq End User License Agreement.
|
|
56
56
|
Run `geoseeq eula show` to view the EULA.
|
|
57
57
|
"""
|
|
58
|
-
click.echo("0.7.
|
|
58
|
+
click.echo("0.7.10") # remember to update pyproject.toml
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
@main.group("advanced")
|
geoseeq/project.py
CHANGED
|
@@ -191,23 +191,26 @@ class Project(RemoteObject):
|
|
|
191
191
|
for sample in self._get_sample_cache:
|
|
192
192
|
yield sample
|
|
193
193
|
return
|
|
194
|
+
from geoseeq.id_constructors import sample_from_uuid
|
|
194
195
|
url = f"sample_groups/{self.uuid}/samples-list?page=1&page_size=100"
|
|
195
196
|
for sample_blob in paginated_iterator(
|
|
196
197
|
self.knex, url, error_handler=error_handler
|
|
197
198
|
):
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
sample.metadata = sample_blob["metadata"]
|
|
201
|
-
if fetch:
|
|
202
|
-
sample.get()
|
|
203
|
-
sample._modified = False
|
|
204
|
-
if cache:
|
|
205
|
-
self._get_sample_cache.append(sample)
|
|
199
|
+
if sample_blob["owner_project"]["uuid"] != self.uuid:
|
|
200
|
+
sample = sample_from_uuid(self.knex, sample_blob["uuid"]) # fetch from elsewhere
|
|
206
201
|
else:
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
202
|
+
sample = self.sample(sample_blob["name"])
|
|
203
|
+
sample_blob["library"] = sample_blob["owner_project"]["uuid"]
|
|
204
|
+
sample.load_blob(sample_blob)
|
|
205
|
+
# sample.uuid = sample_blob["uuid"]
|
|
206
|
+
# sample.metadata = sample_blob["metadata"]
|
|
207
|
+
# if fetch:
|
|
208
|
+
# sample.get()
|
|
209
|
+
sample._modified = False
|
|
210
|
+
sample._already_fetched = True
|
|
211
|
+
if cache:
|
|
212
|
+
self._get_sample_cache.append(sample)
|
|
213
|
+
yield sample
|
|
211
214
|
|
|
212
215
|
def get_sample_uuids(self, cache=True, error_handler=None):
|
|
213
216
|
"""Yield samples uuids fetched from the server."""
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: geoseeq
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.10
|
|
4
4
|
Summary: GeoSeeq command line tools and python API
|
|
5
5
|
Project-URL: Homepage, https://github.com/biotia/geoseeq_api_client
|
|
6
6
|
Project-URL: Issues, https://github.com/biotia/geoseeq_api_client/issues
|
|
@@ -7,7 +7,7 @@ geoseeq/file_system_cache.py,sha256=HzVZWtwLD2fjWWSo_UfWmGeBltm9He4lP_OqzKwNGWg,
|
|
|
7
7
|
geoseeq/knex.py,sha256=zcjafsmUn9SC3LlRnvvaXpr-pHYZ0IXk7LpzuUoE3MI,8312
|
|
8
8
|
geoseeq/organization.py,sha256=bJkYL8_D-k6IYAaii2ZbxjwYnXy6lvu6iLXscxKlA3w,2542
|
|
9
9
|
geoseeq/pipeline.py,sha256=89mhWaecsKnm6tyRkdkaVp4dmZh62_v42Ze0oXf8OTY,9873
|
|
10
|
-
geoseeq/project.py,sha256=
|
|
10
|
+
geoseeq/project.py,sha256=wtsakR0jZ07rTNtkkzsEug6aWB97eqLjqQ5EZ1XpHo0,17410
|
|
11
11
|
geoseeq/remote_object.py,sha256=GYN6PKU7Zz3htIdpFjfZiFejzGqqJHbJyKlefM1Eixk,7151
|
|
12
12
|
geoseeq/sample.py,sha256=oVUNnfqsRCCDUZdyI6fGylaMgLHd_7FLLJVGuOd5Jb8,10946
|
|
13
13
|
geoseeq/search.py,sha256=gawad6Cx5FxJBPlYkXWb-UKAO-UC0_yhvyU9Ca1kaNI,3388
|
|
@@ -21,11 +21,11 @@ geoseeq/cli/__init__.py,sha256=4WnK87K5seRK3SGJAxNWnQTqyg5uBhdhrOrzB1D4b3M,24
|
|
|
21
21
|
geoseeq/cli/constants.py,sha256=NtRSNBuna42605LE0sVywTPfmzYQnG-3yrT_M7Ml5B0,213
|
|
22
22
|
geoseeq/cli/copy.py,sha256=02U9kdrAIbbM8MlRMLL6p-LMYFSuRObE3h5jyvcL__M,2275
|
|
23
23
|
geoseeq/cli/detail.py,sha256=q8Suu-j2k18knfSVFG-SWWGNsKM-n8y9RMA3LcIIi9Y,4132
|
|
24
|
-
geoseeq/cli/download.py,sha256=
|
|
24
|
+
geoseeq/cli/download.py,sha256=j5y0VsqK5-FSHpkM4kYGJB1OERIB6dsVJuuUJjqub7E,25609
|
|
25
25
|
geoseeq/cli/fastq_utils.py,sha256=-bmeQLaiMBm57zWOF0R5OlWTU0_3sh1JBC1RYw2BOFM,3083
|
|
26
26
|
geoseeq/cli/find_grn.py,sha256=oMDxkzGQBQb2_cCuvmwoeHOsFHqyO9RLeJzrB6bAe5M,439
|
|
27
27
|
geoseeq/cli/get_eula.py,sha256=79mbUwyiF7O1r0g6UTxG9kJGQEqKuH805E6eLkPC6Y4,997
|
|
28
|
-
geoseeq/cli/main.py,sha256=
|
|
28
|
+
geoseeq/cli/main.py,sha256=a47KNif6e1y7EqFJ3hF00j41pjPW8MHfu0XxyfKtBKY,4134
|
|
29
29
|
geoseeq/cli/manage.py,sha256=wGXAcVaXqE5JQEU8Jh6OlHr02nB396bpS_SFcOZdrEo,5929
|
|
30
30
|
geoseeq/cli/progress_bar.py,sha256=p1Xl01nkYxSBZCB30ue2verIIi22W93m3ZAMAxipD0g,738
|
|
31
31
|
geoseeq/cli/project.py,sha256=V5SdXm2Hwo2lxrkpwRDedw-mAE4XnM2uwT-Gj1D90VQ,3030
|
|
@@ -92,8 +92,8 @@ geoseeq/vc/vc_cache.py,sha256=P4LXTbq2zOIv1OhP7Iw5MmypR2vXuy29Pq5K6gRvi-M,730
|
|
|
92
92
|
geoseeq/vc/vc_dir.py,sha256=A9CLTh2wWCRzZjiLyqXD1vhtsWZGD3OjaMT5KqlfAXI,457
|
|
93
93
|
geoseeq/vc/vc_sample.py,sha256=qZeioWydXvfu4rGMs20nICfNcp46y_XkND-bHdV6P5M,3850
|
|
94
94
|
geoseeq/vc/vc_stub.py,sha256=IQr8dI0zsWKVAeY_5ybDD6n49_3othcgfHS3P0O9tuY,3110
|
|
95
|
-
geoseeq-0.7.
|
|
96
|
-
geoseeq-0.7.
|
|
97
|
-
geoseeq-0.7.
|
|
98
|
-
geoseeq-0.7.
|
|
99
|
-
geoseeq-0.7.
|
|
95
|
+
geoseeq-0.7.10.dist-info/METADATA,sha256=euOGPcWdDVCzrLVj-YrLJiI7y8OLqT2HQMih6qjvK4k,5653
|
|
96
|
+
geoseeq-0.7.10.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
97
|
+
geoseeq-0.7.10.dist-info/entry_points.txt,sha256=yF-6KDM8zXib4Al0qn49TX-qM7PUkWUIcYtsgt36rjM,45
|
|
98
|
+
geoseeq-0.7.10.dist-info/licenses/LICENSE,sha256=IuhIl1XCxXLPLJT_coN1CNqQU4Khlq7x4IdW7ioOJD8,1067
|
|
99
|
+
geoseeq-0.7.10.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|