<?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: All]]></title>
	<link>https://bioinformaticsonline.com/snippets?offset=240</link>
	<atom:link href="https://bioinformaticsonline.com/snippets?offset=240" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/41320/install-htop-on-ubuntu</guid>
	<pubDate>Sun, 01 Mar 2020 23:33:28 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/41320/install-htop-on-ubuntu</link>
	<title><![CDATA[Install htop on ubuntu]]></title>
	<description><![CDATA[<code>jit@jit-HP-Pro-3335-MT:~/Downloads/annotated$ sudo apt  install htop
[sudo] password for jit: 
Sorry, try again.
[sudo] password for jit: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  htop
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 80.0 kB of archives.
After this operation, 221 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 htop amd64 2.1.0-3 [80.0 kB]
Fetched 80.0 kB in 1s (122 kB/s)
Selecting previously unselected package htop.
(Reading database ... 193509 files and directories currently installed.)
Preparing to unpack .../htop_2.1.0-3_amd64.deb ...
Unpacking htop (2.1.0-3) ...
Setting up htop (2.1.0-3) ...
Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ...
Processing triggers for mime-support (3.60ubuntu1) ...</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/41319/install-vcftools-on-ubuntu</guid>
	<pubDate>Sun, 01 Mar 2020 23:27:29 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/41319/install-vcftools-on-ubuntu</link>
	<title><![CDATA[Install vcftools on Ubuntu]]></title>
	<description><![CDATA[<code>jit@jit-HP-Pro-3335-MT:~/Downloads/annotated$ sudo apt install vcftools
[sudo] password for jit: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  vcftools
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 452 kB of archives.
After this operation, 1,459 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 vcftools amd64 0.1.15-1 [452 kB]
Fetched 452 kB in 1s (449 kB/s)  
Selecting previously unselected package vcftools.
(Reading database ... 193392 files and directories currently installed.)
Preparing to unpack .../vcftools_0.1.15-1_amd64.deb ...
Unpacking vcftools (0.1.15-1) ...
Setting up vcftools (0.1.15-1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

#MORE at https://vcftools.github.io/perl_module.html

# Calculate stats separately for the filter field, quality and non-indels vcf-stats file.vcf.gz -f FILTER,QUAL=10:200,INFO/INDEL=False -p out/


# Calculate stats for all samples vcf-stats file.vcf.gz -f FORMAT/DP=10:200 -p out/

# Calculate stats only for the sample NA00001 vcf-stats file.vcf.gz -f SAMPLE/NA00001/DP=1:200 -p out/

vcf-stats file.vcf.gz &gt; perl.dump</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/41175/install-parrot-virtual-machine</guid>
	<pubDate>Wed, 19 Feb 2020 06:21:29 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/41175/install-parrot-virtual-machine</link>
	<title><![CDATA[Install Parrot Virtual Machine !]]></title>
	<description><![CDATA[<code>#Parrot is a virtual machine designed to efficiently compile and execute bytecode for dynamic languages

jit@jit-HP-Pro-3335-MT:~/Downloads/parrot-8.1.0$ wget ftp://ftp.parrot.org/pub/parrot/releases/supported/8.1.0/parrot-8.1.0.tar.gz

jit@jit-HP-Pro-3335-MT:~/Downloads/parrot-8.1.0$ tar -zxvf parrot-8.1.0.tar.gz parrot-8.1.0/

jit@jit-HP-Pro-3335-MT:~/Downloads/parrot-8.1.0$ cd parrot-8.1.0/

jit@jit-HP-Pro-3335-MT:~/Downloads/parrot-8.1.0$ perl Configure.pl 
Parrot Version 8.1.0 Configure 2.0
Copyright (C) 2001-2015, Parrot Foundation.

Hello, I&#039;m Configure. My job is to poke and prod your system to figure out
how to build Parrot. The process is completely automated, unless you passed in
the `--ask&#039; flag on the command line, in which case I&#039;ll prompt you for a few
pieces of info.

Since you&#039;re running this program, you obviously have Perl 5--I&#039;ll be pulling
some defaults from its configuration.
do &quot;lib/Parrot/Config/Generated.pm&quot; failed, &#039;.&#039; is no longer in @INC; did you mean do &quot;./lib/Parrot/Config/Generated.pm&quot;? at Configure.pl line 84.
Deleting gcov-generated files
Deleting cover-generated html files

init::manifest -      Check MANIFEST.....................................done.
init::defaults -      Set Configure&#039;s default values.....................done.
init::install -       Set up installation paths..........................done.
init::hints -         Load platform and local hints files................done.
inter::progs -        Determine what C compiler and linker to use........done.
inter::make -         Is make installed...................................yes.
inter::lex -          Is lex installed................................skipped.
inter::yacc -         Is yacc installed...............................skipped.
auto::gcc -           Is your C compiler actually gcc................yes, 7.4.
auto::glibc -         Is GNU libc installed...............................yes.
auto::backtrace -     Does libc have the backtrace* functions.............yes.
auto::msvc -          Is your C compiler actually Visual C++..........skipped.
auto::attributes -    Detect compiler attributes.........................done.
auto::arch -          Determine CPU architecture and type, and OS........done.
auto::cpu -           Generate CPU specific stuff........................done.
init::optimize -      Enable optimization..................................no.
inter::shlibs -       Determine flags for building shared libraries.....-fPIC.
inter::libparrot -    Should parrot link against a shared library.........yes.
inter::types -        What types should Parrot use.......................done.
auto::ops -           Which opcode files should be compiled in...........done.
auto::pmc -           Which pmc files should be compiled in..............done.
auto::headers -       Probe for C headers................................done.
auto::sizes -         Determine some sizes...............................done.
auto::byteorder -     Compute native byteorder for wordsize.....little-endian.
auto::va_ptr -        Test the type of va_ptr........................register.
auto::format -        What formats should be used for sprintf............done.
auto::isreg -         Does your C library have a working S_ISREG..........yes.
auto::llvm -          Is minimum version of LLVM installed............skipped.
auto::inline -        Does your compiler support inline....................no.
auto::gc -            Determine allocator to use..........................gms.
auto::memalign -      Does your C library support memalign................yes.
auto::signal -        Determine some signal stuff........................done.
auto::socklen_t -     Determine whether there is socklen_t................yes.
auto::stat -          Detect stat type....................................bsd.
auto::neg_0 -         Determine whether negative zero can be printed......yes.
auto::env -           Does your C library have setenv / unsetenv.........both.
auto::timespec -      Does your system has timespec.......................yes.
auto::infnan -        Is standard C Inf/NaN handling present..............yes.
auto::thread -        Does your system have threads.......................yes.
auto::gmp -           Does your platform support GMP.......................no.
auto::readline -      Does your platform support readline.................yes.
auto::pcre -          Does your platform support pcre...............yes, 8.39.
auto::opengl -        Does your platform support OpenGL....................no.
auto::zlib -          Does your platform support zlib.....................yes.
auto::gettext -       Does your configuration include gettext.............yes.
auto::snprintf -      Test for snprintf..............................yes, C99.
auto::mathl -         Test for long math support..........................yes.
auto::perldoc -       Is perldoc installed.................................no.
auto::coverage -      Are coverage analysis tools installed...Negative repeat count does nothing at lib/Parrot/Configure.pm line 481.
lacking cover gcov2perl.
auto::pod2man -       Is pod2man installed................................yes.
auto::ctags -         Is (exuberant) ctags installed.......................no.
auto::icu -           Is ICU installed..............................yes, 60.2.
auto::libffi -        Is libffi installed.....................no, failed test.
auto::ipv6 -          Determine IPV6 capabilities.........................yes.
auto::platform -      Generate a list of platform object files...........done.
auto::alignof -       Determine offsetof values for our types.........skipped.
auto::expect -        Does your compiler support __builtin_expect.........yes.
auto::warnings -      Detect supported compiler warnings.................done.
gen::config_h -       Generate C headers.................................done.
gen::core_pmcs -      Generate core pmc list.............................done.
gen::opengl -         Generating OpenGL bindings......................skipped.
gen::makefiles -      Generate makefiles and other build files...........done.
gen::config_pm -      Record configuration data for later retrieval......done.
Okay, we&#039;re done!

You can now use `make&#039; to build your Parrot.
After that, you can use `make test&#039; to run the test suite.

Happy Hacking,
        The Parrot Team

jit@jit-HP-Pro-3335-MT:~/Downloads/parrot-8.1.0$ make

jit@jit-HP-Pro-3335-MT:~/Downloads/parrot-8.1.0$ ./parrot -h
parrot [Options] &lt;file&gt; [&lt;program options...&gt;]
  Options:
    -h --help
    -V --version
    -I --include add path to include search
    -L --library add path to library search
       --hash-seed F00F  specify hex value to use as hash seed
    -X --dynext add path to dynamic extension search
   &lt;Run core options&gt;
    -R --runcore fast|slow|bounds
    -R --runcore trace|profiling|subprof
    -t --trace [flags]
   &lt;VM options&gt;
    -D --parrot-debug[=HEXFLAGS]
       --help-debug
    -w --warnings
    -G --no-gc
    -g --gc ms2|gms|ms|inf set GC type
       &lt;GC MS2 options&gt;
       --gc-dynamic-threshold=percentage    maximum memory wasted by GC
       --gc-min-threshold=KB
       &lt;GC GMS options&gt;
       --gc-nursery-size=percent of sysmem  size of gen0 (default 2)
       --gc-debug
       --leak-test|--destroy-at-end
    -. --wait    Read a keystroke before starting
       --runtime-prefix
   &lt;Compiler options&gt;
    -v --verbose
    -E --pre-process-only
    -o --output=FILE
       --output-pbc
    -O --optimize[=LEVEL]
    -a --pasm
    -c --pbc
    -r --run-pbc
    -y --yydebug
    -d --imcc-debug[=HEXFLAGS] (see --help-debug)
   &lt;Language options&gt;
see docs/running.pod for more</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/41164/bash-oneliner-to-extract-all-ids-from-a-multifasta-file</guid>
	<pubDate>Tue, 18 Feb 2020 08:06:09 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/41164/bash-oneliner-to-extract-all-ids-from-a-multifasta-file</link>
	<title><![CDATA[Bash oneliner to extract all ids from a multifasta file]]></title>
	<description><![CDATA[<code>#List of ids - one per line in allIds.txt

$ awk &#039;BEGIN{while((getline&lt;&quot;allIds.txt&quot;)&gt;0)l[&quot;&gt;&quot;$1]=1}/^&gt;/{f=!l[$1]}f&#039; seq.fa

# You can play with this f=!l[$1 ] if wanted to extract or not extract the ids</code>]]></description>
	<dc:creator>biogeek</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/41156/install-snakemake-and-activate-on-conda</guid>
	<pubDate>Tue, 18 Feb 2020 06:33:24 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/41156/install-snakemake-and-activate-on-conda</link>
	<title><![CDATA[Install snakemake and activate on conda]]></title>
	<description><![CDATA[<code>$ conda create -c bioconda -c conda-forge -n snakemake snakemake
$ conda activate snakemake</code>]]></description>
	<dc:creator>biogeek</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/41142/check-your-linux-os</guid>
	<pubDate>Tue, 18 Feb 2020 01:35:23 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/41142/check-your-linux-os</link>
	<title><![CDATA[Check your Linux OS]]></title>
	<description><![CDATA[<code>(py36) [wsu29@bladeamd-2 lofreq]$ lsb_release -a
LSB Version:	:base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID:	CentOS
Description:	CentOS release 6.7 (Final)
Release:	6.7
Codename:	Final</code>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/41119/install-printer-in-ubuntu</guid>
	<pubDate>Mon, 17 Feb 2020 00:58:34 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/41119/install-printer-in-ubuntu</link>
	<title><![CDATA[Install printer in Ubuntu !]]></title>
	<description><![CDATA[<code>jit@jit-HP-Pro-3335-MT:~$ java -version
openjdk version &quot;11.0.6&quot; 2020-01-14
OpenJDK Runtime Environment (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1)
OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing)
jit@jit-HP-Pro-3335-MT:~$ sudo ufw allow 9191
[sudo] password for jit: 
Rules updated
Rules updated (v6)
jit@jit-HP-Pro-3335-MT:~$ sudo ufw allow 9192
Rules updated
Rules updated (v6)
jit@jit-HP-Pro-3335-MT:~$ sudo apt-get install python3-smbc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  python3-smbc
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.8 kB of archives.
After this operation, 69.6 kB of additional disk space will be used.
Get:1 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 python3-smbc amd64 1.0.15.6-1build2 [16.8 kB]
Fetched 16.8 kB in 1s (18.6 kB/s) 
Selecting previously unselected package python3-smbc.
(Reading database ... 192946 files and directories currently installed.)
Preparing to unpack .../python3-smbc_1.0.15.6-1build2_amd64.deb ...
Unpacking python3-smbc (1.0.15.6-1build2) ...
Setting up python3-smbc (1.0.15.6-1build2) ...
jit@jit-HP-Pro-3335-MT:~$ sudo apt-get install smbclient
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  python-ldb python-samba python-tdb samba-common samba-common-bin
Suggested packages:
  python-gpgme heimdal-clients cifs-utils
The following NEW packages will be installed:
  python-ldb python-samba python-tdb samba-common samba-common-bin smbclient
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,912 kB of archives.
After this operation, 18.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-common all 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 [72.2 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 smbclient amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 [352 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-ldb amd64 2:1.2.3-1ubuntu0.1 [30.9 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 python-tdb amd64 1.3.15-2 [11.1 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-samba amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 [1,926 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 samba-common-bin amd64 2:4.7.6+dfsg~ubuntu-0ubuntu2.15 [520 kB]
Fetched 2,912 kB in 3s (923 kB/s)         
Preconfiguring packages ...
Selecting previously unselected package samba-common.
(Reading database ... 192954 files and directories currently installed.)
Preparing to unpack .../0-samba-common_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.15_all.deb ...
Unpacking samba-common (2:4.7.6+dfsg~ubuntu-0ubuntu2.15) ...
Selecting previously unselected package smbclient.
Preparing to unpack .../1-smbclient_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.15_amd64.deb ...
Unpacking smbclient (2:4.7.6+dfsg~ubuntu-0ubuntu2.15) ...
Selecting previously unselected package python-ldb:amd64.
Preparing to unpack .../2-python-ldb_2%3a1.2.3-1ubuntu0.1_amd64.deb ...
Unpacking python-ldb:amd64 (2:1.2.3-1ubuntu0.1) ...
Selecting previously unselected package python-tdb.
Preparing to unpack .../3-python-tdb_1.3.15-2_amd64.deb ...
Unpacking python-tdb (1.3.15-2) ...
Selecting previously unselected package python-samba.
Preparing to unpack .../4-python-samba_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.15_amd64.deb ...
Unpacking python-samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.15) ...
Selecting previously unselected package samba-common-bin.
Preparing to unpack .../5-samba-common-bin_2%3a4.7.6+dfsg~ubuntu-0ubuntu2.15_amd64.deb ...
Unpacking samba-common-bin (2:4.7.6+dfsg~ubuntu-0ubuntu2.15) ...
Setting up python-tdb (1.3.15-2) ...
Setting up samba-common (2:4.7.6+dfsg~ubuntu-0ubuntu2.15) ...

Creating config file /etc/samba/smb.conf with new version
Setting up smbclient (2:4.7.6+dfsg~ubuntu-0ubuntu2.15) ...
Setting up python-ldb:amd64 (2:1.2.3-1ubuntu0.1) ...
Setting up python-samba (2:4.7.6+dfsg~ubuntu-0ubuntu2.15) ...
Setting up samba-common-bin (2:4.7.6+dfsg~ubuntu-0ubuntu2.15) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/41037/install-python-numpy-python-scipy-python-matplotlib-on-ubuntu</guid>
	<pubDate>Sat, 15 Feb 2020 05:57:22 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/41037/install-python-numpy-python-scipy-python-matplotlib-on-ubuntu</link>
	<title><![CDATA[Install python-numpy python-scipy python-matplotlib on Ubuntu !]]></title>
	<description><![CDATA[<code>$MT:~/Downloads/chaos$ sudo apt-get install python-numpy python-scipy python-matplotlib
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  blt fonts-lyx libjs-jquery-ui python-backports.functools-lru-cache python-cycler python-dateutil python-decorator
  python-matplotlib-data python-olefile python-pil python-subprocess32 python-tk python-tz tk8.6-blt2.5
  ttf-bitstream-vera
Suggested packages:
  blt-demo libjs-jquery-ui-docs python-cycler-doc dvipng ffmpeg inkscape ipython python-cairocffi python-configobj
  python-excelerator python-gobject python-matplotlib-doc python-nose python-qt4 python-sip python-tornado python-traits
  python-wxgtk3.0 texlive-extra-utils texlive-latex-extra ttf-staypuft python-numpy-dbg python-numpy-doc python-pil-doc
  python-pil-dbg python-scipy-doc tix python-tk-dbg
The following NEW packages will be installed:
  blt fonts-lyx libjs-jquery-ui python-backports.functools-lru-cache python-cycler python-dateutil python-decorator
  python-matplotlib python-matplotlib-data python-numpy python-olefile python-pil python-scipy python-subprocess32
  python-tk python-tz tk8.6-blt2.5 ttf-bitstream-vera
0 upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
Need to get 21.1 MB/21.1 MB of archives.
After this operation, 83.2 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 tk8.6-blt2.5 amd64 2.5.3+dfsg-4 [572 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 fonts-lyx all 2.2.4-0ubuntu0.18.04.1 [155 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 libjs-jquery-ui all 1.12.1+dfsg-5 [232 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 python-backports.functools-lru-cache all 1.4-2 [5,960 B]
Get:5 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 python-cycler all 0.10.0-1 [7,520 B]
Get:6 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 python-dateutil all 2.6.1-1 [60.6 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 python-decorator all 4.1.2-1 [9,300 B]
Get:8 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 ttf-bitstream-vera all 1.10-8 [352 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 python-matplotlib-data all 2.1.1-2ubuntu3 [3,774 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 python-tz all 2018.3-2 [31.6 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 python-numpy amd64 1:1.13.3-2ubuntu1 [1,938 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 python-subprocess32 amd64 3.2.7-3 [27.2 kB]             
Get:13 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 python-matplotlib amd64 2.1.1-2ubuntu3 [3,901 kB]       
Get:14 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 python-olefile all 0.45.1-1 [33.2 kB]                       
Get:15 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 python-pil amd64 5.1.0-1ubuntu0.2 [329 kB]          
Get:16 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 python-scipy amd64 0.19.1-2ubuntu1 [9,689 kB]           
Fetched 21.1 MB in 14s (1,460 kB/s)                                                                                      
Selecting previously unselected package tk8.6-blt2.5.
(Reading database ... 190390 files and directories currently installed.)
Preparing to unpack .../00-tk8.6-blt2.5_2.5.3+dfsg-4_amd64.deb ...
Unpacking tk8.6-blt2.5 (2.5.3+dfsg-4) ...
Selecting previously unselected package blt.
Preparing to unpack .../01-blt_2.5.3+dfsg-4_amd64.deb ...
Unpacking blt (2.5.3+dfsg-4) ...
Selecting previously unselected package fonts-lyx.
Preparing to unpack .../02-fonts-lyx_2.2.4-0ubuntu0.18.04.1_all.deb ...
Unpacking fonts-lyx (2.2.4-0ubuntu0.18.04.1) ...
Selecting previously unselected package libjs-jquery-ui.
Preparing to unpack .../03-libjs-jquery-ui_1.12.1+dfsg-5_all.deb ...
Unpacking libjs-jquery-ui (1.12.1+dfsg-5) ...
Selecting previously unselected package python-backports.functools-lru-cache.
Preparing to unpack .../04-python-backports.functools-lru-cache_1.4-2_all.deb ...
Unpacking python-backports.functools-lru-cache (1.4-2) ...
Selecting previously unselected package python-cycler.
Preparing to unpack .../05-python-cycler_0.10.0-1_all.deb ...
Unpacking python-cycler (0.10.0-1) ...
Selecting previously unselected package python-dateutil.
Preparing to unpack .../06-python-dateutil_2.6.1-1_all.deb ...
Unpacking python-dateutil (2.6.1-1) ...
Selecting previously unselected package python-decorator.
Preparing to unpack .../07-python-decorator_4.1.2-1_all.deb ...
Unpacking python-decorator (4.1.2-1) ...
Selecting previously unselected package ttf-bitstream-vera.
Preparing to unpack .../08-ttf-bitstream-vera_1.10-8_all.deb ...
Unpacking ttf-bitstream-vera (1.10-8) ...
Selecting previously unselected package python-matplotlib-data.
Preparing to unpack .../09-python-matplotlib-data_2.1.1-2ubuntu3_all.deb ...
Unpacking python-matplotlib-data (2.1.1-2ubuntu3) ...
Selecting previously unselected package python-tz.
Preparing to unpack .../10-python-tz_2018.3-2_all.deb ...
Unpacking python-tz (2018.3-2) ...
Selecting previously unselected package python-numpy.
Preparing to unpack .../11-python-numpy_1%3a1.13.3-2ubuntu1_amd64.deb ...
Unpacking python-numpy (1:1.13.3-2ubuntu1) ...
Selecting previously unselected package python-subprocess32.
Preparing to unpack .../12-python-subprocess32_3.2.7-3_amd64.deb ...
Unpacking python-subprocess32 (3.2.7-3) ...
Selecting previously unselected package python-matplotlib.
Preparing to unpack .../13-python-matplotlib_2.1.1-2ubuntu3_amd64.deb ...
Unpacking python-matplotlib (2.1.1-2ubuntu3) ...
Selecting previously unselected package python-olefile.
Preparing to unpack .../14-python-olefile_0.45.1-1_all.deb ...
Unpacking python-olefile (0.45.1-1) ...
Selecting previously unselected package python-pil:amd64.
Preparing to unpack .../15-python-pil_5.1.0-1ubuntu0.2_amd64.deb ...
Unpacking python-pil:amd64 (5.1.0-1ubuntu0.2) ...
Selecting previously unselected package python-tk.
Preparing to unpack .../16-python-tk_2.7.17-1~18.04_amd64.deb ...
Unpacking python-tk (2.7.17-1~18.04) ...
Selecting previously unselected package python-scipy.
Preparing to unpack .../17-python-scipy_0.19.1-2ubuntu1_amd64.deb ...
Unpacking python-scipy (0.19.1-2ubuntu1) ...
Setting up python-backports.functools-lru-cache (1.4-2) ...
Setting up python-tz (2018.3-2) ...
Setting up python-cycler (0.10.0-1) ...
Setting up python-numpy (1:1.13.3-2ubuntu1) ...
Setting up python-dateutil (2.6.1-1) ...
Setting up tk8.6-blt2.5 (2.5.3+dfsg-4) ...
Setting up libjs-jquery-ui (1.12.1+dfsg-5) ...
Setting up python-olefile (0.45.1-1) ...
Setting up ttf-bitstream-vera (1.10-8) ...
Setting up python-decorator (4.1.2-1) ...
Setting up python-subprocess32 (3.2.7-3) ...
Setting up python-pil:amd64 (5.1.0-1ubuntu0.2) ...
Setting up blt (2.5.3+dfsg-4) ...
Setting up fonts-lyx (2.2.4-0ubuntu0.18.04.1) ...
Setting up python-matplotlib-data (2.1.1-2ubuntu3) ...
Setting up python-scipy (0.19.1-2ubuntu1) ...
Setting up python-matplotlib (2.1.1-2ubuntu3) ...
Setting up python-tk (2.7.17-1~18.04) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for fontconfig (2.12.6-0ubuntu2) ...</code>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/41036/install-gnuplot-in-ubuntu</guid>
	<pubDate>Sat, 15 Feb 2020 05:38:06 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/41036/install-gnuplot-in-ubuntu</link>
	<title><![CDATA[Install gnuplot in Ubuntu !]]></title>
	<description><![CDATA[<code>$MT:~/Downloads/cgr-perl$ sudo apt-get install gnuplot
[sudo] password for jit: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  aglfn gnuplot-data gnuplot-qt libdouble-conversion1 libqt5core5a libqt5dbus5 libqt5gui5
  libqt5network5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libwxbase3.0-0v5 libwxgtk3.0-0v5
  libxcb-xinerama0 qt5-gtk-platformtheme qttranslations5-l10n
Suggested packages:
  gnuplot-doc qt5-image-formats-plugins qtwayland5
The following NEW packages will be installed:
  aglfn gnuplot gnuplot-data gnuplot-qt libdouble-conversion1 libqt5core5a libqt5dbus5
  libqt5gui5 libqt5network5 libqt5printsupport5 libqt5svg5 libqt5widgets5 libwxbase3.0-0v5
  libwxgtk3.0-0v5 libxcb-xinerama0 qt5-gtk-platformtheme qttranslations5-l10n
0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
Need to get 15.8 MB/15.8 MB of archives.
After this operation, 65.0 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 libdouble-conversion1 amd64 2.0.1-4ubuntu1 [33.0 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libqt5core5a amd64 5.9.5+dfsg-0ubuntu2.5 [2,036 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libqt5dbus5 amd64 5.9.5+dfsg-0ubuntu2.5 [195 kB]
Get:4 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libqt5network5 amd64 5.9.5+dfsg-0ubuntu2.5 [635 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libqt5gui5 amd64 5.9.5+dfsg-0ubuntu2.5 [2,568 kB]
Get:6 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libqt5widgets5 amd64 5.9.5+dfsg-0ubuntu2.5 [2,203 kB]
Get:7 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 libqt5svg5 amd64 5.9.5-0ubuntu1 [128 kB]
Get:8 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 aglfn all 1.7-3 [29.4 kB]
Get:9 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 gnuplot-data all 5.2.2+dfsg1-2ubuntu1 [56.7 kB]
Get:10 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 libqt5printsupport5 amd64 5.9.5+dfsg-0ubuntu2.5 [178 kB]
Get:11 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 libwxbase3.0-0v5 amd64 3.0.4+dfsg-3 [954 kB]
Get:12 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 libwxgtk3.0-0v5 amd64 3.0.4+dfsg-3 [4,182 kB]
Get:13 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 gnuplot-qt amd64 5.2.2+dfsg1-2ubuntu1 [1,013 kB]
Get:14 http://in.archive.ubuntu.com/ubuntu bionic/universe amd64 gnuplot all 5.2.2+dfsg1-2ubuntu1 [3,816 B]
Get:15 http://in.archive.ubuntu.com/ubuntu bionic-updates/main amd64 qt5-gtk-platformtheme amd64 5.9.5+dfsg-0ubuntu2.5 [117 kB]
Get:16 http://in.archive.ubuntu.com/ubuntu bionic/main amd64 qttranslations5-l10n all 5.9.5-0ubuntu1 [1,485 kB]
Fetched 15.8 MB in 9s (1,720 kB/s)                                                              
Selecting previously unselected package libdouble-conversion1:amd64.
(Reading database ... 189871 files and directories currently installed.)
Preparing to unpack .../00-libdouble-conversion1_2.0.1-4ubuntu1_amd64.deb ...
Unpacking libdouble-conversion1:amd64 (2.0.1-4ubuntu1) ...
Selecting previously unselected package libqt5core5a:amd64.
Preparing to unpack .../01-libqt5core5a_5.9.5+dfsg-0ubuntu2.5_amd64.deb ...
Unpacking libqt5core5a:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Selecting previously unselected package libqt5dbus5:amd64.
Preparing to unpack .../02-libqt5dbus5_5.9.5+dfsg-0ubuntu2.5_amd64.deb ...
Unpacking libqt5dbus5:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Selecting previously unselected package libqt5network5:amd64.
Preparing to unpack .../03-libqt5network5_5.9.5+dfsg-0ubuntu2.5_amd64.deb ...
Unpacking libqt5network5:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Selecting previously unselected package libxcb-xinerama0:amd64.
Preparing to unpack .../04-libxcb-xinerama0_1.13-2~ubuntu18.04_amd64.deb ...
Unpacking libxcb-xinerama0:amd64 (1.13-2~ubuntu18.04) ...
Selecting previously unselected package libqt5gui5:amd64.
Preparing to unpack .../05-libqt5gui5_5.9.5+dfsg-0ubuntu2.5_amd64.deb ...
Unpacking libqt5gui5:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Selecting previously unselected package libqt5widgets5:amd64.
Preparing to unpack .../06-libqt5widgets5_5.9.5+dfsg-0ubuntu2.5_amd64.deb ...
Unpacking libqt5widgets5:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Selecting previously unselected package libqt5svg5:amd64.
Preparing to unpack .../07-libqt5svg5_5.9.5-0ubuntu1_amd64.deb ...
Unpacking libqt5svg5:amd64 (5.9.5-0ubuntu1) ...
Selecting previously unselected package aglfn.
Preparing to unpack .../08-aglfn_1.7-3_all.deb ...
Unpacking aglfn (1.7-3) ...
Selecting previously unselected package gnuplot-data.
Preparing to unpack .../09-gnuplot-data_5.2.2+dfsg1-2ubuntu1_all.deb ...
Unpacking gnuplot-data (5.2.2+dfsg1-2ubuntu1) ...
Selecting previously unselected package libqt5printsupport5:amd64.
Preparing to unpack .../10-libqt5printsupport5_5.9.5+dfsg-0ubuntu2.5_amd64.deb ...
Unpacking libqt5printsupport5:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Selecting previously unselected package libwxbase3.0-0v5:amd64.
Preparing to unpack .../11-libwxbase3.0-0v5_3.0.4+dfsg-3_amd64.deb ...
Unpacking libwxbase3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Selecting previously unselected package libwxgtk3.0-0v5:amd64.
Preparing to unpack .../12-libwxgtk3.0-0v5_3.0.4+dfsg-3_amd64.deb ...
Unpacking libwxgtk3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Selecting previously unselected package gnuplot-qt.
Preparing to unpack .../13-gnuplot-qt_5.2.2+dfsg1-2ubuntu1_amd64.deb ...
Unpacking gnuplot-qt (5.2.2+dfsg1-2ubuntu1) ...
Selecting previously unselected package gnuplot.
Preparing to unpack .../14-gnuplot_5.2.2+dfsg1-2ubuntu1_all.deb ...
Unpacking gnuplot (5.2.2+dfsg1-2ubuntu1) ...
Selecting previously unselected package qt5-gtk-platformtheme:amd64.
Preparing to unpack .../15-qt5-gtk-platformtheme_5.9.5+dfsg-0ubuntu2.5_amd64.deb ...
Unpacking qt5-gtk-platformtheme:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Selecting previously unselected package qttranslations5-l10n.
Preparing to unpack .../16-qttranslations5-l10n_5.9.5-0ubuntu1_all.deb ...
Unpacking qttranslations5-l10n (5.9.5-0ubuntu1) ...
Setting up libxcb-xinerama0:amd64 (1.13-2~ubuntu18.04) ...
Setting up libdouble-conversion1:amd64 (2.0.1-4ubuntu1) ...
Setting up libwxbase3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Setting up qttranslations5-l10n (5.9.5-0ubuntu1) ...
Setting up aglfn (1.7-3) ...
Setting up libqt5core5a:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Setting up libqt5dbus5:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Setting up libqt5network5:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Setting up libwxgtk3.0-0v5:amd64 (3.0.4+dfsg-3) ...
Setting up gnuplot-data (5.2.2+dfsg1-2ubuntu1) ...
Setting up libqt5gui5:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Setting up qt5-gtk-platformtheme:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Setting up libqt5widgets5:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Setting up libqt5printsupport5:amd64 (5.9.5+dfsg-0ubuntu2.5) ...
Setting up libqt5svg5:amd64 (5.9.5-0ubuntu1) ...
Setting up gnuplot-qt (5.2.2+dfsg1-2ubuntu1) ...
update-alternatives: using /usr/bin/gnuplot-qt to provide /usr/bin/gnuplot (gnuplot) in auto mode
Setting up gnuplot (5.2.2+dfsg1-2ubuntu1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...</code>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/41025/to-convert-just-one-specific-read-group-to-fastq</guid>
	<pubDate>Fri, 14 Feb 2020 03:35:22 -0600</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/41025/to-convert-just-one-specific-read-group-to-fastq</link>
	<title><![CDATA[To convert just one specific read group to fastq]]></title>
	<description><![CDATA[<code># Stop script on error.
set -uex

# The SRR BioProject number for the sequencing data.
PROJECT=PRJNA257197

# The number of datasets to subselect from the project.
N=5

# Get the project run information.
esearch -db sra -query $PROJECT  | efetch -format runinfo &gt; runinfo.txt

# Select the first N elements. Keep only valid SRR numbers.
cat runinfo.txt | cut -f 1 -d , | grep SRR | head -$N &gt; selected.txt

# Store the data in the reads folder.
mkdir -p reads

# Download the SRR data for each
cat selected.txt | parallel fastq-dump -O reads -X 1000 --split-files {}

# Create a directory for bam files
mkdir -p bam

# Generate a separate BAM file for each SAMPLE.
cat selected.txt | parallel &quot;picard FastqToSam F1=reads/{}_1.fastq F2=reads/{}_1.fastq O=bam/{}.bam  RG=GROUP-{} LB=LIB-{} SM=SAMPLE_{} QUIET=true 2&gt;&gt; log.txt&quot;

# Merge all the BAM files into one.
samtools merge -f all.bam bam/*.bam

# Investigate the readgroups in the header.
echo &quot;&quot;
echo &quot;SAM file header:&quot;
samtools view -H all.bam

echo &quot;&quot;
echo &quot;Number of alignments with read group: GROUP-SRR1972919&quot;
samtools view -c -r GROUP-SRR1972919 all.bam

# Reverting the process is to extract reads, tagged with readgroups to paired files.
samtools fastq -t -1 all1.fq -2 all2.fq all.bam

# To convert just one specific read group.
samtools view -r GROUP-SRR1972919 all.bam | samtools fastq -t -1 all_SRR1972919_1.fq -2 all_SRR1972919_2fq -</code>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>

</channel>
</rss>