Skip to content

Commit

Permalink
Merge pull request #14 from cancerit/feature/coordinate-sort
Browse files Browse the repository at this point in the history
Adding @hd line to BAM so that the SO:unsorted tag is included in the…
  • Loading branch information
Angela Matchan committed Mar 7, 2016
2 parents 212c64d + 26504d7 commit 2420317
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions perl/lib/Sanger/CGP/Star/Implement.pm
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const my $STAR => q{ %s %s --readFilesIn %s };
const my $STAR_FUSION => q{ %s --chimeric_out_sam %s --chimeric_junction %s --ref_GTF %s --min_novel_junction_support 10 --min_alt_pct_junction 10.0 --out_prefix %s };
const my $SAMTOBAM => q{ view -bS %s > %s };
const my $BAMSORT => q{ I=%s fixmate=1 inputformat=bam level=1 tmpfile=%s/tmp O=%s inputthreads=%s outputthreads=%s};
const my $HD_LINE => '@HD VN:1.4 SO:unsorted';

sub check_input {
my $options = shift;
Expand Down Expand Up @@ -332,6 +333,7 @@ sub process_star_params {
$cfg->setval($STAR_DEFAULTS_SECTION, 'outSAMattrRGline', $options->{'rgline'}) if(defined $options->{'rgline'});
$cfg->setval($STAR_DEFAULTS_SECTION, 'outSAMheaderCommentFile', $options->{'commentfile'}) if(defined $options->{'commentfile'});
$cfg->setval($STAR_DEFAULTS_SECTION, 'quantMode', 'TranscriptomeSAM') unless(defined $fusion_mode);
$cfg->setval($STAR_DEFAULTS_SECTION, 'outSAMheaderHD', $HD_LINE);

my @star_command;
my @star_defaults = $cfg->Parameters($STAR_DEFAULTS_SECTION);
Expand Down

0 comments on commit 2420317

Please sign in to comment.