@@ -43,9 +43,6 @@ nf-proteindesign/
4343├── workflows/
4444│ └── protein_design.nf # Unified workflow handling all modes
4545├── modules/local/
46- │ ├── format_binding_sites.nf
47- │ ├── generate_design_variants.nf
48- │ ├── create_design_samplesheet.nf
4946│ ├── boltzgen_run.nf
5047│ ├── convert_cif_to_pdb.nf
5148│ ├── collect_design_files.nf
@@ -60,11 +57,10 @@ nf-proteindesign/
6057│ └── create_design_yaml.py # Generate design YAML files
6158└── assets/
6259 ├── schema_input_design.json # Design mode samplesheet schema
63- ├── schema_input_target.json # Target mode samplesheet schema
6460 └── test_data/ # Test datasets
65- ├── designs/ # Pre-made design YAMLs
66- ├── structures/ # Test structures
67- └── samplesheets/ # Test samplesheets
61+ ├── egfr_*_design.yaml # Pre-made design YAMLs
62+ ├── 2VSM.cif # Test structure
63+ └── samplesheet_design_*.csv # Test samplesheets
6864```
6965
7066## :material-language-python: Helper Scripts
@@ -84,11 +80,7 @@ from pathlib import Path
8480def validate_samplesheet (file_path ):
8581 """ Validate samplesheet CSV format."""
8682
87- required_columns = [' sample' ]
88- mode_columns = {
89- ' design' : [' design_yaml' ],
90- ' target' : [' target_structure' ],
91- }
83+ required_columns = [' sample_id' , ' design_yaml' ]
9284
9385 with open (file_path) as f:
9486 reader = csv.DictReader(f)
@@ -99,9 +91,7 @@ def validate_samplesheet(file_path):
9991 if col not in headers:
10092 sys.exit(f " Missing required column: { col} " )
10193
102- # Detect mode
103- mode = detect_mode(headers)
104- print (f " Detected mode: { mode} " )
94+ print (f " Valid design mode samplesheet " )
10595
10696 return True
10797
@@ -231,11 +221,11 @@ params {
231221}
232222
233223def validateParameters() {
234- if (params.n_samples < 1) {
235- error "n_samples must be >= 1"
224+ if (params.num_designs < 1) {
225+ error "num_designs must be >= 1"
236226 }
237- if (params.max_length < params.min_length ) {
238- error "max_length must be >= min_length "
227+ if (params.budget < 1 ) {
228+ error "budget must be >= 1 "
239229 }
240230}
241231
0 commit comments