Skip to content

Commit

Permalink
default outfile
Browse files Browse the repository at this point in the history
  • Loading branch information
daisieh committed Mar 18, 2015
1 parent 69b2660 commit 6d75dd0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions converting/gb_to_fasta.pl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
}

my $gbdata = parse_genbank($gbfile);
if ($outfile eq "") {
$outfile = "$gbfile.fasta";
}

open FH, ">", $outfile or die "couldn't create output file $outfile";
print FH ">" . get_name() . "\n" . get_sequence() . "\n";
Expand Down

0 comments on commit 6d75dd0

Please sign in to comment.