You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removes deprecated sequence and metadata inputs from the configuration
file and removes Snakemake logic required to support these files. Also,
removes references to this deprecated input format from the example
profiles and the "multiple inputs" tutorial.
Since we no longer support this old input format, we also no longer need
to support empty origin wildcards. We drop support for empty origin
wildcard and remove all references to trimming of origin wildcards
that start with an underscore and update all rules to reference the origin
wildcard with the underscore in the filename.
We also now print helpful errors when inputs aren't defined properly
through checks for configurations with old-style input definitions or
without any inputs defined. These error messages provide recommendations
about how to update the workflow configuration to fix the issues.
# Check for old-style input file references and alert users to the new format.
77
+
if"sequences"inconfigor"metadata"inconfig:
78
+
logger.error("ERROR: Your configuration file includes references to a deprecated specification of input files (e.g., `config['sequences']` or `config['metadata']`).")
79
+
logger.error("Update your configuration file (e.g., 'builds.yaml') to define your inputs as follows and try running the workflow again:")
logger.error("ERROR: Your workflow does not define any input files to start with.")
89
+
logger.error("Update your configuration file (e.g., 'builds.yaml') to define at least one input dataset as follows and try running the workflow again:")
Typically, inside the `builds.yaml` one would specify input files such as
54
+
You can define a single input dataset in `builds.yaml` as follows.
55
55
56
56
```yaml
57
-
# traditional syntax for specifying starting files
58
-
sequences: "data/sequences.fasta"
59
-
metadata: "data/metadata.tsv"
57
+
inputs:
58
+
- name: my-data
59
+
metadata: "data/metadata.tsv"
60
+
sequences: "data/sequences.fasta"
60
61
```
61
62
62
-
For multiple inputs, we shall use the new `inputs` section of the config to specify that we have two different inputs, and we will give them the names "aus" and "worldwide":
63
+
For multiple inputs, you can add another entry to the `inputs` config list.
64
+
Here, we will give them the names "aus" and "worldwide":
0 commit comments