Skip to content

Commit 1b16b35

Browse files
committed
Fix tabs for empty MAF columns before newline
1 parent ac72508 commit 1b16b35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vcf2maf.pl

+2-2
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ sub GetBiotypePriority {
839839

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

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

0 commit comments

Comments
 (0)