![]() To export Rmarkdown documents as PDFs, which I often do to share analyses with colleagues, RStudio requires MacTeX. You can download the installer from RStudio’s website. I recommend it to anyone who writes any R code. I normally avoid integrated development environments because they tend to be overkill for my biocomputing needs, but RStudio is relatively lightweight. You will probably also want to install a few of Hadley Wickham’s packages: R # Launch R > install.packages ( "tidyverse" ) 6. Run the following commands to install R: brew tap brewsci/science Installing Jupyter via pip will install IPython Notebook: pip install jupyter 5. IPython Notebook, another popular biocomputing tool, is now a part of the Jupyter Project. We’ll install that next, again using pip: pip install biopython One of the most commonly used biocomputing Python libraries is Biopython. Pip install pandas # Dataframes in Python! Pip install scipy # Other scientific computing tools Use pip to install a few Python libraries: pip install numpy # Vectors and matrices in Python Homebrew’s version of Python comes with pip, a package manager specifically designed for Python libraries. Both Python 2 and Python 3 can be installed concurrently. If you would like to install Python 3 instead, replace python in the above command with python3. Let’s install a separate, newer version of Python 2.7.x: brew install python Install PythonĪgain, like git, the default Python installation in OS X also tends to be outdated. Rather than overwrite the system git installation, we’ll install a new version of git via Homebrew: brew install git 4. Xcode tends to come with older versions of git and Apple is slow to keep git up-to-date. Git is a version control system commonly used with Github. Install git for version controlĪfter Homebrew has been installed, installing other software is relatively simple. To install Homebrew, run this command and follow the prompts: ruby -e " $(curl -fsSL ) " 3. The rest of this guide will assume that you have Homebrew installed, though you could just as easily use MacPorts to install git, Python, and R. I prefer Homebrew to MacPorts because of a variety of issues that I’ve had with MacPorts. Install Homebrew for managing software packages Install Xcode Command Line Tools with the following command in the Terminal: xcode-select -installįollow the prompts and accept the license agreement. The Xcode Command Line Tools are provided by Apple and contain the necessary tools for compiling code and installing other software. ![]() Many of the following steps for El Capitan were derived from her post. If you are interested in configuring Yosemite for biocomputing instead, see this post by Stephanie Spielman. This guide describes the steps I took to configure El Capitan for biocomputing. ![]() To cleanly rid my laptop of MacPorts, I started with a fresh copy of El Capitan. I did this for several reasons, but mostly because I was thoroughly frustrated with MacPorts and wanted to switch to Homebrew (more on that later). I recently wiped my Macbook Pro and reinstalled Mac OS X El Capitan. So feel free to use this guide to set up macOS Sierra for biocomputing. Update (3/26/17): After six months of using macOS Sierra, I can state confidently that all instructions discussed below hold true for both El Capitan and Sierra. Macports uses /opt/local, homebrew on m1 uses /opt/homebrew, so by cleaning these folders you can get rid of them easily if you are not satisfied.Update (3/28/18): This post has been updated to reflect changes in how scientific software is distributed in Homebrew. ![]() If everything was already recompiled, I would say both managers are great, so you can pretty much try both and decide for yourself. Also I prefer the way Python is distributed, compared to macports, where you have to delete the previous version and install the next version each time it has major update (because all formulas are named differently). Homebrew is adapting really quickly, it already has gcc10 for m1 (which is not officially supported, but people created custom build just to use until gcc11 is out) and many other native compiled tools which are not easy to build from source and are not on macports. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |