Skip to content
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

Issue #29 #30

Merged
merged 16 commits into from
Aug 3, 2017
Merged

Issue #29 #30

merged 16 commits into from
Aug 3, 2017

Conversation

ntraut
Copy link
Contributor

@ntraut ntraut commented May 16, 2017

No description provided.

run.py Outdated
@@ -430,7 +454,7 @@ def run(command, env={}, ignore_errors=False):
if os.path.isfile(table_file):
warn("Replace old file %s" % table_file)
os.remove(table_file)
cmd = "python3 `which aparcstats2table` --hemi {h} --subjects {subjects} --parc {p} --meas {m} " \
cmd = "python2 `which aparcstats2table` --hemi {h} --subjects {subjects} --parc {p} --meas {m} " \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this switch necessary?

@ntraut
Copy link
Contributor Author

ntraut commented May 16, 2017 via email

@chrisgorgo
Copy link
Contributor

chrisgorgo commented May 16, 2017 via email

@ntraut
Copy link
Contributor Author

ntraut commented May 16, 2017

I see there is a problem with the path of the file version.
Is there a reason to put it in a distinct folder than run.py? I see that in the example app, both are in the root folder...

@chrisgorgo
Copy link
Contributor

There is no reason and it could be moved, but the Dockerfile and circle.yml would have to be adjusted. This also seems like a material for a separate PR ;)

@ntraut
Copy link
Contributor Author

ntraut commented May 16, 2017

But I don't see any line which need to be modified in circle.yml... And sorry for that useless question but which one to move: file version in folder /code or file run.py in folder /?

@chrisgorgo
Copy link
Contributor

Actually I don't think you need to change anything in circle. Moving version or run.py should work equally well - don't have preference.

run.py Outdated
parser.add_argument('--n_cpus', help='Number of CPUs/cores available to use.',
default=1, type=int)
parser.add_argument('--stages', help='Autorecon stages to run.',
choices=["autorecon1", "autorecon2", "autorecon2-cp", "autorecon2-wm", "autorecon-pial", "autorecon3", "autorecon-all", "all"],
default=["autorecon-all"],
nargs="+")
parser.add_argument('--steps', help='Longitudinal steps to run.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we use human readable labels for the steps instead of numbers? It would be easier to understand what this option is for. Maybe: 'session', 'subject_template', 'long' ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, please. Or maybe cross instead of session to stick with freesurfer lingo?

@chrisgorgo
Copy link
Contributor

This looks good to me, but there are a lot of changes. @fliem could you also have a look?

Copy link
Contributor

@fliem fliem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Looks good.

Could you please add a test in circleci (e.g.) running the cross-sectional autorecon1 step for one session of ds114_test2
(available in ~/data/ds114_test2) - this also would close #23

In general, the code gets increasingly hard to read. We should think about how to make it more maintainable in the future.

run.py Outdated
parser.add_argument('--n_cpus', help='Number of CPUs/cores available to use.',
default=1, type=int)
parser.add_argument('--stages', help='Autorecon stages to run.',
choices=["autorecon1", "autorecon2", "autorecon2-cp", "autorecon2-wm", "autorecon-pial", "autorecon3", "autorecon-all", "all"],
default=["autorecon-all"],
nargs="+")
parser.add_argument('--steps', help='Longitudinal steps to run.',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, please. Or maybe cross instead of session to stick with freesurfer lingo?

run.py Outdated
input_args,
stages,
args.n_cpus)
# resume_cmd = "recon-all -base %s -sd %s %s -parallel -openmp %d"%(fsid,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does getting rid of resume_cmd change the behavior?

@fliem
Copy link
Contributor

fliem commented Aug 3, 2017

ahhh. I think this is ready to merge, is it?
If yes we can also close #23

@chrisgorgo chrisgorgo merged commit b3220a0 into bids-apps:master Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants