Skip to content

Commit 0aae448

Browse files
committed
Adding verbosity for vc-test-run
1 parent 0dbfd38 commit 0aae448

File tree

2 files changed

+42
-3
lines changed

2 files changed

+42
-3
lines changed

.github/workflows/variant-calling-test-run.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ jobs:
2323
unzip gatk-4.4.0.0.zip
2424
sudo ln -s $PWD/gatk-4.4.0.0/gatk /usr/local/bin/gatk
2525
26+
# Verify installations
27+
echo "=== Checking tool versions ==="
28+
java -version
29+
gatk --help
30+
samtools --version
31+
bwa
32+
2633
- name: Install Cromwell
2734
run: |
2835
wget https://github.com/broadinstitute/cromwell/releases/download/86/cromwell-86.jar

variantCalling/variantCalling.wdl

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,25 @@ task SortBed {
185185

186186
command <<<
187187
set -eo pipefail
188-
echo "Sort bed file"
188+
189+
echo "[DEBUG] Current working directory:"
190+
pwd
191+
echo "[DEBUG] Directory contents:"
192+
ls -la
193+
echo "[DEBUG] Environment variables:"
194+
env
195+
196+
echo "[DEBUG] Checking GATK installation:"
197+
which gatk || echo "GATK not found"
198+
gatk --help || echo "GATK command failed"
199+
200+
echo "[DEBUG] Sort bed file"
189201
sort -k1,1V -k2,2n -k3,3n "~{unsorted_bed}" > sorted.bed
190-
echo "Transform bed file to intervals list with Picard----------------------------------------"
202+
203+
echo "[DEBUG] Sorted bed contents:"
204+
cat sorted.bed
205+
206+
echo "[DEBUG] Running BedToIntervalList"
191207
gatk --java-options "-Xms4g" \
192208
BedToIntervalList \
193209
-I sorted.bed \
@@ -224,12 +240,28 @@ task SamToFastq {
224240

225241
command <<<
226242
set -eo pipefail
243+
244+
echo "[DEBUG] Current working directory:"
245+
pwd
246+
echo "[DEBUG] Directory contents:"
247+
ls -la
248+
echo "[DEBUG] Environment variables:"
249+
env
250+
251+
echo "[DEBUG] Checking GATK installation:"
252+
which gatk || echo "GATK not found"
253+
gatk --help || echo "GATK command failed"
254+
255+
echo "[DEBUG] Input BAM header:"
256+
samtools view -H "~{input_bam}"
257+
258+
echo "[DEBUG] Running SamToFastq"
227259
gatk --java-options "-Dsamjdk.compression_level=5 -Xms4g" \
228260
SamToFastq \
229261
--INPUT "~{input_bam}" \
230262
--FASTQ "~{base_file_name}.fastq" \
231263
--INTERLEAVE true \
232-
--INCLUDE_NON_PF_READS true
264+
--INCLUDE_NON_PF_READS true
233265
>>>
234266

235267
output {

0 commit comments

Comments
 (0)