-
Notifications
You must be signed in to change notification settings - Fork 5
Actionable version #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
… introduce distinction between local and external
jdreo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. Only a couple of comments on style.
.pre-commit-config.yaml
Outdated
| name: Check for patient ids starting with an "D". | ||
| always_run: true | ||
| args: [--multiline] | ||
| entry: 'D[0-9]{3}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not a single [HMD][0-9]{3} ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed
| row: | ||
| map: | ||
| columns: | ||
| - patient_id |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be clearer with column: patient_id
| - tumorType | ||
| to_property: | ||
| - tumor_type | ||
| for_objects: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for for_object and to_property, when there is a single entry, it is not mandatory to use a list, you can just do to_property: tumorType.
weave.py
Outdated
| parser.add_argument("-i", "--clinical", metavar="CSV", nargs="+", | ||
| help="Extract from a clinical CSV file.") | ||
|
|
||
| parser.add_argument("-sml", "--short_mutations_local", metavar="CSV",nargs="+", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Convention is rather to use single-letter for short flags, and dash for long ones (instead of underscores).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed the underscores for the long flags. Concerning the short ones as single letter, since they won't be related to the long ones, I suggest not to remove them otherwise it will be confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep the acronyms for the short flags.
Co-authored-by: Marko Baric <marko.baric@pasteur.fr>
|
@jdreo
|
First actionable version: