PLINK is a popular and well-documented tool for the association and population-based linkage analyses for genome-wide association studies (GWAS). PLINK is typically used as a command line tool. In this article, we will show you how to install PLINK 1.90 on a Linux Virtual Machine in the Aridhia DRE Workspace.
Instructions for Installing PLINK on Ubuntu 18.04
- Download PLINK to your local machine.
From your web browser, go to the PLINK Releases page and download the latest stable Linux 64 bit release.
- Upload to Files. In the Aridhia DRE Workspace, if you don't have an
uploadsfolder already, create a new one by going into the Add tab and pressing on New Folder. Name your folder
- Then navigate to the Files tab and open your
uploadsfolder. From here, press Add tab -> Upload File. Upload your PLINK _*.zip_ file here.
- Install PLINK.
Connect to the Virtual Desktop and open the terminal. First, change the directory:
cd /files/uploadsUnzip the file into a new folder:
sudo unzip plink_linux_x86_64_20200616.zip -d plink_install
- Move PLINK executable
To make PLINK accessible from the command line anywhere in the file system, we need to move PLINK executable to the
sudo cp plink /usr/local/bin
- Test the installation:
cd ..If PLINK was installed correctly, the command should produce a similar output like the screenshot below.
If you get an error saying
command 'plink' not found, then you need to add
/usr/local/bin directory to path:
sudo nano ~/.bashrc Here, scroll down to the bottom of the file and add the following line:
export PATH=/usr/local/bin:$PATH Click Ctrl+S and Ctrl+X to save and exit the file. Restart the terminal and try running plink again.