2 use Test::More tests => 9;
3 BEGIN { use_ok('Tabix') };
6 my $t = Tabix->new(-data=>"ftp://ftp.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_03/pilot1/CEU.SRP000031.2010_03.genotypes.vcf.gz");
8 my $iter = $t->query("1", 1000000, 1100000);
11 ++$_ while ($t->read($iter));
17 { # FTP access plus FTP index
18 my $t = Tabix->new(-data=>"ftp://ftp.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_03/pilot1/CEU.SRP000031.2010_03.genotypes.vcf.gz",
19 -index=>"ftp://ftp.ncbi.nih.gov/1000genomes/ftp/pilot_data/release/2010_03/pilot1/CEU.SRP000031.2010_03.genotypes.vcf.gz.tbi");
21 my $iter = $t->query("19", 10000000, 10100000);
24 ++$_ while ($t->read($iter));