Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
sumanm99 committed Sep 17, 2024
1 parent 5c34505 commit f168edc
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
10 changes: 5 additions & 5 deletions src/snpeff/config.vsh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ argument_groups:
required: true
- name: Outputs
arguments:
- name: --output
- name: -output
type: file
description: The output file.
example: out.vcf
Expand Down Expand Up @@ -280,10 +280,10 @@ engines:
setup:
- type: docker
run: |
touch ./var/software_versions.txt && \
version=$(snpEff -version) && \
version_trimmed=$(echo "$version" | awk '{print $1, $2}')
echo "$version_trimmed" > ./var/software_versions.txt
# touch ./var/software_versions.txt && \
# version=$(snpEff -version) && \
# version_trimmed=$(echo "$version" | awk '{print $1, $2}') && \
# echo "$version_trimmed" > ./var/software_versions.txt
runners:
- type: executable
- type: nextflow
66 changes: 33 additions & 33 deletions src/snpeff/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ meta_resources_dir="$PWD/src/snpeff"

###########################################################################

# Test 1: Run SnpEff with only required parameters
Test 1: Run SnpEff with only required parameters

mkdir test1
pushd test1 > /dev/null # cd test1 (stack)
Expand Down Expand Up @@ -45,38 +45,38 @@ echo "Test 1 succeeded."

# Test 2: Run SnpEff with a different input + options

# mkdir test2
# pushd test2 > /dev/null

# echo "> Run Test 2: different input + options"
# "$meta_executable" \
# -genome_version GRCh37.66 \
# -input "$meta_resources_dir/test_data/test.vcf" \
# -interval "$meta_resources_dir/test_data/my_annotations.bed" \
# -noStats \
# -output output.vcf

# # Check if out.vcf exists
# if [ ! -e "output.vcf" ]; then
# echo "File out.vcf does not exist."
# fi

# # These files should not exist
# files=("snpEff_genes.txt" "snpEff_summary.html")
# for file in "${files[@]}"; do
# if [ -e "$file" ]; then
# echo "Error: File $file exists."
# fi
# done

# # Check if output.vcf is empty
# if [ ! -s "output.vcf" ]; then
# echo "File output.vcf is empty."
# fi

# popd > /dev/null

# echo "Test 2 succeeded."
mkdir test2
pushd test2 > /dev/null

echo "> Run Test 2: different input + options"
"$meta_executable" \
-genome_version GRCh37.75 \
-input "$meta_resources_dir/test_data/test.vcf" \
-interval "$meta_resources_dir/test_data/my_annotations.bed" \
-noStats \
-output output.vcf

# Check if out.vcf exists
if [ ! -e "output.vcf" ]; then
echo "File out.vcf does not exist."
fi

# These files should not exist
files=("snpEff_genes.txt" "snpEff_summary.html")
for file in "${files[@]}"; do
if [ -e "$file" ]; then
echo "Error: File $file exists."
fi
done

# Check if output.vcf is empty
if [ ! -s "output.vcf" ]; then
echo "File output.vcf is empty."
fi

popd > /dev/null

echo "Test 2 succeeded."

###########################################################################

Expand Down

0 comments on commit f168edc

Please sign in to comment.