boltz-vsynthes 1.0.0__py3-none-any.whl → 1.0.2__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.
- boltz/main.py +13 -9
- {boltz_vsynthes-1.0.0.dist-info → boltz_vsynthes-1.0.2.dist-info}/METADATA +1 -1
- {boltz_vsynthes-1.0.0.dist-info → boltz_vsynthes-1.0.2.dist-info}/RECORD +7 -7
- {boltz_vsynthes-1.0.0.dist-info → boltz_vsynthes-1.0.2.dist-info}/WHEEL +0 -0
- {boltz_vsynthes-1.0.0.dist-info → boltz_vsynthes-1.0.2.dist-info}/entry_points.txt +0 -0
- {boltz_vsynthes-1.0.0.dist-info → boltz_vsynthes-1.0.2.dist-info}/licenses/LICENSE +0 -0
- {boltz_vsynthes-1.0.0.dist-info → boltz_vsynthes-1.0.2.dist-info}/top_level.txt +0 -0
boltz/main.py
CHANGED
@@ -290,17 +290,17 @@ def check_inputs(data: Path) -> list[Path]:
|
|
290
290
|
# Check if data is a directory
|
291
291
|
if data.is_dir():
|
292
292
|
# Get all files recursively
|
293
|
-
|
293
|
+
valid_data = []
|
294
294
|
for ext in (".fa", ".fas", ".fasta", ".yml", ".yaml"):
|
295
|
-
|
295
|
+
valid_data.extend(data.glob(f"**/*{ext}"))
|
296
296
|
|
297
|
-
if not
|
297
|
+
if not valid_data:
|
298
298
|
msg = f"No .fasta or .yaml files found in {data}"
|
299
299
|
raise RuntimeError(msg)
|
300
300
|
|
301
301
|
# Filter out directories and invalid file types
|
302
|
-
|
303
|
-
for d in
|
302
|
+
filtered_data = []
|
303
|
+
for d in valid_data:
|
304
304
|
if d.is_dir():
|
305
305
|
msg = f"Found directory {d} instead of .fasta or .yaml."
|
306
306
|
click.echo(f"Warning: {msg}")
|
@@ -309,13 +309,13 @@ def check_inputs(data: Path) -> list[Path]:
|
|
309
309
|
msg = f"Warning: Skipping file with unsupported extension {d.suffix}"
|
310
310
|
click.echo(msg)
|
311
311
|
continue
|
312
|
-
|
312
|
+
filtered_data.append(d)
|
313
313
|
|
314
|
-
if not
|
314
|
+
if not filtered_data:
|
315
315
|
msg = "No valid input files found after filtering."
|
316
316
|
raise RuntimeError(msg)
|
317
317
|
|
318
|
-
data =
|
318
|
+
data = filtered_data
|
319
319
|
else:
|
320
320
|
# Single file case
|
321
321
|
if data.suffix not in (".fa", ".fas", ".fasta", ".yml", ".yaml"):
|
@@ -665,6 +665,10 @@ def process_inputs(
|
|
665
665
|
"""
|
666
666
|
all_records = []
|
667
667
|
|
668
|
+
# Create processed directory
|
669
|
+
processed_dir = out_dir / "processed"
|
670
|
+
processed_dir.mkdir(parents=True, exist_ok=True)
|
671
|
+
|
668
672
|
# Process each input file in its own directory
|
669
673
|
for input_file in data:
|
670
674
|
# Create a subdirectory for this input file
|
@@ -740,7 +744,7 @@ def process_inputs(
|
|
740
744
|
|
741
745
|
# Create combined manifest
|
742
746
|
manifest = Manifest(all_records)
|
743
|
-
manifest.dump(
|
747
|
+
manifest.dump(processed_dir / "manifest.json")
|
744
748
|
return manifest
|
745
749
|
|
746
750
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
boltz/__init__.py,sha256=F_-so3S40iZrSZ89Ge4TS6aZqwWyZXq_H4AXGDlbA_g,187
|
2
|
-
boltz/main.py,sha256
|
2
|
+
boltz/main.py,sha256=jesu0Y9aBVNPjulshsfyg78HTGNh2K9YjF76rWUWuFs,40833
|
3
3
|
boltz/data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
boltz/data/const.py,sha256=1M-88Z6HkfKY6MkNtqcj3b9P-oX9xEXluh3qM_u8dNU,26779
|
5
5
|
boltz/data/mol.py,sha256=maOpPHEGX1VVXCIFY6pQNGF7gUBZPAfgSvuPf2QO1yc,34268
|
@@ -104,9 +104,9 @@ boltz/model/optim/scheduler.py,sha256=nB4jz0CZ4pR4n08LQngExL_pNycIdYI8AXVoHPnZWQ
|
|
104
104
|
boltz/model/potentials/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
105
105
|
boltz/model/potentials/potentials.py,sha256=vev8Vjfs-ML1hyrdv_R8DynG4wSFahJ6nzPWp7CYQqw,17507
|
106
106
|
boltz/model/potentials/schedules.py,sha256=m7XJjfuF9uTX3bR9VisXv1rvzJjxiD8PobXRpcBBu1c,968
|
107
|
-
boltz_vsynthes-1.0.
|
108
|
-
boltz_vsynthes-1.0.
|
109
|
-
boltz_vsynthes-1.0.
|
110
|
-
boltz_vsynthes-1.0.
|
111
|
-
boltz_vsynthes-1.0.
|
112
|
-
boltz_vsynthes-1.0.
|
107
|
+
boltz_vsynthes-1.0.2.dist-info/licenses/LICENSE,sha256=8GZ_1eZsUeG6jdqgJJxtciWzADfgLEV4LY8sKUOsJhc,1102
|
108
|
+
boltz_vsynthes-1.0.2.dist-info/METADATA,sha256=jjCm6Og0LpIvWLHgHJLnrHNkaGMO4cqZYf73yLKk8rM,7171
|
109
|
+
boltz_vsynthes-1.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
110
|
+
boltz_vsynthes-1.0.2.dist-info/entry_points.txt,sha256=n5a5I35ntu9lmyr16oZgHPFY0b0YxjiixY7m7nbMTLc,41
|
111
|
+
boltz_vsynthes-1.0.2.dist-info/top_level.txt,sha256=MgU3Jfb-ctWm07YGMts68PMjSh9v26D0gfG3dFRmVFA,6
|
112
|
+
boltz_vsynthes-1.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|