bioperl / bioperl-live

Core BioPerl 1.x code
http://bioperl.org
299 stars 182 forks source link

Could Bio::DB::Fasta support gzipped FASTA? #393

Open Tong-Chen opened 2 months ago

Tong-Chen commented 2 months ago

Could Bio::DB::Fasta support gzipped FASTA or file handler?

open(my $FASTA_INPUT_FH, "zcat $opt_fastafile |") or die "gunzip $opt_fastafile: $!";   
my $db = Bio::DB::Fasta->new($FASTA_INPUT_FH);

Best,

Tong Chen