<?xml version='1.0'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:atom="http://www.w3.org/2005/Atom" >
<channel>
	<title><![CDATA[BOL: Related items]]></title>
	<link>https://bioinformaticsonline.com/related/42003?offset=40</link>
	<atom:link href="https://bioinformaticsonline.com/related/42003?offset=40" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/news/view/4716/osddlinux-computational-resources-for-drug-discovery</guid>
	<pubDate>Sun, 22 Sep 2013 13:15:58 -0500</pubDate>
	<link>https://bioinformaticsonline.com/news/view/4716/osddlinux-computational-resources-for-drug-discovery</link>
	<title><![CDATA[OSDDlinux : Computational resources for drug discovery]]></title>
	<description><![CDATA[<p>Open Source Drug Discovery (OSDD), a mission to provide affordable drugs for poors, is in the process of creating an in silico plateform for designing, discovering and simulating drugs. OSDD have initiate number of projects to support in silico drug discovery, including OSDDlinux and computational resources for drug discovery (CRDD).</p><p>The main purpose of OSDDLinux is to provide an in silico platform for computer-aided drug design. This is a collection and compilation of large number of software and web services which will be directly or indirectly useful for researches working in the field of drug design/discovery. Overall objective of OSDDlinux is to promote open source in drug discovery, crowdsourcing and network based collobrations. Following are major features of OSDDlinux ...&nbsp;</p><p>Find more @&nbsp;http://osddlinux.osdd.net/index.php</p>]]></description>
	<dc:creator>Archana Malhotra</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/9204/keep-your-important-ssh-session-running-when-you-disconnect-from-server</guid>
	<pubDate>Sat, 15 Mar 2014 21:39:17 -0500</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/9204/keep-your-important-ssh-session-running-when-you-disconnect-from-server</link>
	<title><![CDATA[Keep Your Important SSH Session Running when You Disconnect from Server !!!]]></title>
	<description><![CDATA[<p>As a Bioinformatician/ Computational biologist we swim in the ocean of genomic/proteomics data, and play with them with an ease. In our day to day simulation, analysis, comparative study we do need to run exhaustive programs, which might take more than a week. In such cases we do need to disconnect from sever in a way that our program/session should not get terminated. To do so there are lots of software, tools such as tmux ( <a href="http://tmux.sourceforge.net/">http://tmux.sourceforge.net/</a>, nohup (<a href="http://ss64.com/bash/nohup.html">http://ss64.com/bash/nohup.html</a>) , byobu (<a href="https://help.ubuntu.com/10.04/serverguide/byobu.html">https://help.ubuntu.com/10.04/serverguide/byobu.html</a>) and other commands (disown -a &amp;&amp; exit), but following are the ones I use the most.</p><p>Screen is like a window manager for your console. It will allow you to keep multiple terminal sessions running and easily switch between them. It also protects you from disconnection, because the screen session doesn&rsquo;t end when you get disconnected.<br /><br />You&rsquo;ll need to make sure that screen is installed on the server you are connecting to. If that server is Ubuntu or Debian, just use this command:<br /><br />sudo apt-get install screen<br /><br />Now you can start a new screen session by just typing screen at the command line. You&rsquo;ll be shown some information about screen. Hit enter, and you&rsquo;ll be at a normal prompt.<br /><br /><strong>To disconnect (but leave the session running)</strong><br /><br />Hit Ctrl + A and then Ctrl + D in immediate succession. You will see the message [detached]<br /><br /><strong>To reconnect to an already running session</strong><br /><br />screen -r<br /><br /><strong>To reconnect to an existing session, or create a new one if none exists</strong><br /><br />screen -D -r<br /><br /><strong>To create a new window inside of a running screen session</strong><br /><br />Hit Ctrl + A and then C in immediate succession. You will see a new prompt.<br /><br /><strong>To switch from one screen window to another</strong><br /><br />Hit Ctrl + A and then Ctrl + A in immediate succession.<br /><br /><strong>To list open screen windows</strong><br /><br />Hit Ctrl + A and then W in immediate succession</p>]]></description>
	<dc:creator>Jitendra Narayan</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/11582/monitor-running-jobs-on-linux-server</guid>
	<pubDate>Fri, 06 Jun 2014 16:18:43 -0500</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/11582/monitor-running-jobs-on-linux-server</link>
	<title><![CDATA[Monitor running jobs on Linux server]]></title>
	<description><![CDATA[<p>You as a bioinformatican run lots of program on your servers. Sometime the shared server is also used by your colleague. If server is busy you sometime need to check the running programs and want to monitor the running programs as well. The "top" command will come in handy when you need to find out if things are still running, how long they&rsquo;ve been running, or how much memory is being used.<br /><br />&lsquo;top&rsquo; is very simple to run: type<br /><br />%% top<br /><br />You&rsquo;ll get a screen that looks like this, and is updated regularly:<br /><br /><img src="http://bioinformaticsonline.com/mod/photo/top.png" width="659" height="582" alt="image" style="border: 0px;"><br />Simple, right? Heh.<br /><br />First! Note that you can use &lsquo;q&rsquo; or &lsquo;CTRL-C&rsquo; to exit from &lsquo;top&rsquo;.<br /><br />Now let&rsquo;s read and understand at each line independently.<br /><br />The first line:<br /><br />top - 23:00:48 up 39 days,&nbsp; 2 user,&nbsp; load average: 0.00, 0.00, 0.00<br /><br />The first line tells you the current time, how long the machine has been up, how many users are logged in, and the short/medium/long-term compute load on the machine. If you run something for a long time, you&rsquo;ll see these numbers go up. Right now, the machine is basically just sitting there, so these are all close to 0.<br /><br />The second line:</p><p>Tasks:&nbsp; 239 total,&nbsp;&nbsp; 1 running,&nbsp; 238 sleeping,&nbsp;&nbsp; 0 stopped,&nbsp;&nbsp; 0 zombie<br /><br />This line tells you how many processes are running. If you are using laptops machines it&rsquo;s not so interesting because you really are the only one using this machine.<br /><br />Cpu(s):&nbsp; 0.0%us,&nbsp; 0.0%sy,&nbsp; 0.0%ni,100.0%id,&nbsp; 0.0%wa,&nbsp; 0.0%hi,&nbsp; 0.0%si,&nbsp; 0.0%st<br /><br />This line contains the CPU load. The first two numbers are how busy the system is doing computation (&ldquo;us&rdquo; stands for &ldquo;user&rdquo;) and how busy the system is doing system-y things like accessing disks or network (&ldquo;sy&rdquo; stands for &ldquo;system&rdquo;). We&rsquo;ll talk more about this later.<br /><br />Mem:&nbsp;&nbsp; 49457320k total,&nbsp;&nbsp;&nbsp; 3492174k used,&nbsp; 14535596k free,&nbsp;&nbsp;&nbsp; 1435148k buffers<br /><br />This should be easy to understand &ndash; how much memory you&rsquo;re using! <br /><br />Swap:&nbsp;&nbsp; 539356k total,&nbsp;&nbsp; 28332k used,&nbsp;&nbsp; 836562k free,&nbsp;&nbsp;&nbsp; 29862014k cached<br /><br />Swap is just on-disk memory that can be used to &ldquo;swap&rdquo; out programs from main memory. Again, we&rsquo;ll talk about this later.:<br /><br />PID USER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PR&nbsp; NI&nbsp; VIRT&nbsp; RES&nbsp; SHR S %CPU %MEM&nbsp;&nbsp;&nbsp; TIME+&nbsp; COMMAND<br />&nbsp; 1 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 39 &nbsp; 19&nbsp; 0&nbsp; 0&nbsp; 0 S&nbsp; 0.0&nbsp; 0.0&nbsp;&nbsp; 246:57.22 kipmi0<br />&nbsp; 2 root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RT&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp;&nbsp; 0 S&nbsp; 0.0&nbsp; 0.0&nbsp;&nbsp; 0:00.00 migration/0<br /><br />And... finally! What&rsquo;s actually running! The two most important numbers are the %CPU and %MEM towards the right, as well as the COMMAND. This tells you how compute- and memory-intensive your program is. Right now, nothing&rsquo;s running so the numbers aren&rsquo;t very interesting, but just wait until we run something...</p>]]></description>
	<dc:creator>Jitendra Narayan</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/26395/biolinux-ubuntu-desktop-folder-and-files-disappeared</guid>
	<pubDate>Tue, 16 Feb 2016 08:40:41 -0600</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/26395/biolinux-ubuntu-desktop-folder-and-files-disappeared</link>
	<title><![CDATA[BioLinux Ubuntu Desktop folder and files disappeared !!]]></title>
	<description><![CDATA[<p>Restarted my BioLinux ubuntu computer after an update, and when I logged back in, I noticed that all of my files went missing. Instead of Desktop folder, icons of all of my home folder are showed on desktop.</p><p>Then I thaught it migh be a problem of graphical display and I opened the terminal out of curiosity, and I found out that there is no ~/Desktop folder at all. What happened? What do I need to do?</p><p>Then I google the problem and found this is a very common problem after updates. To fix this problem, follow these steps:</p><p>You need to edit the ~/.config/user-dirs.dirs file, and make sure the contents of the file are like the following:<br /><br />XDG_DESKTOP_DIR="$HOME/Desktop"<br />XDG_DOWNLOAD_DIR="$HOME/Downloads"<br />XDG_TEMPLATES_DIR="$HOME/"<br />XDG_PUBLICSHARE_DIR="$HOME/Share"<br />XDG_DOCUMENTS_DIR="$HOME/Documents"<br />XDG_MUSIC_DIR="$HOME/Music"<br />XDG_PICTURES_DIR="$HOME/Pictures"<br />XDG_VIDEOS_DIR="$HOME/Videos"<br /><br />Then restart nautilus:<br /><br />killall nautilus<br /><br />or<br /><br />nautilus -q<br /><br />Then, open nautilus via Unity menu (press the Super key) or using the run command (Alt+F2)</p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/36502/creating-conda-environment-for-python27</guid>
	<pubDate>Mon, 07 May 2018 08:56:52 -0500</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/36502/creating-conda-environment-for-python27</link>
	<title><![CDATA[Creating conda environment for python2.7]]></title>
	<description><![CDATA[<p>TIP: By default, environments are installed into the&nbsp;<code><span>envs</span></code>&nbsp;directory in your conda directory. Run&nbsp;<code><span>conda</span>&nbsp;<span>create</span>&nbsp;<span>--help</span></code>&nbsp;for information on specifying a different path.</p><p>Use the Terminal or an Anaconda Prompt for the following steps.</p><ol>
<li>
<p>To create an environment:</p>
<div>
<div>
<pre><span></span><span>conda</span> <span>create</span> <span>--</span><span>name</span> <span>myenv</span>
</pre>
</div>
</div>
<p>NOTE: Replace&nbsp;<code><span>myenv</span></code>&nbsp;with the environment name.</p>
</li>
<li>
<p>When conda asks you to proceed, type&nbsp;<code><span>y</span></code>:</p>
<div>
<div>
<pre><span></span>proceed ([y]/n)?
</pre>
</div>
</div>
</li>
</ol><p>This creates the myenv environment in&nbsp;<code><span>/envs/</span></code>. This environment uses the same version of Python that you are currently using, because you did not specify a version.</p><p>To create an environment with a specific version of Python:</p><div><div><pre><span></span>conda create -n myenv <span>python</span><span>=</span><span>3</span>.4
</pre></div></div><p>To create an environment with a specific package:</p><div><div><pre><span></span>conda create -n myenv scipy
</pre></div></div><p>OR:</p><div><div><pre><span></span>conda create -n myenv python
conda install -n myenv scipy
</pre></div></div><p>To create an environment with a specific version of a package:</p><div><div><pre><span></span>conda create -n myenv <span>scipy</span><span>=</span><span>0</span>.15.0
</pre></div></div><p>OR:</p><div><div><pre><span></span>conda create -n myenv python
conda install -n myenv <span>scipy</span><span>=</span><span>0</span>.15.0
</pre></div></div><p>To create an environment with a specific version of Python and multiple packages:</p><div><div><pre><span></span>conda create -n myenv <span>python</span><span>=</span><span>3</span>.4 <span>scipy</span><span>=</span><span>0</span>.15.0 astroid babel
</pre></div></div><p>TIP: Install all the programs that you want in this environment at the same time. Installing 1 program at a time can lead to dependency conflicts.</p><p>To automatically install pip or another program every time a new environment is created, add the default programs to the&nbsp;<a href="https://conda.io/docs/user-guide/configuration/use-condarc.html#config-add-default-pkgs">create_default_packages</a>&nbsp;section of your&nbsp;<code><span>.condarc</span></code>&nbsp;configuration file. The default packages are installed every time you create a new environment. If you do not want the default packages installed in a particular environment, use the&nbsp;<code><span>--no-default-packages</span></code>&nbsp;flag:</p><div><div><pre><span></span>conda create --no-default-packages -n myenv python
</pre></div></div><p>TIP: You can add much more to the&nbsp;<code><span>conda</span>&nbsp;<span>create</span></code>&nbsp;command. For details, run&nbsp;<code><span>conda</span>&nbsp;<span>create</span>&nbsp;<span>--help</span></code>.</p><p>➜ redundans git:(master) ✗ conda create --name py27 python=2.7<br />Solving environment: done</p><p><br />==&gt; WARNING: A newer version of conda exists. &lt;==<br /> current version: 4.5.0<br /> latest version: 4.5.2</p><p>Please update conda by running</p><p>$ conda update -n base conda</p><p>&nbsp;</p><p>## Package Plan ##</p><p>environment location: /home/urbe/anaconda3/envs/py27</p><p>added / updated specs: <br /> - python=2.7</p><p><br />The following packages will be downloaded:</p><p>package | build<br /> ---------------------------|-----------------<br /> wheel-0.31.0 | py27_0 61 KB<br /> python-2.7.15 | h1571d57_0 12.1 MB<br /> certifi-2018.4.16 | py27_0 142 KB<br /> sqlite-3.23.1 | he433501_0 1.5 MB<br /> setuptools-39.1.0 | py27_0 582 KB<br /> openssl-1.0.2o | h20670df_0 3.4 MB<br /> pip-10.0.1 | py27_0 1.7 MB<br /> ca-certificates-2018.03.07 | 0 124 KB<br /> ------------------------------------------------------------<br /> Total: 19.6 MB</p><p>The following NEW packages will be INSTALLED:</p><p>ca-certificates: 2018.03.07-0 <br /> certifi: 2018.4.16-py27_0 <br /> libedit: 3.1-heed3624_0 <br /> libffi: 3.2.1-hd88cf55_4 <br /> libgcc-ng: 7.2.0-hdf63c60_3 <br /> libstdcxx-ng: 7.2.0-hdf63c60_3 <br /> ncurses: 6.0-h9df7e31_2 <br /> openssl: 1.0.2o-h20670df_0<br /> pip: 10.0.1-py27_0 <br /> python: 2.7.15-h1571d57_0<br /> readline: 7.0-ha6073c6_4 <br /> setuptools: 39.1.0-py27_0 <br /> sqlite: 3.23.1-he433501_0<br /> tk: 8.6.7-hc745277_3 <br /> wheel: 0.31.0-py27_0 <br /> zlib: 1.2.11-ha838bed_2</p><p>Proceed ([y]/n)? y</p><p><br />Downloading and Extracting Packages<br />wheel 0.31.0: #################################################################################################################################################################################################### | 100% <br />python 2.7.15: ################################################################################################################################################################################################### | 100% <br />certifi 2018.4.16: ############################################################################################################################################################################################### | 100% <br />sqlite 3.23.1: ################################################################################################################################################################################################### | 100% <br />setuptools 39.1.0: ############################################################################################################################################################################################### | 100% <br />openssl 1.0.2o: ################################################################################################################################################################################################## | 100% <br />pip 10.0.1: ###################################################################################################################################################################################################### | 100% <br />ca-certificates 2018.03.07: ###################################################################################################################################################################################### | 100% <br />Preparing transaction: done<br />Verifying transaction: done<br />Executing transaction: done<br />#<br /># To activate this environment, use:<br /># &gt; source activate py27<br />#<br /># To deactivate an active environment, use:<br /># &gt; source deactivate<br />#</p><p>➜ redundans git:(master) ✗ source activate py27</p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/pages/view/14091/subprocess-pkg</guid>
	<pubDate>Sun, 17 Aug 2014 07:59:32 -0500</pubDate>
	<link>https://bioinformaticsonline.com/pages/view/14091/subprocess-pkg</link>
	<title><![CDATA[Subprocess pkg]]></title>
	<description><![CDATA[<p>Subprocess is one of simplest way of running linux command from within python code</p><p>Example:</p><p>if you want to run fastqc for QC of fastq file:</p><p>from subprocess import Popen,PIPE,call</p><p>p=Popen(["fastqc","-f","fastq","-o", "/home/name/result/","/dev/stdin"],stdin=fopen("read.fastq","r") ,stdout=PIPE,stderr=PIPE)</p><p>print p.stderr</p><p>p.stdout.close()</p><p>More:</p><p>http://pymotw.com/2/subprocess/</p>]]></description>
	<dc:creator>Rahul Agarwal</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/43872/installing-elgg-on-ubuntu</guid>
	<pubDate>Wed, 25 May 2022 02:26:05 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/43872/installing-elgg-on-ubuntu</link>
	<title><![CDATA[Installing ELGG on Ubuntu !]]></title>
	<description><![CDATA[<p>Elgg is an open-source and highly customizable framework used for building an online social environment. It provides a simple and powerful user interface that helps to manage and build your content through a web browser. Elgg offers a rich set of features including messaging, microblogging, file-sharing, RSS support, access control, groups, and many more.</p><p>&nbsp;</p><p>In this tutorial, we will show you how to install and configure Elgg social networking platform on Ubuntu 20.04.</p><h2>Prerequisites</h2><p>&bull; A fresh Ubuntu 20.04&nbsp;<a href="https://www.atlantic.net/vps-hosting/">VPS</a>&nbsp;on the Atlantic.net Cloud Platform<br />&bull; A valid domain name pointed to your server IP<br />&bull; A root password configured on your server</p><h2>Step 1 &ndash; Create Atlantic.Net Cloud Server</h2><p>First, log in to your&nbsp;<a href="https://cloud.atlantic.net/?page=userlogin" target="_blank">Atlantic.Net Cloud Server</a>. Create a new&nbsp;<a href="https://www.atlantic.net/vps-hosting/how-to-create-new-atlantic-net-cloud-server/">server</a>, choosing Ubuntu 20.04 as the operating system with at least 2GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.</p><p>Once you are logged in to your Ubuntu 20.04 server, run the following command to update your base system with the latest available packages.</p><pre>apt-get update -y</pre><h2>Step 2 &ndash; Install Apache, MariaDB and PHP</h2><p>Elgg runs on Apache web server, is written in PHP, and uses MySQL/MariaDB as a database backend, so you will need to install the Apache, MariaDB, PHP and other required PHP extensions to your server. You can install all of them with the following command:</p><pre>apt-get install apache2 mariadb-server php libapache2-mod-php php-common php-sqlite3 php-curl 
php-intl php-mbstring php-xmlrpc php-mysql php-gd php-xml php-cli php-zip unzip wget -y</pre><p>After installing all the packages, edit the php.ini file and change some recommended settings.</p><pre>nano /etc/php/7.4/apache2/php.ini</pre><p>Change the following values:</p><pre>max_execution_time = 300
memory_limit = 512M
upload_max_filesize = 100M
date.timezone = Asia/Kolkata</pre><p>Save and close the file, then restart the Apache service to apply the configuration changes.</p><pre>systemctl restart apache2</pre><h2>Step 3 &ndash; Create a Database for Elgg</h2><p>Next, you will need to create a database and user for Elgg. First, log in to MySQL shell with the following command:</p><pre>mysql</pre><p>Once logged in, create a database and user with the following command:</p><pre>CREATE DATABASE elgg;
CREATE USER 'elgg'@'localhost' IDENTIFIED BY 'secure-password';</pre><p>Next, grant all the privileges to the elgg database with the following command:</p><pre>GRANT ALL ON elgg.* TO 'elgg'@'localhost' IDENTIFIED BY 'secure-password' WITH GRANT 
OPTION;</pre><p>Next, flush the privileges and exit from the MariaDB shell with the following command:</p><pre>FLUSH PRIVILEGES;
EXIT;</pre><p>At this point, the MariaDB database is created for Elgg.</p><h2>Step 4 &ndash; Install Elgg</h2><p>First, download the latest version of Elgg from its official website using the following command:</p><pre>wget https://elgg.org/download/elgg-3.3.13.zip</pre><p>Once the download is completed, unzip the downloaded file with the following command:</p><pre>unzip elgg-3.3.13.zip</pre><p>Next, move the extracted directory to the Apache root directory:</p><pre>mv elgg-3.3.13 /var/www/html/elgg</pre><p>Next, create a data directory and set proper ownership and permissions to the Elgg directory:</p><pre>mkdir /var/www/html/data
chown -R www-data:www-data /var/www/html/elgg
chown -R www-data:www-data /var/www/html/data
chmod -R 755 /var/www/html/elgg</pre><p>Once you are finished, you can proceed to the next step.</p><h2>Step 5 &ndash; Configure Apache for Elgg</h2><p>Next, you will need to configure Apache to serve Elgg. You can configure it by creating a new Apache virtual host configuration file:</p><pre>nano /etc/apache2/sites-available/elgg.conf</pre><p>Add the following lines:</p><pre>&lt;VirtualHost *:80&gt;
ServerAdmin admin@example.com
DocumentRoot /var/www/html/elgg/
ServerName elgg.example.com
Options FollowSymLinks
AllowOverride All
ErrorLog /var/log/apache2/elgg-error_log
CustomLog /var/log/apache2/elgg-access_log common
&lt;/VirtualHost&gt;</pre><p>Save and close the file, then enable the virtual host and Apache rewrite module with the following command:</p><pre>a2ensite elgg.conf
a2enmod rewrite</pre><p>Finally, restart the Apache service to apply the changes:</p><pre>systemctl restart apache2</pre><h2>Step 6 &ndash; Access Elgg Web Interface</h2><p>Now, open your web browser and access the Elgg web interface using the URL http://elgg.example.com. You should see the Elgg welcome screen:</p>]]></description>
	<dc:creator>Neel</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/bookmarks/view/28303/fancy-oneliner-for-bioinformatics</guid>
	<pubDate>Thu, 07 Jul 2016 12:05:50 -0500</pubDate>
	<link>https://bioinformaticsonline.com/bookmarks/view/28303/fancy-oneliner-for-bioinformatics</link>
	<title><![CDATA[Fancy Oneliner for Bioinformatics !!]]></title>
	<description><![CDATA[<p><span>This webpage lists some of the one-liners that we frequently use in metagenomic analyses. You can click on the following links to browse through different topics. You can copy/paste the commands as they are in your terminal screen, provided you follow the same naming conventions and folder structures as we have. We are sharing these codes with the intention that if they are useful and help you in your analyses, then we will be appropriately credited as considerable effort has been put into devising them.</span></p><p>Address of the bookmark: <a href="http://userweb.eng.gla.ac.uk/umer.ijaz/bioinformatics/oneliners.html" rel="nofollow">http://userweb.eng.gla.ac.uk/umer.ijaz/bioinformatics/oneliners.html</a></p>]]></description>
	<dc:creator>Poonam Mahapatra</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/blog/view/710/how-to-install-perl-modules-manually-using-cpan-command-and-other-quick-ways</guid>
	<pubDate>Fri, 12 Jul 2013 07:20:24 -0500</pubDate>
	<link>https://bioinformaticsonline.com/blog/view/710/how-to-install-perl-modules-manually-using-cpan-command-and-other-quick-ways</link>
	<title><![CDATA[How to install Perl modules manually, using CPAN command, and other quick ways]]></title>
	<description><![CDATA[<p>As a bioinformatics programmer, and crunchy data analyser you need to install several perl modules and dependencies. Installing Perl modules manually by resolving all the dependencies is&nbsp; tedious and annoying process. Some of the packages like GD is the real pain. <br /><br />However, Installing Perl modules using CPAN is a better solution, as it resolves all the dependencies automatically. In this article, let us review how to install Perl modules on Linux ( which is prefereced amonst bioinformatician) using both manual and CPAN method.<br /><br />When a Perl module is not installed, application will display the following error message. In this example, XML::Parser Perl module is missing.</p><p>Can't locate XML/parser.pm in @INC (@INC contains:<br />/usr/lib/perl5/5.10.0/i386-linux-thread-multi<br />/usr/lib/perl5/5.10.0<br />/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi<br />/usr/local/lib/perl5/site_perl/5.10.0<br />/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi<br />/usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl<br />/usr/lib/perl5/site_perl/5.10.0 .)</p><p><strong>Manual Method of Perl Module Installation</strong></p><ul>
<li>Install Perl Modules Manually</li>
</ul><p>This manual method is very useful when your computer or server is not connected to the Internet.</p><p>Download Perl module: <br />Go to CPAN Search website and search for the module that you wish to download. In this example, let us search, download and install XML::Parser Perl module. I have downloaded the XML-Parser-2.36.tar.gz to /home/download<br /><br /># cd /home/download<br /># gzip -d XML-Parser-2.36.tar.gz<br /># tar xvf XML-Parser-2.36.tar<br /># cd XML-Parser-2.36<br /><br />Build the perl module: <br />Build by running Makefile.PL, remember the case sensitivity, make and make test.<br /><br /># perl Makefile.PL<br />Checking if your kit is complete...<br />Looks good<br />Writing Makefile for XML::Parser::Expat<br />Writing Makefile for XML::Parser<br /># make<br /># make test<br /><br />Install the perl module:<br />Now your package is ready to install.<br /><br /># make install<br /><br />As a newbie it looks pretty simple, and one go. But, luckily this is a very simple one module with no dependencies. Typically, Perl modules will be dependent on several other modules. Just imagine chasing all these dependencies one-by-one, thinking ... oh ye I got it. That will be very painful and annoying task. I recommend the CPAN method of installation as shown below.</p><p><strong>Install Perl Modules using CPAN automatically</strong></p><p>Logically, you should must have the CPAN perl module installed in your server or computer before you can install any other Perl modules using CPAN. I know you&nbsp; are laughing, "to install a perl module you need another perl module"&nbsp; ;)<br /><br />Lets verify whether CPAN is already installed:<br /><br />To install Perl modules using CPAN, make sure the cpan command is working. Following are the error message when CPAN module is not installed.<br /><br /># cpan<br />-bash: cpan: command not found<br /><br /># perl -MCPAN -e shell<br />Can't locate CPAN.pm in @INC (@INC contains:<br />/usr/lib/perl5/5.10.0/i386-linux-thread-multi<br />/usr/lib/perl5/5.10.0<br />/usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi<br />/usr/local/lib/perl5/site_perl/5.10.0<br />/usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi<br />/usr/lib/perl5/vendor_perl/5.10.0<br />/usr/lib/perl5/vendor_perl /usr/lib/perl5/site_perl/5.10.0 .).<br />BEGIN failed--compilation aborted.<br /><br />Install the CPAN module using yum:<br />If CPAN in not installed in your system, you can use "yum" for the rescue. Dont worry biological data cruncher, this is true we are now dependent all these tiny magicians :). <br /><br /># yum install perl-CPAN<br /><br />Output of yum install perl-CPAN command:</p><p>Loaded plugins: refresh-packagekit<br />updates-newkey&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 2.3 kB&nbsp;&nbsp;&nbsp;&nbsp; 00:00<br />primary.sqlite.bz2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 2.4 MB&nbsp;&nbsp;&nbsp;&nbsp; 00:00<br />Setting up Install Process<br />Parsing package install arguments<br /><br />Resolving Dependencies<br />Transaction Summary<br />=============================================================================<br />Install&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 Package(s)<br />Update&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 Package(s)<br />Remove&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 Package(s)<br /><br />Total download size: 1.0 M<br />Is this ok [y/N]: y<br />Downloading Packages:<br />(1/5): perl-ExtUtils-ParseXS-2.18-31.fc9.i386.rpm&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; 30 kB&nbsp;&nbsp;&nbsp;&nbsp; 00:00<br />(2/5): perl-Test-Harness-2.64-31.fc9.i386.rpm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; 70 kB&nbsp;&nbsp;&nbsp;&nbsp; 00:00<br />(3/5): perl-CPAN-1.9205-31.fc9.i386.rpm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 217 kB&nbsp;&nbsp;&nbsp;&nbsp; 00:00<br />(4/5): perl-ExtUtils-MakeMaker-6.36-31.fc9.i386.rpm&nbsp;&nbsp; | 284 kB&nbsp;&nbsp;&nbsp;&nbsp; 00:00<br />(5/5): perl-devel-5.10.0-31.fc9.i386.rpm&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; | 408 kB&nbsp;&nbsp;&nbsp;&nbsp; 00:00<br /><br />Installing&nbsp;&nbsp;&nbsp;&nbsp; : perl-ExtUtils-ParseXS&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [1/5]<br />Installing&nbsp;&nbsp;&nbsp;&nbsp; : perl-devel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [2/5]<br />Installing&nbsp;&nbsp;&nbsp;&nbsp; : perl-Test-Harness&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [3/5]<br />Installing&nbsp;&nbsp;&nbsp;&nbsp; : perl-ExtUtils-MakeMaker&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [4/5]<br />Installing&nbsp;&nbsp;&nbsp;&nbsp; : perl-CPAN&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [5/5]<br /><br /><br />Installed: perl-CPAN.i386 0:1.9205-31.fc9<br />Dependency Installed:<br />&nbsp; perl-ExtUtils-MakeMaker.i386 0:6.36-31.fc9<br />&nbsp; perl-ExtUtils-ParseXS.i386 1:2.18-31.fc9<br />&nbsp; perl-Test-Harness.i386 0:2.64-31.fc9<br />&nbsp; perl-devel.i386 4:5.10.0-31.fc9<br />Complete!<br /><br />Configure cpan the first time:<br />Once the CPAN is installed, you need to configure it by executing cpan, you should set some configuration parameters as shown below. I have shown only the important configuration parameters below. Accept all the default values by pressing enter.<br /><br />Note: Make sure to execute &ldquo;o conf commit&rdquo; in the cpan prompt after the configuration to save the settings.<br /><br /># cpan<br /><br />Sorry, we have to rerun the configuration dialog for CPAN.pm due<br />to some missing parameters...<br /><br />CPAN build and cache directory? [/root/.cpan]<br />Download target directory? [/root/.cpan/sources]<br />Directory where the build process takes place? [/root/.cpan/build]<br /><br />Always commit changes to config variables to disk? [no]<br />Cache size for build directory (in MB)? [100]<br />Let the index expire after how many days? [1]<br /><br />Perform cache scanning (atstart or never)? [atstart]<br />Cache metadata (yes/no)? [yes]<br />Policy on building prerequisites (follow, ask or ignore)? [ask]<br /><br />Parameters for the 'perl Makefile.PL' command? []<br />Parameters for the 'perl Build.PL' command? []<br /><br />Your ftp_proxy? []<br />Your http_proxy? []<br />Your no_proxy? []<br />Is it OK to try to connect to the Internet? [yes]<br /><br />First, pick a nearby continent and country by typing in the number(s)<br />(1) Africa<br />(2) Asia<br />(3) Central America<br />(4) Europe<br />(5) North America<br />(6) Oceania<br />(7) South America<br />Select your continent (or several nearby continents) [] 5<br /><br />(1) Bahamas<br />(2) Canada<br />(3) Mexico<br />(4) United States<br />Select your country (or several nearby countries) [] 4<br /><br />(2) ftp://carroll.cac.psu.edu/pub/CPAN/<br />(3) ftp://cpan-du.viaverio.com/pub/CPAN/<br />(4) ftp://cpan-sj.viaverio.com/pub/CPAN/<br />(5) ftp://cpan.calvin.edu/pub/CPAN<br />(6) ftp://cpan.cs.utah.edu/pub/CPAN/<br />e.g. '1 4 5' or '7 1-4 8' [] 2-16<br /><br />cpan[1]&gt; o conf commit<br />commit: wrote '/usr/lib/perl5/5.10.0/CPAN/Config.pm'<br /><br />cpan[2]&gt; quit<br />No history written (no histfile specified).<br />Lockfile removed.<br /><br /></p><ul>
<li>Install Perl Modules using CPAN</li>
</ul><p>Hey smile please, now you are ready with CPAN and can download modules in one line command. <br /><br />You can use one of the following method to install a Perl module using cpan:<br /><br /># perl -MCPAN -e 'install Bundle::BioPerl'<br /><br />(or)<br /><br /># cpan<br />cpan shell -- CPAN exploration and modules installation (v1.9205)<br />ReadLine support available (maybe install Bundle::CPAN or Bundle::CPANxxl?)<br /><br />cpan[1]&gt; install "Bundle::BioPerl"<br /><br />In the example above, CPAN will check for&nbsp;Bundle::BioPerl dependencies and automatically resolves and installs&nbsp;Bundle::BioPerl with all the dependent Perl modules.</p><ul>
<li>Quick Ways</li>
</ul><p>Oh, look at your face.. smily hmm :). This is what your are looking for, a quick and best way to install Perl modules, Bioperl. Following are the the steps to download BioPerl in your server/computer.</p><p># sudo apt-cache search perl BioPerl</p><p>Output will be like as follows:</p><p>bioperl - Perl tools for computational molecular biology<br />bioperl-run - BioPerl wrappers: scripts<br />libbio-perl-perl - BioPerl core perl modules<br />libbio-perl-run-perl - BioPerl wrappers: modules<br />libbio-samtools-perl - Perl interface to SamTools library for DNA sequencing<br />libbiojava-java - Java API to biological data and applications (default version)<br />libbiojava3-java - Java API to biological data and applications (default version)<br />python-biopython-sql - Biopython support for the BioSQL database schema<br />libbtlib-perl - library for basic sequence manipulation<br /><br /></p><p># sudo apt-get install bioperl</p><p>If it is installed then flash the following message:</p><p>Reading package lists... Done<br />Building dependency tree&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br />Reading state information... Done<br />bioperl is already the newest version.<br />0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.</p><p>In it is found not installed in your server or system them install all with dependencies.</p><p>You can use the same approach to install all the modules, and packages if required.</p><p>Thanks for reading. Best of luck for your research.</p>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/news/view/1737/perl-in-a-day</guid>
	<pubDate>Sat, 10 Aug 2013 21:14:03 -0500</pubDate>
	<link>https://bioinformaticsonline.com/news/view/1737/perl-in-a-day</link>
	<title><![CDATA[Perl in a day !!]]></title>
	<description><![CDATA[<p>This pdf based tutorial in good resource to understand the basic of Perl in a day</p><p><a href="http://ritg.med.harvard.edu/training/perl/RC_Perl_Intro.pdf">http://ritg.med.harvard.edu/training/perl/RC_Perl_Intro.pdf</a></p>]]></description>
	<dc:creator>Jitendra Narayan</dc:creator>
</item>

</channel>
</rss>