Skip to content

Commit

Permalink
Fix file names and make output a required argument
Browse files Browse the repository at this point in the history
  • Loading branch information
emmarousseau committed Mar 27, 2024
1 parent c26122e commit aefe580
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/samtools/flagstat/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ argument_groups:
description: |
File containing samtools stats output.
direction: output
required: true
example: output.flagstat

resources:
Expand Down
4 changes: 2 additions & 2 deletions src/samtools/flagstat/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ echo ">>> Checking whether output is non-empty"

echo ">>> Checking whether output is correct"
diff "$meta_resources_dir/test_data/a.flagstat" "$meta_resources_dir/test_data/a_ref.flagstat" || \
(echo "Output file chr19.flagstat does not match expected output" && exit 1)
(echo "Output file ca.flagstat does not match expected output" && exit 1)

rm "$meta_resources_dir/test_data/a.flagstat"

Expand All @@ -36,7 +36,7 @@ echo ">>> Checking whether output is non-empty"

echo ">>> Checking whether output is correct"
diff "$meta_resources_dir/test_data/test.paired_end.sorted.flagstat" "$meta_resources_dir/test_data/test_ref.paired_end.sorted.flagstat" || \
(echo "Output file chr19.flagstat does not match expected output" && exit 1)
(echo "Output file test.pared_end.sorted.flagstat does not match expected output" && exit 1)

rm "$meta_resources_dir/test_data/test.paired_end.sorted.flagstat"

Expand Down

0 comments on commit aefe580

Please sign in to comment.