Python

From wiki
Revision as of 15:02, 29 March 2016 by Rf (talk | contribs) (Created page with "The issue with python on Marvin is that the simple "python" executable is not the bioinformatic python version. It's a version just for the system only. Instead, you have to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The issue with python on Marvin is that the simple "python" executable is not the bioinformatic python version. It's a version just for the system only.

Instead, you have to use "python2.7" and this version does indeed have many of the necessary bioinformatics modules such as biopython and PyVCF. It also is installed by default, so you do not need to "module load" it. If you try this and "import vcf" and "import Bio" you'll get no errors which means PyVCF and Biopython are installed.

Also, if you have a python script which uses just "python" or "#!/usr/bin/python" or #!/usr/bin/env python" they will not use bioinformatic version. There script should be changed to read either "python2.7" or "#!/usr/bin/env python2.7"