openpipelines-bio / openpipeline

https://openpipelines.bio
MIT License
25 stars 11 forks source link

Uniformise key parameters #56

Closed rcannood closed 1 year ago

rcannood commented 1 year ago

Examples of what we currently have:

Except for --modality and --layer, what notation should we use for allowing the user to choose the key for input/output data?

rcannood commented 1 year ago

Option 1 --<name>_name: Description of what the argument does

Option 2 --<data structure>_field: Describe where it is stored (similar to scanpy/harmony_integrate.py#L49

Option 3 --<data structure>_<name>_field: Why not both

Option 4 --<data structure>_<name>: Same but without the _field

Option 5 --<data structure>_<input/output/name>: Use input / output when it is clear what is being meant, use alternative names when further explanation is needed


Option 1:

Option 2:

Option 3:

Option 4:

Option 5:

Variants 1:

Variants 2:


Sugar syntax: Allow hashmaps as parameters.

rcannood commented 1 year ago

Decision: we'll use option 4 To do: reformat the components to be consistent with this decision :)

rcannood commented 1 year ago

This was tackled in release 0.5.0!