File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -60,10 +60,6 @@ sub execute {
60
60
push @row , ' ' ;
61
61
}
62
62
63
- if ($strain -> {systematic_name }) {
64
- push @row ,$self -> trim($strain -> {systematic_name });
65
- }
66
-
67
63
my $s = join ( " \t " , @row );
68
64
$io -> {strain }-> write ( $s . " \n " );
69
65
$stats -> {strain } = $stats -> {strain } + 1;
@@ -370,6 +366,12 @@ sub execute {
370
366
$stats -> {props } = $stats -> {props } + 1;
371
367
}
372
368
}
369
+ if ( $strain -> {systematic_name } ) {
370
+ push @data ,
371
+ sprintf ( " %s \t systematic name\t %s " ,
372
+ $self -> trim( $strain -> {systematic_name } ) );
373
+ $stats -> {props } = $stats -> {props } + 1;
374
+ }
373
375
my $outstr = join ( " \n " , @data );
374
376
$io -> {props }-> write ( $outstr . " \n " ) if $outstr ;
375
377
}
@@ -429,8 +431,7 @@ sub _create_files {
429
431
. " folder" );
430
432
431
433
for my $data_type ( @{ $self -> data } ) {
432
- my $file_obj
433
- = IO::File-> new(
434
+ my $file_obj = IO::File-> new(
434
435
$self -> output_dir . " /strain_" . $data_type . " .tsv" , ' w' );
435
436
$io -> {$data_type } = $file_obj ;
436
437
$stats -> {$data_type } = 0;
You can’t perform that action at this time.
0 commit comments