Commit 757b824
committed
refactor: move minimizerReferences from files to buildFiles
- Depends on: #404
Current Nextclade versions reject array values in the `files` section of `pathogen.json` with `invalid type: sequence, expected a string`. Datasets declaring `minimizerReferences` as an array inside `files` fail to load.
Move `minimizerReferences` from `.files` to a new top-level `.buildFiles` key:
```json
{
"files": {
"reference": "reference.fasta",
"genomeAnnotation": "genome_annotation.gff3",
"changelog": "CHANGELOG.md"
},
"buildFiles": {
"minimizerReferences": [
"minimizer_refs/additional_refs_B.fasta",
"minimizer_refs/additional_refs_B1a.fasta"
]
}
}
```
Unknown top-level keys are silently ignored by Nextclade, so the dataset remains loadable by both old and new versions. The companion script change reading from `buildFiles` is in #404 (9fc7f3e, 9fc7f3e).
### Work items
- [x] Move `minimizerReferences` from `files` to `buildFiles` in `pathogen.json`1 parent 6e19a7c commit 757b824
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
| |||
0 commit comments