Monthly Archives: March 2013

Using valgrind to debug R programs

If you want to debug your R program because of a segmentation fault or memory leak, you can use valgrind as follows in a shell: R -d "valgrind –leak-check=full –show-reachable=yes" -f your_script.RR -d "valgrind –leak-check=full –show-reachable=yes" -f your_script.R

Posted in R | Tagged , | Leave a comment

ipython error

If you get this kind of error when starting ipython: /Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/kernmagic/__init__.py in activate(ip, *args) 14 continue 15 magic_name = name[len(’magic_’):] —> 16 ip.shell.define_magic(magic_name, getattr(mymagics, name)) 17 18 def activate_aliases(ip, *args):   AttributeError: ‘TerminalInteractiveShell’ object has no attribute ‘shell’/Library/Frameworks/Python.framework/Versions/7.3/lib/python2.7/site-packages/kernmagic/__init__.py in activate(ip, … Continue reading

Posted in Python | Tagged | Leave a comment

Accessing Life Science Web Services from Python

In a previous post, I started to discuss about Web Services in Life Science and what a maze it is to navigate between them. Some Web Services provides Python code to access to their databases but not all of them. … Continue reading

Posted in biology, Life Science | Tagged , , , , | Leave a comment