Skip to content
Snippets Groups Projects
Commit ff47f07c authored by JasperBoom's avatar JasperBoom
Browse files

Update lima.

parent 02f71e17
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,8 @@ that users understand how the changes affect the new version. ...@@ -10,6 +10,8 @@ that users understand how the changes affect the new version.
version 5.0.0-dev version 5.0.0-dev
--------------------------- ---------------------------
+ mergePacBio: Rename `mergedReport` to `outputPathMergedReport`.
+ Lima: Fix copy commands.
+ Update Lima to version 2.0.0. + Update Lima to version 2.0.0.
+ Update IsoSeq3 to version 3.4.0. + Update IsoSeq3 to version 3.4.0.
+ Update samtools to version 1.11. + Update samtools to version 1.11.
......
...@@ -56,7 +56,7 @@ task Lima { ...@@ -56,7 +56,7 @@ task Lima {
Map[String, String] libraryDesignOptions = {"same": "--same", "different": "--different", "neighbors": "--neighbors"} Map[String, String] libraryDesignOptions = {"same": "--same", "different": "--different", "neighbors": "--neighbors"}
command { command <<<
set -e set -e
mkdir -p "$(dirname ~{outputPrefix})" mkdir -p "$(dirname ~{outputPrefix})"
lima \ lima \
...@@ -83,33 +83,26 @@ task Lima { ...@@ -83,33 +83,26 @@ task Lima {
~{true="--peek-guess" false="" peekGuess} \ ~{true="--peek-guess" false="" peekGuess} \
--log-level ~{logLevel} \ --log-level ~{logLevel} \
--num-threads ~{threads} \ --num-threads ~{threads} \
~{"--log-file " + outputPrefix + ".stderr.log"} \ ~{"--log-file " + outputPrefix + ".fl.stderr.log"} \
~{inputBamFile} \ ~{inputBamFile} \
~{barcodeFile} \ ~{barcodeFile} \
~{outputPrefix + ".bam"} ~{outputPrefix + ".fl.bam"}
# Copy the files with the default filename to the folder specified in dirName="$(dirname ~{outputPrefix})"
# outputPrefix. find "$(cd ${dirName}; pwd)" -name "*.fl.*.bam" > bamFiles.txt
if [[ -f "~{outputPrefix}.json" ]] find "$(cd ${dirName}; pwd)" -name "*.fl.*.bam.pbi" > bamIndexes.txt
then find "$(cd ${dirName}; pwd)" -name "*.fl.*.subreadset.xml" > subreadsets.txt
echo "Log files already at output location." >>>
else
cp "~{basename(outputPrefix)}.json" "~{outputPrefix}.json"
cp "~{basename(outputPrefix)}.lima.counts" "~{outputPrefix}.lima.counts"
cp "~{basename(outputPrefix)}.lima.report" "~{outputPrefix}.lima.report"
cp "~{basename(outputPrefix)}.lima.summary" "~{outputPrefix}.lima.summary"
fi
}
output { output {
Array[File] limaBam = glob("*.bam") Array[File] limaBam = read_lines("bamFiles.txt")
Array[File] limaBamIndex = glob("*.bam.pbi") Array[File] limaBamIndex = read_lines("bamIndexes.txt")
Array[File] limaXml = glob("*.subreadset.xml") Array[File] limaXml = read_lines("subreadsets.txt")
File limaStderr = outputPrefix + ".stderr.log" File limaStderr = outputPrefix + ".fl.stderr.log"
File limaJson = outputPrefix + ".json" File limaJson = outputPrefix + ".fl.json"
File limaCounts = outputPrefix + ".lima.counts" File limaCounts = outputPrefix + ".fl.lima.counts"
File limaReport = outputPrefix + ".lima.report" File limaReport = outputPrefix + ".fl.lima.report"
File limaSummary = outputPrefix + ".lima.summary" File limaSummary = outputPrefix + ".fl.lima.summary"
} }
runtime { runtime {
......
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