From f168edca6294d61def17a3fb728b4eb52b598a09 Mon Sep 17 00:00:00 2001 From: sumanm99 Date: Tue, 17 Sep 2024 15:18:10 +0530 Subject: [PATCH] test --- src/snpeff/config.vsh.yaml | 10 +++--- src/snpeff/test.sh | 66 +++++++++++++++++++------------------- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/src/snpeff/config.vsh.yaml b/src/snpeff/config.vsh.yaml index 154a104e..e9915462 100644 --- a/src/snpeff/config.vsh.yaml +++ b/src/snpeff/config.vsh.yaml @@ -28,7 +28,7 @@ argument_groups: required: true - name: Outputs arguments: - - name: --output + - name: -output type: file description: The output file. example: out.vcf @@ -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 \ No newline at end of file diff --git a/src/snpeff/test.sh b/src/snpeff/test.sh index 9f3fc057..69ad7ed5 100644 --- a/src/snpeff/test.sh +++ b/src/snpeff/test.sh @@ -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) @@ -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." ###########################################################################