Skip to content
Snippets Groups Projects
Unverified Commit 3edb2f05 authored by Jasper Boom's avatar Jasper Boom Committed by GitHub
Browse files

Merge pull request #181 from biowdl/BIOWDL-331

BIOWDL-331: Fix Centrifuge tests, where sometimes the index files could still not…
parents 5b6ac00d 7ba4c125
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ that users understand how the changes affect the new version.
version 2.2.0-dev
---------------------------
+ Centrifuge: Fix Centrifuge tests, where sometimes the index files could still not be located.
+ Update parameter_meta for TALON, Centrifuge and Minimap2.
+ Centrifuge: Fix issue where Centrifuge Inspect did not get the correct index files location.
+ Add `minimumContigLength` input to PlotDenoisedCopyRatios and PlotModeledSegments.
......
......@@ -112,9 +112,14 @@ task Classify {
Map[String, String] inputFormatOptions = {"fastq": "-q", "fasta": "-f", "qseq": "--qseq", "raw": "-r", "sequences": "-c"}
command {
command <<<
set -e
mkdir -p "$(dirname ~{outputPrefix})"
indexBasename="$(basename ~{sub(indexFiles[0], "\.[0-9]\.cf", "")})"
for file in ~{sep=" " indexFiles}
do
ln ${file} $PWD/"$(basename ${file})"
done
centrifuge \
~{inputFormatOptions[inputFormat]} \
~{true="--phred64" false="--phred33" phred64} \
......@@ -126,12 +131,12 @@ task Classify {
~{"-k " + reportMaxDistinct} \
~{"--host-taxids " + hostTaxIDs} \
~{"--exclude-taxids " + excludeTaxIDs} \
~{"-x " + sub(indexFiles[0], "\.[0-9]\.cf", "")} \
-x $PWD/${indexBasename} \
~{true="-1" false="-U" length(read2) > 0} ~{sep="," read1} \
~{true="-2" false="" length(read2) > 0} ~{sep="," read2} \
~{"-S " + outputPrefix + "_classification.tsv"} \
~{"--report-file " + outputPrefix + "_output_report.tsv"}
}
>>>
output {
File outputMetrics = outputPrefix + "_alignment_metrics.tsv"
......@@ -184,15 +189,20 @@ task Inspect {
Map[String, String] outputOptions = {"fasta": "", "names": "--names", "summary": "--summary", "conversionTable": "--conversion-table", "taxonomyTree": "--taxonomy-tree", "nameTable": "--name-table", "sizeTable": "--size-table"}
command {
command <<<
set -e
mkdir -p "$(dirname ~{outputPrefix})"
indexBasename="$(basename ~{sub(indexFiles[0], "\.[0-9]\.cf", "")})"
for file in ~{sep=" " indexFiles}
do
ln ${file} $PWD/"$(basename ${file})"
done
centrifuge-inspect \
~{outputOptions[printOption]} \
~{"--across " + across} \
~{sub(indexFiles[0], "\.[0-9]\.cf", "")} \
$PWD/${indexBasename} \
> ~{outputPrefix + "/" + printOption}
}
>>>
output {
File outputInspect = outputPrefix + "/" + printOption
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment