-
Notifications
You must be signed in to change notification settings - Fork 298
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
DOC: Improve documentation about TemplateFlow and Containers #1802
Conversation
The most delicate section of the new documentation is: |
Tagging @dmd @JoffJones @utooley @oricon @a3sha2 @marcelzwiers @jooh, who have experienced issues, and proposed solutions to problems arising from Singularity + TemplateFlow. They are perfect to have a quick look and make sure the documentation now contains what they had to figure out the hard way. |
For convenience:
|
Two thoughts on this, would it be useful to lay out the error message you might get (i.e. a) your Singularity config doesn't allow you to bind non-existent bind points, i.e. has not enabled overlay? |
You're right, this is not yet covered in the documentation. Your cluster is one example of these right? Do you mind if I ask you to try a few things over the next week? |
Hi All, Happy to share the 'subprocess' based sbatch submission - although this isn't yet running perfectly (#1798). Lastly just some tiny typos under 'Accessing the host’s filesystem' And under 'Internet access problems' |
@oesteban Not at all! I will say that I have no sense of how common these misconfigurations or weird default settings are across different cluster setups, so I don't know how useful (or not) it is to document them, but happy to try things out! As a side note, everything I know, I knew from running 1-4-1; haven't tested 1-5-0 myself to see if anything has resolved, but a few days ago someone at Penn ran 1-5-0 and we had similar problems with TemplateFlow. |
Could you elaborate more? I would like to see whether this could be of help to others.
I have to admit I've been pretty resistant to this flag but finally surrendered to its usefulness. What is preventing you from using it?
It seems to me that the FreeSurfer error is unrelated to mounting /tmp...
I wonder how you deal with the environment given that you are not using
That would be really sweet if you can. |
I'll also ping @yarikoptic here - I'm sure he will find missing points in the proposed documentation, esp. about Singularity. |
I'll try to review the content in detail this afternoon, but to give you the feedback I've already got, I think this overshoots the prominence of these things by promoting them to the top level of the table of contents. I would suggest the following TOC:
The top page doesn't need to be very elaborate, but we can add the context of what we generally recommend for different use cases, e.g., |
…ed out by @utooley, fixed typos (@JoffJones)
49f1b28
to
a2a30fe
Compare
Okay, I've tried to cover two of your points, @effigies, one moving the fmriprep-docker installation to the installation page (cross-referencing execution) and the second trying to make it more clear the command line structure and how it is modified for the case of containers. There's perhaps some need to mention that Regarding the restructure, I agree with the feeling that giving new sections top-level relevance is an overshoot. But looking at how many of the questions in NeuroStars go around Singularity issues, I think it makes sense to cast them to top-level sections. There's plenty of room on the left menu, and we will make it a lot more accessible. |
I think we harm overall accessibility by adding to the top level, as now there are more choices to consider as you try to find what you need (and this isn't always going to be the top thing that people are looking for). I think having a clean hierarchy will be much easier to follow, even if it means one extra click. In fact, I would probably reduce some of what is already there, such as moving SDC under processing details, and usage notes under installing and running. And I feel like the standard/non-standard spaces discussion is also a bit high up, though I'm not sure what I'd put it under. Maybe an "advanced configuration" section, or possibly we could rename "processing pipeline details" to indicate a broader consideration of processing options. But that's out of scope for this PR, certainly. |
Would you agree with deferring the conversation about structure (including the new sections) to the docusprint? |
Sure. |
My problem with any suggestion of exposing system
Or may be I am misunderstanding the situation and bind mounting $HOME is solely for truly just caching (so exact version(s) of templates are guaranteed to be the correct ones the other way)? Then may be it would be best to bind mount |
You got it right. There is a way of using TemplateFlow with DataLad (i.e., version-controlled) but we ended up disabling it by default since it created a pile of problems. I'll think about this - I like the idea of the If you come up with the markdown explaining your |
I'm a little fuzzy on what exactly is being proposed. I think my brain is kind of shot... So we should move things out of Is there a proposal on how we're actually supposed to capture in a datalad-consumable way what specifically is being injected into the container? Or is this mostly just making it easier for people who do have a well-organized setup to capture these things with datalad? |
@effigies, @yarikoptic in reference to the @utooley - made some changes following your suggestions in 2ef6980 - can you check? @JoffJones can you comment on some questions I left in #1802 (comment)? - thanks! |
May I ask some quick eyeballing from @rwblair and @franklin-feingold I'd like to get this merged soon. Please let me know if there are any blocking points. |
Hi @oesteban, Sorry for the delay in responding. We have been using the -C flag as standard for any singularity images, @jooh would be able to elaborate but he is away at the moment. I think that we don't use --cleanenv because we are running things in a neuroimaging environment on the HPC, but I haven't tried it without. Apologies I can't elaborate any more! |
I'll merge - I think it is better to test this with real users and revise during the docusprint. |
Also sorry for the late reply @oesteban ! I looked over your initial changes after I commented and they made sense to me (although I didn't know about docker2singularity), happy to go over again and revise down the line. Sorry again for the delay! |
Hi @oesteban, Thank you very much for the updated slurm script, I have been doing some testing with it and the only trouble so far is with creating the freesurfer-6.0.1 directory for future re-use. I'm currently testing it without this, but would be grateful for your input. bash script: output: Update: One subject finished with this error: |
This PR addresses #1801. The intent is to provide clearer documentation about how to run fMRIPrep via Singularity containers. In particular, the interaction between TemplateFlow and Singularity should be better described.