Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
UNLOCK
cwl
Commits
14481083
Commit
14481083
authored
May 18, 2022
by
Nijsse, Bart
Browse files
Merge branch 'master' of git.wur.nl:unlock/cwl
parents
bb763350
a69a7d03
Changes
2
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
14481083
tests
cwl/kraken2/kraken2-build.cwl
0 → 100644
View file @
14481083
#!/usr/bin/env cwltool
cwlVersion: v1.2
class: CommandLineTool
# hints:
# SoftwareRequirement:
# packages:
# kraken2:
# version: ["2.1.2"]
# specs: ["https://anaconda.org/bioconda/kraken2"]
# baseCommand: [ /unlock/infrastructure/binaries/kraken2-2.0.9-beta/kraken2 ]
baseCommand: ["bash","-x", "script.sh"]
label: "Kraken2 metagenomics read classification"
doc: |
Kraken2 metagenomics read classification.
Updated databases available at: https://benlangmead.github.io/aws-indexes/k2 (e.g. PlusPF-8)
Original db: https://ccb.jhu.edu/software/kraken2/index.shtml?t=downloads
requirements:
- class: InlineJavascriptRequirement
- class: InitialWorkDirRequirement
listing:
- entry: "$({class: 'Directory', listing: []})"
entryname: "kraken2_output"
writable: true
- entryname: script.sh
entry: |-
#!/bin/bash
PATH=/unlock/infrastructure/binaries/BLAST/ncbi-blast-2.13.0+/bin/:"$PATH"
chmod +x /unlock/infrastructure/binaries/kraken2/kraken2-v2.1.2/*
DBNAME=KRAKEN2_$1
threads=$2
/unlock/infrastructure/binaries/kraken2/kraken2-v2.1.2/kraken2-build --download-taxonomy --db $DBNAME
shift;shift;
for file in "$@"
do
echo "Processing $file";
/unlock/infrastructure/binaries/kraken2/kraken2-v2.1.2/kraken2-build --add-to-library $file --db $DBNAME
done
/unlock/infrastructure/binaries/kraken2/kraken2-v2.1.2/kraken2-build --threads $threads --build --db $DBNAME
inputs:
identifier:
type: string
doc: Identifier for this dataset used in this workflow
label: identifier used
inputBinding:
position: 1
threads:
type: int?
default: 1
inputBinding:
position: 2
references:
type: string[]
doc: List of genome references for kraken
inputBinding:
position: 10
outputs:
kraken2_database:
type: Directory
outputBinding:
glob: KRAKEN2_*
s:author:
- class: s:Person
s:identifier: https://orcid.org/0000-0001-8172-8981
s:email: mailto:jasper.koehorst@wur.nl
s:name: Jasper Koehorst
- class: s:Person
s:identifier: https://orcid.org/0000-0001-9524-5964
s:email: mailto:bart.nijsse@wur.nl
s:name: Bart Nijsse
s:citation: https://m-unlock.nl
s:codeRepository: https://gitlab.com/m-unlock/cwl
s:dateCreated: "2022-01-01"
s:license: https://spdx.org/licenses/Apache-2.0
s:copyrightHolder: "UNLOCK - Unlocking Microbial Potential"
$namespaces:
s: https://schema.org/
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment