Skip to content

Commit

Permalink
Merge pull request #5 from andrewjpage/master
Browse files Browse the repository at this point in the history
temp directory type
  • Loading branch information
andrewjpage committed Apr 3, 2013
2 parents 88bd909 + 2f9a6f8 commit f4cbc8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Bio/AutomatedAnnotation.pm
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Automated annotation of assemblies.
use Moose;
use File::Basename;
use Cwd;
use File::Temp;
use Bio::AutomatedAnnotation::Prokka;

has 'sample_name' => ( is => 'ro', isa => 'Str', required => 1 );
Expand All @@ -36,7 +37,7 @@ has 'accession_number' => ( is => 'ro', isa => 'Maybe[Str]' );

has '_annotation_pipeline_class' =>
( is => 'ro', isa => 'Str', lazy => 1, builder => '_build__annotation_pipeline_class' );
has '_temp_directory_obj' => ( is => 'ro', isa => 'Str', lazy => 1, builder => '_build__temp_directory_obj' );
has '_temp_directory_obj' => ( is => 'ro', isa => 'File::Temp::Dir', lazy => 1, builder => '_build__temp_directory_obj' );
has '_temp_directory_name' => ( is => 'ro', isa => 'Str', lazy => 1, builder => '_build__temp_directory_name' );

sub _build__temp_directory_obj {
Expand Down
1 change: 1 addition & 0 deletions t/Bio/AutomatedAnnotation.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ ok( $obj = Bio::AutomatedAnnotation->new(
), 'initialise obj an accession number');

is($obj->_contig_uniq_id,'Accession456', 'Accession should be used if its provided' );
ok($obj->_temp_directory_name,'Get a temp directory');


done_testing();

0 comments on commit f4cbc8d

Please sign in to comment.