r/bioinformatics • • Jan 27 '16
Good programming languages for computational biology?
[deleted] — view deleted post
9
Upvotes
r/bioinformatics • • Jan 27 '16
[deleted] — view deleted post
21
u/wired-in Jan 27 '16 edited Jan 27 '16
R and Python. For Python, the machine learning library I often use is Scikit-Learn. For machine learning in R, there are a whole bunch - it depends on what you want to do.
EDIT: I meant to add a listing of R machine learning packages from CRAN, which you can find here.
6
u/[deleted] Jan 27 '16
Regardless of how much I hate R and love Python. I would recommend you learn these three with this order:
R
Bash (will make it easy to learn perl in the future)
Python
Other languages.
It also depends on what tools your lab(or future one) is using so might as well ask them. This last paragraph might not be relevant to you but might be to other readers).
3
u/baconschmacon Jan 27 '16
I'd recommend getting familiar with Python, R, most Unix shell utilities like sed, awk, grep, head, tail, sort, and cut, and the bash shell itself. Awk is powerful, in spite of its rather unique syntax. Perl might come handy occasionally. If you're involved with your local compbio lab or you're interested in working in another one, ask around and find out what most people use there. Usually the languages and tools you'll end up using depend on which lab you'll join.
3
u/guepier PhD | Industry Jan 27 '16 edited Jan 27 '16
“C/C++” is not a thing. Modern C and C++ are vastly different languages with merely superficial similarities.
If you refer to them as C/C++ then chances are that you didn’t learn either very well. I’m not blaming you — most teaching material (especially for C++) is terribly outdated or just plain bad. This is a shame because, properly applied, modern C++ is the best language to write bioinformatics tools in.
That said, C++ is badly suited for everyday use. Use either R or Python (but learn a bit of both) for your analysis and don’t be afraid of shell scripts and Makefiles to combine your analysis into a reproducible pipeline.
2
u/[deleted] Jan 27 '16
Good advice here, if somewhat pedantic. My recommendation would be slightly different. Maybe it makes sense to focus on a specific problem and learn what you need for that. It sounds like you already have an interest. You might consider finding a lab that does something close to what you are interested, and find a way to help them out. No lab like that in the neighborhood? Then find an open source project near to your interests and make a contribution. Fix a bug, or add a feature.
If you start by working on a problem that other people care about, you don't have to worry about the best answer to a highly generic question. What language to learn? The language that your lab uses, or the tool that you are helping out with. I think that if you frame it in terms of how you can help someone with a current problem in a way that addresses your own interests, you'll find a lot more doors opening up for you, and a lot of the mechanical questions go away.
4
u/rincevent Jan 27 '16
R and Python - definetely - Julia is trending atm
3
u/Darwinmate Jan 27 '16
Echoing what everyone is saying, but also wanted to add in that Perl might be useful and also a good knowledge of Bash/linux.
2
u/[deleted] Jan 27 '16
Thank you very much for all the response! Is C/C++ not a good choice for the computational biology and machine learning? My main strength is in those languages but I did not see a lot of libraries based on them.
Should I learn both R and Python?
1
u/redditrasberry Jan 28 '16
Based on your description I'd say Python:
0
u/drnknmstrr PhD | Industry Jan 31 '16
I'm going to go out on a limb here and say we need to all start learning javascript, specifically typescript. Yes R and Python have great libraries, but there are just too many biologists who are never going to use them. Wrapping R and Python with a Javascript front end allows for rich web applications and then you can actually share information between researchers. How many of your results from R and Python are just being opened in Excel?
0
u/[deleted] Jan 27 '16
[deleted] — view deleted comment