Skip to content

Commit

Permalink
Update test.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tgaspe committed Aug 29, 2024
1 parent a156cfd commit ab5fe5e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/bcftools/bcftools_norm/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ echo "> Run bcftools_norm"
--output "normalized.vcf" \
--atomize \
--atom_overlaps "." \
&> /dev/null

# checks
assert_file_exists "normalized.vcf"
Expand All @@ -79,6 +80,7 @@ echo "> Run bcftools_norm with remove duplicates"
--output "normalized.vcf" \
--atomize \
--remove_duplicates 'all' \
&> /dev/null

# checks
assert_file_exists "normalized.vcf"
Expand All @@ -98,6 +100,7 @@ echo "> Run bcftools_norm with check reference and fasta reference"
--atomize \
--fasta_ref "../reference.fa" \
--check_ref "e" \
&> /dev/null

# checks
assert_file_exists "normalized.vcf"
Expand All @@ -116,6 +119,7 @@ echo "> Run bcftools_norm with multiallelics"
--output "normalized.vcf" \
--multiallelics "-any" \
--old_rec_tag "wazzaaa" \
&> /dev/null

# checks
assert_file_exists "normalized.vcf"
Expand All @@ -134,6 +138,7 @@ echo "> Run bcftools_norm with regions"
--output "normalized.vcf" \
--atomize \
--regions "1:752567-752722" \
&> /dev/null

# checks
assert_file_exists "normalized.vcf"
Expand All @@ -152,6 +157,7 @@ echo "> Run bcftools_norm with targets"
--output "normalized.vcf" \
--atomize \
--targets "1:752567-752722" \
&> /dev/null

# checks
assert_file_exists "normalized.vcf"
Expand All @@ -170,6 +176,7 @@ echo "> Run bcftools_norm with regions overlap"
--output "normalized.vcf" \
--atomize \
--regions_overlap "pos" \
&> /dev/null

# checks
assert_file_exists "normalized.vcf"
Expand All @@ -188,12 +195,13 @@ echo "> Run bcftools_norm with strict filter and targets overlap"
--output "normalized.vcf" \
--atomize \
--strict_filter \
--targets_overlap "pos" \
--targets_overlap "1" \
&> /dev/null

# checks
assert_file_exists "normalized.vcf"
assert_file_not_empty "normalized.vcf"
assert_file_contains "normalized.vcf" "norm --atomize -s --targets-overlap pos -o normalized.vcf ../example.vcf"
assert_file_contains "normalized.vcf" "norm --atomize -s --targets-overlap 1 -o normalized.vcf ../example.vcf"
echo "- test8 succeeded -"

popd > /dev/null
Expand All @@ -207,6 +215,7 @@ echo "> Run bcftools_norm with do not normalize"
--output "normalized.vcf" \
--do_not_normalize \
--atomize \
&> /dev/null

# checks
assert_file_exists "normalized.vcf"
Expand Down

0 comments on commit ab5fe5e

Please sign in to comment.