batch mode for ctffind4
Forums
Dear Alexis/Niko
I haven't used either ctffind3 or ctffind4 before. I'd like to try the latter on a series of micrographs in a single step. Could you please tell me how to do so, or provide a script (I don't have much scripting experience)?
Thank you
Taha
here doc
Hi Taha,
For any command-line-based program in unix/linux, you can use "here documents", which are described e.g. at this page.
The idea is that you write in the script every line that you would type at the terminal if you were running the program interactively.
So for example, if ctffind only asked 3 questions - 1 - input file, 2 - minimum defocus, 3 - maximum defocus, then you could write something like: