Skip to content
Snippets Groups Projects
Unverified Commit 7f5cf166 authored by Ruben Vorderman's avatar Ruben Vorderman Committed by GitHub
Browse files

Merge pull request #299 from biowdl/sasc2164

Add format parameter to macs2
parents c5cfd2f5 868f3617
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,8 @@ jobs:
run: echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Cache conda environment
uses: actions/cache@v2.1.7
# Use an always upload cache to prevent solving conda environment again and again on failing linting.
uses: pat-s/always-upload-cache@v2.1.5
env:
# Increase this value to manually invalidate the cache
CACHE_NUMBER: 0
......@@ -65,29 +66,28 @@ jobs:
# Only check files that have changed from the base reference.
# Womtool validate checks very slowly, so this saves a lot of time.
run: |
bash -c "
for WDL_FILE in $(git diff --name-only origin/${{github.base_ref}} | grep -E '*.wdl$'); do
womtool validate $WDL_FILE
done
"
set -x
for WDL_FILE in $(git diff --name-only origin/${{github.base_ref}} | grep -E '*.wdl$'); do
womtool validate $WDL_FILE
done
- name: run miniwdl check
run: bash -c 'miniwdl check $(git ls-files *.wdl)'
run: |
set -x
bash -c 'miniwdl check $(git ls-files *.wdl)'
- name: Check copyright headers
run: |
bash -c '
for WDL_FILE in $(git diff --name-only origin/${{github.base_ref}} | grep -E '*.wdl$'); do
grep Copyright $WDL_FILE || bash -c "echo No copyright header in $WDL_FILE && exit 1"
done
'
set -x
for WDL_FILE in $(git diff --name-only origin/${{github.base_ref}} | grep -E '*.wdl$'); do
grep Copyright $WDL_FILE || bash -c "echo No copyright header in $WDL_FILE && exit 1"
done
- name: Check parameter_meta for inputs
run: |
bash -c "
for WDL_FILE in $(git diff --name-only origin/${{github.base_ref}} | grep -E '*.wdl$'); do
wdl-aid --strict $WDL_FILE > /dev/null 2> wdl-aid_stderr ||
if grep -z 'ValueError: Missing parameter_meta for inputs:' wdl-aid_stderr
then
exit 1
fi
done
"
set -x
for WDL_FILE in $(git diff --name-only origin/${{github.base_ref}} | grep -E '*.wdl$'); do
wdl-aid --strict $WDL_FILE > /dev/null 2> wdl-aid_stderr ||
if grep -z 'ValueError: Missing parameter_meta for inputs:' wdl-aid_stderr
then
exit 1
fi
done
......@@ -28,6 +28,7 @@ task PeakCalling {
Array[File] controlBamsIndex
String outDir = "macs2"
String sampleName
String format = "AUTO"
Boolean nomodel = false
Int timeMinutes = 600 # Default to 10 hours
String memory = "8G"
......@@ -41,6 +42,7 @@ task PeakCalling {
~{true="--control" false="" length(controlBams) > 0} ~{sep = ' ' controlBams} \
--outdir ~{outDir} \
--name ~{sampleName} \
-f ~{format} \
~{true='--nomodel' false='' nomodel}
}
......@@ -65,6 +67,6 @@ task PeakCalling {
memory: {description: "The amount of memory this job will use.", category: "advanced"}
timeMinutes: {description: "The maximum amount of time the job will run in minutes.", category: "advanced"}
dockerImage: {description: "The docker image used for this task. Changing this may result in errors which the developers may choose not to address.", category: "advanced"}
format: {description: "Which format to use. Use BAMPE for paired-end reads.", category: "common"}
}
}
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