geoseeq 0.7.6__py3-none-any.whl → 0.7.8__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 CHANGED
@@ -458,11 +458,15 @@ def _make_read_configs(download_results, config_dir="."):
458
458
  else:
459
459
  config_blobs[sample.name]["reads_2"].append(local_path)
460
460
 
461
+ # make config dir
462
+ makedirs(config_dir, exist_ok=True)
463
+
461
464
  for sample_name, config_blob in config_blobs.items():
462
465
  config_path = join(config_dir, f"{sample_name}.config.json")
463
466
  with open(config_path, "w") as f:
464
467
  json.dump(config_blob, f, indent=4)
465
468
 
469
+
466
470
  def _open_maybe_gzip(local_path):
467
471
  """Open a file that may be gzipped. Do not rely on file extension."""
468
472
  with open(local_path, "rb") as f:
@@ -474,7 +478,7 @@ def _open_maybe_gzip(local_path):
474
478
 
475
479
 
476
480
  def _trim_fastq_to_complete_reads(key, local_path):
477
- """Trim a fastq file to the nearest complete read boundary under head_bytes.
481
+ """Trim a fastq file to the nearest complete read boundary.
478
482
 
479
483
  Write the output as a gzipped file regardless of input compression.
480
484
  """
@@ -484,14 +488,15 @@ def _trim_fastq_to_complete_reads(key, local_path):
484
488
  while True:
485
489
  read_lines = []
486
490
  for _ in range(4):
487
- line = infile.readline()
491
+ try:
492
+ line = infile.readline()
493
+ except Exception: # ignore errors reading line, assume end of file
494
+ break
488
495
  if not line:
489
496
  break
490
497
  read_lines.append(line)
491
498
  if len(read_lines) < 4:
492
499
  break # end of file
493
- if infile.tell() > key[4]: # key[4] is head_bytes
494
- break # reached head limit
495
500
  for line in read_lines:
496
501
  outfile.write(line)
497
502
  lines_written += 4
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.6") # remember to update pyproject.toml
58
+ click.echo("0.7.8") # remember to update pyproject.toml
59
59
 
60
60
 
61
61
  @main.group("advanced")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geoseeq
3
- Version: 0.7.6
3
+ Version: 0.7.8
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
@@ -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=JHKd4VKAgJmvd3fVpSNlxJJT2goLB7eYkWY5UkfXESI,25347
24
+ geoseeq/cli/download.py,sha256=RZolqwaIVRa7fkaN9AZxswJ7BSaAg6Itk0SKs_dCjVs,25422
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=mDfD0R7d-FJJyKFMnsMIZDGprVoslE6Ts5QbJTTIBFY,4133
28
+ geoseeq/cli/main.py,sha256=s6iWmXFp7a3C_If5NxTo_mBuRhPqp3VWeN5iXf60fzk,4133
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.6.dist-info/METADATA,sha256=yTvBpyBSN4eelbfdHrL3jxWYG38vN7uOL7fSUlFp5ok,5652
96
- geoseeq-0.7.6.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
97
- geoseeq-0.7.6.dist-info/entry_points.txt,sha256=yF-6KDM8zXib4Al0qn49TX-qM7PUkWUIcYtsgt36rjM,45
98
- geoseeq-0.7.6.dist-info/licenses/LICENSE,sha256=IuhIl1XCxXLPLJT_coN1CNqQU4Khlq7x4IdW7ioOJD8,1067
99
- geoseeq-0.7.6.dist-info/RECORD,,
95
+ geoseeq-0.7.8.dist-info/METADATA,sha256=Z-HVBUxxGG8YGY3JSw5PHjkujPgsso9b5vUzfRbrG28,5652
96
+ geoseeq-0.7.8.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
97
+ geoseeq-0.7.8.dist-info/entry_points.txt,sha256=yF-6KDM8zXib4Al0qn49TX-qM7PUkWUIcYtsgt36rjM,45
98
+ geoseeq-0.7.8.dist-info/licenses/LICENSE,sha256=IuhIl1XCxXLPLJT_coN1CNqQU4Khlq7x4IdW7ioOJD8,1067
99
+ geoseeq-0.7.8.dist-info/RECORD,,