Skip to content

Commit

Permalink
Fix tabs for empty MAF columns before newline
Browse files Browse the repository at this point in the history
  • Loading branch information
ckandoth committed Feb 8, 2018
1 parent ac72508 commit 1b16b35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vcf2maf.pl
Expand Up @@ -839,7 +839,7 @@ sub GetBiotypePriority {

# If there are additional INFO data to add, then add those
foreach my $info_col ( @addl_info_cols ) {
$maf_line{$info_col} = ( $info{$info_col} ? $info{$info_col} : "" );
$maf_line{$info_col} = ( defined $info{$info_col} ? $info{$info_col} : "" );
}

# If this is an SV, pair up gene names from separate lines to backfill the Fusion column later
Expand Down Expand Up @@ -882,7 +882,7 @@ sub GetBiotypePriority {
}
else {
# Write the gene-pair name into the Fusion column if it was backfilled earlier
my @cols = split( /\t/, $line );
my @cols = split( /\t/, $line, -1 );
my $sv_key = $cols[$var_id_idx] . "-" . $cols[$tid_idx];
$cols[$fusion_idx] = $sv_pair{$sv_key} if( $sv_pair{$sv_key} );
$out_maf_fh->print( join( "\t", @cols ) . "\n" );
Expand Down

0 comments on commit 1b16b35

Please sign in to comment.