Skip to content

Commit

Permalink
Add CITATION file to default outputs
Browse files Browse the repository at this point in the history
Related to #2
  • Loading branch information
iimog committed Nov 12, 2018
1 parent 232906c commit 72c6c43
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions bin/reference_db_creator.pl
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ =head1 CODE
# TODO #10
#$reference_db_creator->write_summary_statistics();
$reference_db_creator->create_krona_summary();
$reference_db_creator->add_citation_file();

sub logfile{
return "$opt_outdir/reference_db_creator.log";
Expand Down
7 changes: 7 additions & 0 deletions lib/ReferenceDbCreator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package ReferenceDbCreator;
use Log::Log4perl qw(:no_extra_logdie_message);
use File::Path qw(make_path);
use NCBI::Taxonomy;
use FindBin;

our $VERSION = '0.0.1';

Expand Down Expand Up @@ -237,6 +238,12 @@ sub create_krona_summary{
$self->run_command($cmd, $msg);
}

sub add_citation_file{
my $self = shift;
my $outdir = $self->{outdir};
$self->run_command("cp $FindBin::RealBin/../CITATION $outdir/", "Add CITATION file to output directory");
}

sub run_command{
my $self = shift;
my $cmd = shift;
Expand Down

0 comments on commit 72c6c43

Please sign in to comment.