merlin
merlin copied to clipboard
Addition of new shortcuts in specification file
Adding three new shortcuts to the specification definition:
$(MERLIN_SAMPLE_VECTOR) is substituted for "$(SAMPLE_COLUMN_1) $(SAMPLE_COLUMN_2) ..."
$(MERLIN_SAMPLE_NAMES) is substituted for "SAMPLE_COLUMN_1 SAMPLE_COLUMN_2 ..."
$(MERLIN_SPEC) is substituted for the path to the *.expanded.yaml file in the merlin_info directory
Changelog:
- In the
special_varsmethod of theMerlinStudyclass, add reference and definitions of the new shortcuts - Added new method
get_sample_labelstoMerlinStudyclass. This generalizes the existingsample_labelsproperty to allow the labels to be read from a user-specifiedMerlinSpecinstance. This is needed to avoid access to theexpanded_specproperty beforespecial_varsare defined, which causes anAttributeError - Update to existing
sample_labelsproperty to be consistent with newget_sample_labelsmethod
Tests Performed:
- Successful generation and run of "hello world" example script
- Successful generate and run of existing distributed workflow modified to use new shortcuts
-
[ ] I'd like to change the spec shortcut name (and add a few others). What about these names?
-
$(MERLIN_SPEC_RAW) --> *.orig.yaml
-
$(MERLIN_SPEC_RUN) --> *.partial.yaml
-
$(MERLIN_SPEC_EXPANDED) --> *.expanded.yaml
-
[ ] We should also add these to the documentation
-
[ ] Lint check is failing
-
[ ] Update the CHANGELOG
Resolved by merge request #375