Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Commit

Permalink
Always run indel realign even when running from BAM
Browse files Browse the repository at this point in the history
  • Loading branch information
kduyvesteyn committed Dec 20, 2018
1 parent c6b26e3 commit 09a7848
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/HMF/Pipeline.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,16 @@ sub run {

if ($opt->{FASTQ}) {
HMF::Pipeline::Mapping::run($opt) if $opt->{MAPPING} eq "yes";
HMF::Pipeline::PostStats::run($opt) if $opt->{POSTSTATS} eq "yes";
HMF::Pipeline::Realignment::run($opt) if $opt->{INDEL_REALIGNMENT} eq "yes";

HMF::Pipeline::Functions::Metadata::linkBamArtefacts($opt);
} elsif ($opt->{BAM}) {
HMF::Pipeline::Mapping::runBamPrep($opt);
}

if (($opt->{FASTQ} and $opt->{MAPPING} eq "yes") or $opt->{BAM}) {
# KODU: Always run post stats, even if we start from BAM.
HMF::Pipeline::PostStats::run($opt) if $opt->{POSTSTATS} eq "yes" and $opt->{BAM};

# KODU: Link the BAM artifacts even when we already generated BAMs before.
HMF::Pipeline::Realignment::run($opt) if $opt->{INDEL_REALIGNMENT} eq "yes";
HMF::Pipeline::Functions::Metadata::linkBamArtefacts($opt) if $opt->{BAM};

HMF::Pipeline::PostStats::run($opt) if $opt->{POSTSTATS} eq "yes";
HMF::Pipeline::DamageEstimate::run($opt) if $opt->{DAMAGE_ESTIMATE} eq "yes";

HMF::Pipeline::Amber::run($opt) if $opt->{AMBER} eq "yes";
Expand Down

0 comments on commit 09a7848

Please sign in to comment.