<?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=370</link>
	<atom:link href="https://bioinformaticsonline.com/snippets?offset=370" rel="self" type="application/rss+xml" />
	<description><![CDATA[]]></description>
	
	<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/34043/create-a-heatmap-with-r</guid>
	<pubDate>Mon, 31 Jul 2017 08:45:58 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/34043/create-a-heatmap-with-r</link>
	<title><![CDATA[Create a heatmap with R]]></title>
	<description><![CDATA[<code>bio &lt;- read.csv(&quot;ppg2008.csv&quot;, sep=&quot;,&quot;)

bio &lt;- bio[order(bio$PTS),]
row.names(bio) &lt;- bio$Name
bio &lt;- bio[,2:20]

bio_matrix &lt;- data.matrix(bio)
bio_heatmap &lt;- heatmap(bio_matrix, Rowv=NA, Colv=NA, col = brewer.pal(9, &quot;Blues&quot;), scale=&quot;column&quot;, margins=c(5,10))


##
#Sample DATA
#Name  ,G,MIN,PTS,FGM,FGA,FGP,FTM,FTA,FTP,3PM,3PA,3PP,ORB,DRB,TRB,AST,STL,BLK,TO,PF
#Genome1 ,79,38.6,30.2,10.8,22,0.491,7.5,9.8,0.765,1.1,3.5,0.317,1.1,3.9,5,7.5,2.2,1.3,3.4,2.3
#Genome2 ,81,37.7,28.4,9.7,19.9,0.489,7.3,9.4,0.78,1.6,4.7,0.344,1.3,6.3,7.6,7.2,1.7,1.1,3,1.7
#Genome3,82,36.2,26.8,9.8,20.9,0.467,5.9,6.9,0.856,1.4,4.1,0.351,1.1,4.1,5.2,4.9,1.5,0.5,2.6,2.3


library(ggplot2)
bio &lt;- read.csv(&quot;seeTNF_Final&quot;, sep=&quot;\t&quot;)
row.names(bio) &lt;- bio$Contig
bio &lt;- bio[,2:256]
data=as.matrix(bio)
head(data)
#Rcolorbrewer palette
library(RColorBrewer)
coul = colorRampPalette(brewer.pal(8, &quot;PiYG&quot;))(25)
#heatmap(data)

# Use &#039;scale&#039; to normalize (right)
heatmap(data, scale=&quot;column&quot;)
#heatmap(data, scale=&quot;column&quot;, col = coul)</code>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/33843/construct-a-heatmap-with-perl</guid>
	<pubDate>Fri, 07 Jul 2017 04:35:13 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/33843/construct-a-heatmap-with-perl</link>
	<title><![CDATA[Construct a heatmap with perl]]></title>
	<description><![CDATA[<code>#!/bin/env perl
use strict;
use warnings;

use Imager::Heatmap;

my $hmap = Imager::Heatmap-&gt;new(
    xsize  =&gt; 640,        # Image width
    ysize  =&gt; 480,        # Image height
    xsigma =&gt; 10,         # Sigma value of X-direction
    ysigma =&gt; 10,         # Sigma value of Y-direction
);

# @point_datas should be: ( [ x1, y1, weight1 ], [ x2, y2, weight2 ] ... )
my @point_datas = ( [ 10, 20, 50 ], [ 20, 40, 70 ] );

# Add point datas to construct density matrix
$hmap-&gt;insert_datas(@point_datas); 

# After adding datas, get heatmap as Imager instance.
my $img = $hmap-&gt;draw;

# create png file in current directory
$img-&gt;write( file =&gt; &#039;./hm.png&#039; );</code>]]></description>
	<dc:creator>Neel</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/33588/format-the-fasta-header</guid>
	<pubDate>Sun, 18 Jun 2017 14:12:39 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/33588/format-the-fasta-header</link>
	<title><![CDATA[Format the fasta header]]></title>
	<description><![CDATA[<code>#!usr/bin/perl
    use strict;
    use warnings;

    my %id2seq = ();
    my $id = 0;
    open F,&quot;$ARGV[0]&quot;,or die $!;
    while(&lt;F&gt;){
        chomp;
        if($_ =~ /^&gt;(.+)/){
		$id++;
		s/\[//g; s/\]//g;
		my @val = split /\s+/, $_;
		my @newval=@val;
		shift @newval;
		print &quot;&gt;$id [ gene=$val[0] ] [ protein=@newval ]\n&quot;;
            #$id = $1;
        }else{
            print &quot;$_\n&quot;;
        }
    }
close F;</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/33547/compress-and-decompress-the-sequence-with-perl</guid>
	<pubDate>Fri, 16 Jun 2017 09:39:26 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/33547/compress-and-decompress-the-sequence-with-perl</link>
	<title><![CDATA[Compress and decompress the sequence with perl]]></title>
	<description><![CDATA[<code>use strict;
use warnings;

my @char;
while (&lt;DATA&gt;) {
@char = split //;
}

comp(\@char);
#---------------------
my $com= &quot;r0a3m4a4j0&quot;;
my @com = split //, $com;
dcomp (\@com);

#dcomp sub here
sub dcomp {
my ($com_ref)=@_;
my @com=@$com_ref;
my $car;
for (my $aa=0; $aa&lt;=$#com; $aa++) {
	if ($com[$aa]!~ /\D/) { print &quot;$car&quot; x ($com[$aa]);} else {print &quot;$com[$aa]&quot;; $car = &quot;$com[$aa]&quot;;}
}
print &quot;\n&quot;;
}

#comp sub here
sub comp {
my ($char_ref)=@_;
my @char=@$char_ref;
my $cnt=&quot;&quot;;
for (my $aa=0; $aa&lt;=$#char; $aa++) {
	if ($char[$aa+1]) {
		if ($char[$aa] eq $char[$aa+1]) { $cnt++; }  
		elsif ($cnt) { print &quot;$char[$aa]&quot;.&quot;$cnt&quot;; undef $cnt;}
		else {print &quot;$char[$aa]&quot;;}
	}
}
print &quot;\n&quot;;
}
__DATA__
raaaammmmmaaaaaj</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/33511/extract-fasta-sequence-from-a-multifasta-file-with-fasta-header-ids</guid>
	<pubDate>Tue, 13 Jun 2017 07:49:37 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/33511/extract-fasta-sequence-from-a-multifasta-file-with-fasta-header-ids</link>
	<title><![CDATA[Extract fasta sequence from a multifasta file with fasta header Ids]]></title>
	<description><![CDATA[<code>#!/usr/bin/perl

use strict;
use warnings;

#Usage: perl &lt;list_of_ids_one_per_line&gt; &lt;fasta&gt; &lt;outfile&gt;

my $list = shift @ARGV;
my $fasta = shift @ARGV;
my $out = shift @ARGV;
my %select;

open LIST, &quot;$list&quot; or die;
while (&lt;LIST&gt;) {
    chomp;
    s/&gt;//g;
    $select{$_} = 1;
}
close LIST;

$/ = &quot;\n&gt;&quot;;
open OUT, &quot;&gt;$out&quot; or die;
open FASTA, &quot;$fasta&quot; or die;
while (&lt;FASTA&gt;) {
    s/&gt;//g;
    my ($id) = split (/\n/, $_);
    print OUT &quot;&gt;$_&quot; if (defined $select{$id});
}
close FASTA;
close OUT;</code>]]></description>
	<dc:creator>Abhimanyu Singh</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/33471/download-the-gff-files-from-ncbi-using-bash-scriptcommand</guid>
	<pubDate>Thu, 08 Jun 2017 08:17:11 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/33471/download-the-gff-files-from-ncbi-using-bash-scriptcommand</link>
	<title><![CDATA[Download the gff files from NCBI using bash script/command]]></title>
	<description><![CDATA[<code>#!/bin/bash

# Download the genome from NCBI using command

# Create a Directory
mkdir genome_gff
cd genome_gff

# Look for genome assembly summary and extract the URL
# USER need to provide the right summary file to curl  
# Commentline if you are not interested in that genome set
# -for fungi
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/fungi/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.gff.gz|&#039; &gt; genomic_file_fungi

# -for bacteria
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/genbank/bacteria/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCA_.+)|\1\2/\2_genomic.gff.gz|&#039; &gt; genomic_file_bacteria

# -for plant 
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/plant/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.gff.gz|&#039; &gt; genomic_file_plant 

# -for archaea
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/archaea/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.gff.gz|&#039; &gt; genomic_file_archaea

# -for protozoa
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/protozoa/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.gff.gz|&#039; &gt; genomic_file_protozoa

# -for vertebrate_mammalian
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/vertebrate_mammalian/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.gff.gz|&#039; &gt; genomic_file_vertebrate_mammalian

# -for vertebrate_other
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/vertebrate_other/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.gff.gz|&#039; &gt; genomic_file_vertebrate_other

# -for invertebrate
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/invertebrate/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.gff.gz|&#039; &gt; genomic_file_invertebrate

# -for viral
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/viral/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.gff.gz|&#039; &gt; genomic_file_viral

#Read the uerl from file and download

FILES=$(pwd)/*
for f in $FILES
do
  echo &quot;Processing $f file...&quot;
  filename=$(basename &quot;$f&quot;)
  extension=&quot;${filename##*.}&quot;
  filename=&quot;${filename%.*}&quot;
  # Create a directory with appending G
  mkdir &quot;GFF$filename&quot;
  cd &quot;GFF$filename&quot;
  # take action on each file. $f store current file name
  head -n 4 $f &gt; $f.head
  wget --input $f.head
  gunzip *.gz
  #cat $f
  cd ..
done</code>]]></description>
	<dc:creator>Rahul Nayak</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/33451/read-a-tab-delimited-file-and-search-with-perl</guid>
	<pubDate>Tue, 06 Jun 2017 09:18:05 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/33451/read-a-tab-delimited-file-and-search-with-perl</link>
	<title><![CDATA[Read a tab delimited file and search with perl]]></title>
	<description><![CDATA[<code>use strict;
use warnings;
use Data::Dumper;
use Text::CSV;
use IO::Handle;

my $file = &quot;/home/urbe/Tools/Alienomics_v0.1/Alienomics/output/intermediate_files/rRNA/refGene.megablast&quot;;
open my $fh, &quot;&lt;&quot;, $file or die &quot;$file: $!&quot;;
my $csv = Text::CSV-&gt;new ({
      sep_char=&gt;&quot;\t&quot;,
      binary    =&gt; 1, # Allow special character. Always set this
      auto_diag =&gt; 1, # Report irregularities immediately
      });

my $fh = IO::Handle-&gt;new_from_fd( $fh, &#039;r&#039; );

while ( not $fh-&gt;eof ) {
  my $row = $csv-&gt;getline( $fh );
print &quot;$row-&gt;[0]\n&quot;;
  warn Dumper $row; # To see the structure
}</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/33328/unzip-all-the-genome-file-and-remove-all-fasta-header-except-first-one</guid>
	<pubDate>Tue, 30 May 2017 10:34:25 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/33328/unzip-all-the-genome-file-and-remove-all-fasta-header-except-first-one</link>
	<title><![CDATA[Unzip all the genome file and remove all fasta header except first one]]></title>
	<description><![CDATA[<code>#!/bin/bash

gzip -d *.gz

FILES=$(pwd)/*
for f in $FILES
do
  echo &quot;Processing $f file...&quot;
  	if [[ $f =~ \.fna$ ]];
	then awk &#039; /^&gt;/ &amp;&amp; FNR &gt; 1 {next} {print $0} &#039; $f | sed &#039;/^&gt;/{s/ /_/g}&#039; &gt; $f.fa 
  	#then sed &#039;1!{/^\&gt;/d;}&#039; $f &gt; $f.fa
  	else echo &quot;this file is not right file&quot;
  	fi
  	#cat $f
done</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/33321/download-the-genome-from-ncbi-using-bash-scriptcommand</guid>
	<pubDate>Tue, 30 May 2017 08:11:33 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/33321/download-the-genome-from-ncbi-using-bash-scriptcommand</link>
	<title><![CDATA[Download the genome from NCBI using bash script/command]]></title>
	<description><![CDATA[<code>#!/bin/bash

# Download the genome from NCBI using command

# Create a Directory
mkdir genome
cd genome

# Look for genome assembly summary and extract the URL
# USER need to provide the right summary file to curl  
# Commentline if you are not interested in that genome set
# -for fungi
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/fungi/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.fna.gz|&#039; &gt; genomic_file_fungi

# -for bacteria
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/genbank/bacteria/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.fna.gz|&#039; &gt; genomic_file_bacteria

# -for plant 
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/plant/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.fna.gz|&#039; &gt; genomic_file_plant 

# -for archaea
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/archaea/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.fna.gz|&#039; &gt; genomic_file_archaea

# -for protozoa
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/protozoa/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.fna.gz|&#039; &gt; genomic_file_protozoa

# -for vertebrate_mammalian
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/vertebrate_mammalian/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.fna.gz|&#039; &gt; genomic_file_vertebrate_mammalian

# -for vertebrate_other
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/vertebrate_other/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.fna.gz|&#039; &gt; genomic_file_vertebrate_other

# -for invertebrate
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/invertebrate/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.fna.gz|&#039; &gt; genomic_file_invertebrate

# -for viral
curl &#039;ftp://ftp.ncbi.nlm.nih.gov/genomes/refseq/viral/assembly_summary.txt&#039; | awk &#039;{FS=&quot;\t&quot;} !/^#/ {print $20} &#039; | sed -r &#039;s|(ftp://ftp.ncbi.nlm.nih.gov/genomes/all/.+/)(GCF_.+)|\1\2/\2_genomic.fna.gz|&#039; &gt; genomic_file_viral

#Read the url from file and download

FILES=$(pwd)/*
for f in $FILES
do
  echo &quot;Processing $f file...&quot;
  filename=$(basename &quot;$f&quot;)
  extension=&quot;${filename##*.}&quot;
  filename=&quot;${filename%.*}&quot;
  # Create a directory with appending G
  mkdir &quot;G$filename&quot;
  cd &quot;G$filename&quot;
  # take action on each file. $f store current file name
  wget --input $f
  #cat $f
  cd ..
done

#Reference
#ftp://ftp.ncbi.nlm.nih.gov/pub/factsheets/HowTo_Downloading_Genomic_Data.pdf</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>
<item>
	<guid isPermaLink="true">https://bioinformaticsonline.com/snippets/view/33316/extract-fasta-sequence-from-a-multifasta-file-with-coordinates</guid>
	<pubDate>Tue, 30 May 2017 05:35:07 -0500</pubDate>
	<link>https://bioinformaticsonline.com/snippets/view/33316/extract-fasta-sequence-from-a-multifasta-file-with-coordinates</link>
	<title><![CDATA[Extract fasta sequence from a multifasta file with coordinates]]></title>
	<description><![CDATA[<code>#!/usr/bin/perl

use Bio::DB::Fasta;

#USAGE
perl extractFASTAwithSIZE.pl finalSample_filtered.fa 0 1000 &gt; aaaaaa.fa

my $fastaFile = shift;
my $querySizeST = shift;
my $querySizeED = shift;

my $db = Bio::DB::Fasta-&gt;new( $fastaFile );
my @ids = $db-&gt;get_all_primary_ids;

foreach my $id (@ids) {
    my $sequence = $db-&gt;seq($id, $querySizeST =&gt; $querySizeED);
    if  (!defined( $sequence )) {
            die &quot;Sequence $seq not found. \n&quot; 
    }   
    print &quot;&gt;$id\n&quot;, &quot;$sequence\n&quot;;
}

__END__

use Bio::DB::Fasta;

  # Create database from a directory of Fasta files
  my $db       = Bio::DB::Fasta-&gt;new(&#039;/path/to/fasta/files/&#039;);
  my @ids      = $db-&gt;get_all_primary_ids;

  # Simple access
  my $seqstr   = $db-&gt;seq(&#039;CHROMOSOME_I&#039;, 4_000_000 =&gt; 4_100_000);
  my $revseq   = $db-&gt;seq(&#039;CHROMOSOME_I&#039;, 4_100_000 =&gt; 4_000_000);
  my $length   = $db-&gt;length(&#039;CHROMOSOME_I&#039;);
  my $header   = $db-&gt;header(&#039;CHROMOSOME_I&#039;);
  my $alphabet = $db-&gt;alphabet(&#039;CHROMOSOME_I&#039;);

  # Access to sequence objects. See Bio::PrimarySeqI.
  my $seq     = $db-&gt;get_Seq_by_id(&#039;CHROMOSOME_I&#039;);
  my $seqstr  = $seq-&gt;seq;
  my $subseq  = $seq-&gt;subseq(4_000_000 =&gt; 4_100_000);
  my $trunc   = $seq-&gt;trunc(4_000_000 =&gt; 4_100_000);
  my $length  = $seq-&gt;length;

  # Loop through sequence objects
  my $stream  = $db-&gt;get_PrimarySeq_stream;
  while (my $seq = $stream-&gt;next_seq) {
    # Bio::PrimarySeqI stuff
  }

  # Filehandle access
  my $fh = Bio::DB::Fasta-&gt;newFh(&#039;/path/to/fasta/files/&#039;);
  while (my $seq = &lt;$fh&gt;) {
    # Bio::PrimarySeqI stuff
  }

  # Tied hash access
  tie %sequences,&#039;Bio::DB::Fasta&#039;,&#039;/path/to/fasta/files/&#039;;
  print $sequences{&#039;CHROMOSOME_I:1,20000&#039;};</code>]]></description>
	<dc:creator>Jit</dc:creator>
</item>

</channel>
</rss>