-
Notifications
You must be signed in to change notification settings - Fork 31
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
[WIP] rearranging BIDSMRI2NIDM command #99
base: master
Are you sure you want to change the base?
Conversation
djarecka
commented
Aug 13, 2018
- creating a new class BidsMriProject
- moving most of the script from BIDSMRI2NIDM.py to the new class;
- removing bidsignore arg and changing outpufie to outputdir
… and moving most of the script from BIDSMRI2NIDM.py to the new class; removing bidsignore arg and changing outpufie to outputdir
@dbkeator - please do not merge, this is work in progress, just wanted to push it before our today meeting |
@dbkeator - I did some more rearrangement, adding functions etc. I also added click for commands (it can be used now Happy to chat today/tomorrow to clarify. |
@djarecka I can chat tomorrow after 10am PST. Are you available tomorrow ? |
@djarecka Here's what should happen: If one runs the program and supplies a JSON variable->term mapping file then load it and try and mach the variables to terms. If if can't find a variable it needs in the JSON mapping file then it goes through the query Interlex, NIDM-Exp owl file, and github local term definition loop. At each iteration when one selects a new variable-> term mapping it adds it to the JSON mapping file and re-saves it (in case the program stops or one exits prematurely they won't have to go back and the the mappings they've already completed again). If one doesn't supply a JSON mapping file but provides the -ilxkey and -github parameters (remember these need to be supplied together) then the program will save the JSON mapping file as "participants.json" in the root BIDS directory specified by the -d parameter. Note, we'll want to change this a bit once I add code to handle phenotype directories in BIDS datasets. In that case we'll want to save the corresponding variable->term mappings in JSON files for each corresponding phenotype.tsv file.... |
@djarecka ...Also I think the command should be pynidm bidsmri2nidm (not pybids ....maybe that was a typo) |
Yes, that was a typo.
I'm on my way to the airport. Will read your comments later, but won't be
able to talk tomorrow. We can talk on Monday during or after the call.
…On Thu, Aug 16, 2018, 15:17 David Keator ***@***.***> wrote:
@djarecka <https://github.com/djarecka> ...Also I think the command
should be pynidm bidsmri2nidm (not pybids ....maybe that was a typo)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABlfGkKNHtx0LvFsqSwTJ2mNiThtS8d7ks5uRcU-gaJpZM4V6uiC>
.
|
just a thought - can we make the command be called |
@satra - sure
…On Thu, Aug 16, 2018, 18:35 Satrajit Ghosh ***@***.***> wrote:
just a thought - can we make the command be called nidmcli or just nidm?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#99 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABlfGocX7Iv1JGMd_l6mu0peFbWs7OE_ks5uRfOfgaJpZM4V6uiC>
.
|
@dbkeator - what should happen if the json mapping file is not provided and the |
@djarecka If the user doesn't provide a JSON mapping file and they add the -ilxkey -github -owl parameters. I think we want to make those jointly required so if one wants to do variable->term mapping then they would provide -ilxkey [api key] + -github [username token] and the -owl parameter is pointless and should just be the default if -ilxkey and -github are provided because what we're doing is then searching the Interlex and the NIDM OWL files for fuzzy matches for the variable names. The -github parameter is used when one doesn't find an appropriate term and thus defines their own in the github repo. Note, we'll be changing that so one can push new terms directly to Interlex but that's in the near future. So, to continue, if one provides the -ilxkey + -github stuff then the code will do variable -> term mappings and save a new JSON mapping file. Right now it's defaulting to "participants.json" (see PyNIDM/nidm/experiment/tools/BIDSMRI2NIDM.py Line 239 in bb7d70c
|
@dbkeator - you can try using:
|
@djarecka: I think you're missing some libraries in bids_base.py: from prov.model import QualifiedName Traceback (most recent call last): |
@djarecka Besides the issue above https://github.com/incf-nidash/PyNIDM/pull/99#issuecomment-416763275 everything else works. Once that's corrected we can merge.... |
@dbkeator - could you please send me the link again, it doesn't work for me |
@dbkeator - I'm still not sure how did you get the error you posted. did you run one of the command I suggested? |