Debian Codegraph @

Tests/TEST_ONE_WAY_EXPORT/run_tests.sh

raw
1 #!/bin/bash
2
3 set -exo pipefail
4
5 # For files that can't be re-imported, we compare output against
6 # manually-sanity-checked ground truth files.
7
8 $1/plink2 $2 $3 --pfile all_ploidy vzs --snps-only --export phylip --out plink2_test
9 $1/plink2 --zd plink2_test.phy.want.zst > plink2_test.phy.want
10 diff -q plink2_test.phy plink2_test.phy.want
11 $1/plink2 $2 $3 --pfile all_ploidy vzs --chr PAR1,X,PAR2 --keep-females --snps-only --export phylip-phased --out plink2_test.phased
12 $1/plink2 --zd plink2_test.phased.phy.want.zst > plink2_test.phased.phy.want
13 diff -q plink2_test.phased.phy plink2_test.phased.phy.want
14 $1/plink2 $2 $3 --pfile all_ploidy vzs --export A --out plink2_test
15 $1/plink2 --zd plink2_test.raw.want.zst > plink2_test.raw.want
16 diff -q plink2_test.raw plink2_test.raw.want