Skip to content

Commit d2e04c4

Browse files
committed
Systematic name gets exported as props
1 parent d10943f commit d2e04c4

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lib/Modware/Dump/Command/dictystrain.pm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ sub execute {
6060
push @row, '';
6161
}
6262

63-
if ($strain->{systematic_name}) {
64-
push @row,$self->trim($strain->{systematic_name});
65-
}
66-
6763
my $s = join( "\t", @row );
6864
$io->{strain}->write( $s . "\n" );
6965
$stats->{strain} = $stats->{strain} + 1;
@@ -370,6 +366,12 @@ sub execute {
370366
$stats->{props} = $stats->{props} + 1;
371367
}
372368
}
369+
if ( $strain->{systematic_name} ) {
370+
push @data,
371+
sprintf( "%s\tsystematic name\t%s",
372+
$self->trim( $strain->{systematic_name} ) );
373+
$stats->{props} = $stats->{props} + 1;
374+
}
373375
my $outstr = join( "\n", @data );
374376
$io->{props}->write( $outstr . "\n" ) if $outstr;
375377
}
@@ -429,8 +431,7 @@ sub _create_files {
429431
. " folder" );
430432

431433
for my $data_type ( @{ $self->data } ) {
432-
my $file_obj
433-
= IO::File->new(
434+
my $file_obj = IO::File->new(
434435
$self->output_dir . "/strain_" . $data_type . ".tsv", 'w' );
435436
$io->{$data_type} = $file_obj;
436437
$stats->{$data_type} = 0;

0 commit comments

Comments
 (0)