geoseeq 0.7.10__py3-none-any.whl → 0.7.11__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 +9 -6
- geoseeq/cli/main.py +1 -1
- geoseeq/project.py +0 -4
- {geoseeq-0.7.10.dist-info → geoseeq-0.7.11.dist-info}/METADATA +1 -1
- {geoseeq-0.7.10.dist-info → geoseeq-0.7.11.dist-info}/RECORD +8 -8
- {geoseeq-0.7.10.dist-info → geoseeq-0.7.11.dist-info}/WHEEL +0 -0
- {geoseeq-0.7.10.dist-info → geoseeq-0.7.11.dist-info}/entry_points.txt +0 -0
- {geoseeq-0.7.10.dist-info → geoseeq-0.7.11.dist-info}/licenses/LICENSE +0 -0
geoseeq/cli/download.py
CHANGED
|
@@ -428,7 +428,7 @@ def _get_sample_result_files_with_names(sample, module_name=None, which_fastqs_m
|
|
|
428
428
|
return result_files_with_names
|
|
429
429
|
|
|
430
430
|
|
|
431
|
-
def _make_read_configs(download_results, config_dir="."):
|
|
431
|
+
def _make_read_configs(download_results, config_dir=".", name_mode="name"):
|
|
432
432
|
"""Make JSON config files that look like this.
|
|
433
433
|
|
|
434
434
|
{
|
|
@@ -441,12 +441,14 @@ def _make_read_configs(download_results, config_dir="."):
|
|
|
441
441
|
"geoseeq_uuid": "05bf22e9-9d25-42db-af25-31bc538a7006"
|
|
442
442
|
}
|
|
443
443
|
"""
|
|
444
|
+
|
|
444
445
|
config_blobs = {} # sample ids -> config_blobs
|
|
445
446
|
download_results = sorted(download_results, key=lambda x: x[1][3]) # sort by lane number
|
|
446
447
|
for local_path, (sample, read_type, read_num, lane_num), _ in download_results:
|
|
447
448
|
if sample.name not in config_blobs:
|
|
448
|
-
|
|
449
|
-
|
|
449
|
+
sample_name = sample.name if name_mode == "name" else sample.uuid
|
|
450
|
+
config_blobs[sample_name] = {
|
|
451
|
+
"sample_name": sample_name,
|
|
450
452
|
"reads_1": [],
|
|
451
453
|
"reads_2": [],
|
|
452
454
|
"fastq_checksum": "",
|
|
@@ -455,9 +457,9 @@ def _make_read_configs(download_results, config_dir="."):
|
|
|
455
457
|
"geoseeq_uuid": sample.uuid,
|
|
456
458
|
}
|
|
457
459
|
if read_num == 1:
|
|
458
|
-
config_blobs[
|
|
460
|
+
config_blobs[sample_name]["reads_1"].append(local_path) # sorted by lane number
|
|
459
461
|
else:
|
|
460
|
-
config_blobs[
|
|
462
|
+
config_blobs[sample_name]["reads_2"].append(local_path)
|
|
461
463
|
|
|
462
464
|
# make config dir
|
|
463
465
|
makedirs(config_dir, exist_ok=True)
|
|
@@ -635,4 +637,5 @@ def cli_download_fastqs(state,
|
|
|
635
637
|
logger.info(f'Downloading {len(download_manager)} files to {target_dir}')
|
|
636
638
|
download_results = download_manager.download_files()
|
|
637
639
|
if config_dir:
|
|
638
|
-
|
|
640
|
+
name_mode = "name" if file_name_mode != "sample-uuid" else "uuid"
|
|
641
|
+
_make_read_configs(download_results, config_dir, name_mode=name_mode)
|
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.11") # remember to update pyproject.toml
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
@main.group("advanced")
|
geoseeq/project.py
CHANGED
|
@@ -202,10 +202,6 @@ class Project(RemoteObject):
|
|
|
202
202
|
sample = self.sample(sample_blob["name"])
|
|
203
203
|
sample_blob["library"] = sample_blob["owner_project"]["uuid"]
|
|
204
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
205
|
sample._modified = False
|
|
210
206
|
sample._already_fetched = True
|
|
211
207
|
if cache:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: geoseeq
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.11
|
|
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=oNC-x0fsfYL0F6v-N6QTaDht7T4NKlFJ4uPG9jRZSF4,17235
|
|
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=4ZqT63Tsh4QNTbWdYXLS6R-8fJVHagVFWCnrzNFdh1I,25808
|
|
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=DJKc5NCjNiluXdEKt5biqqiGleUVrh75Trd30Sh8O18,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.11.dist-info/METADATA,sha256=jdyXuZXsHF2KyE5zEHgZLMFCV6PIEBKFDQ8P1aTdf6c,5653
|
|
96
|
+
geoseeq-0.7.11.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
97
|
+
geoseeq-0.7.11.dist-info/entry_points.txt,sha256=yF-6KDM8zXib4Al0qn49TX-qM7PUkWUIcYtsgt36rjM,45
|
|
98
|
+
geoseeq-0.7.11.dist-info/licenses/LICENSE,sha256=IuhIl1XCxXLPLJT_coN1CNqQU4Khlq7x4IdW7ioOJD8,1067
|
|
99
|
+
geoseeq-0.7.11.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|