Diff for "ComputerLanguages" - MRC CBU Imaging Wiki
location: Diff for "ComputerLanguages"
Differences between revisions 2 and 3
Revision 2 as of 2006-07-06 11:14:32
Size: 1237
Editor: devel03
Comment:
Revision 3 as of 2013-03-07 21:23:02
Size: 1241
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 7: Line 7:
For this, I would suggest a high-level scripting language, such as [http://www.python.org Python], [http://www.perl.org Perl], Unix bash shell, or even Matlab itself. As a a long-time user of all of these languages, I would strongly suggest Python as the best choice; it is the easiest to read and write, has a very full library for system interaction, is free, and works on nearly any computer platform. Although it is often tempting to use Matlab for these tasks, both text manipulation and interacting with the operating system can be extremely clunky and inelegant. This makes the code more difficult to write, edit, and read. For this, I would suggest a high-level scripting language, such as [[http://www.python.org|Python]], [[http://www.perl.org|Perl]], Unix bash shell, or even Matlab itself. As a a long-time user of all of these languages, I would strongly suggest Python as the best choice; it is the easiest to read and write, has a very full library for system interaction, is free, and works on nearly any computer platform. Although it is often tempting to use Matlab for these tasks, both text manipulation and interacting with the operating system can be extremely clunky and inelegant. This makes the code more difficult to write, edit, and read.

Programming languages in imaging

Choosing a programming language to work with is a personal choice of course, based on the other software you are using, your experience with different languages, and the way you like to work.

My own (MatthewBrett) experience is that most imagers will need a basic understanding of Matlab - LearningMatlab - in order to run analyses in SPM. Many imagers will also need some language to write scripts to do analyses like automatic parsing of text files to get behavioural data, and for doing system tasks like moving files around, renaming them and so on.

For this, I would suggest a high-level scripting language, such as Python, Perl, Unix bash shell, or even Matlab itself. As a a long-time user of all of these languages, I would strongly suggest Python as the best choice; it is the easiest to read and write, has a very full library for system interaction, is free, and works on nearly any computer platform. Although it is often tempting to use Matlab for these tasks, both text manipulation and interacting with the operating system can be extremely clunky and inelegant. This makes the code more difficult to write, edit, and read.

CbuImaging: ComputerLanguages (last edited 2013-03-07 21:23:02 by localhost)