Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance improvement - input step #100

Open
keiranmraine opened this issue Jun 29, 2020 · 0 comments
Open

Performance improvement - input step #100

keiranmraine opened this issue Jun 29, 2020 · 0 comments

Comments

@keiranmraine
Copy link
Contributor

This section should be revised so that the "valid_seqs" are appended to the first samtools view command and filtered eariler:

my $command = _which('samtools');
$command .= ' view -F 3854 -q 6 -u '.$input;
$command .= ' | ';
$command .= _which('bedtools');
$command .= sprintf $BED_INTERSECT_V, 'stdin', $options->{'depth'};
$command .= ' | ';
$command .= _which('bamcollate2');
$command .= sprintf $BAMCOLLATE, $tmp, $index;
$command .= ' | ';
$command .= "$^X ";
$command .= _which('brassI_prep_bam.pl');
$command .= sprintf $PREP_BAM, $input.'.bas', $rg_prefix;
$command .= " -i ".join(',', valid_seqs($options));
$command .= ' | ';
$command .= _which('bamsort');
$command .= sprintf $BAMSORT, $tmp, $index, $outbam, $outbam, $outbam, $helper_threads, $helper_threads;

This has been tested previously in an abandoned branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant