[ create a new paste ] login | about

Link: http://codepad.org/30ZWgLMI    [ raw code | fork ]

Perl, pasted on May 25:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl 

use strict;

use warnings;

use Bio::SeqIO;

my $seqin = Bio::SeqIO->new(-file     => 'nr',
                                -format => 'fasta');
my $seqout = Bio::SeqIO->new(-file   => ">mini_nr",
                                 -format => 'fasta');

# write each entry in the input file to the output file
my $i = 0;
while ($i < 1000) {
	my $inseq = $seqin->next_seq
        $seqout->write_seq($inseq);
	$i++;
}
    exit;


Create a new paste based on this one


Comments: