Example files
Locating the files
The examples throughout our documentation make use of two sets of files: test files and example files.
Test files can be found in the tests/data/ directory of our Github repository. These are short, simplified files used exclusively by our automated test suite.
Example files can be found in the example-files/ directory of our Github repository. Unlike test files, we expect example files to be useful in your own commands. For example, if you use simgenotype with the 1000 Genomes dataset, you can use our 1000G sample_info file. We have also included a set of model files that you can use to create pre-configured admixed populations.
Running an example command
To run any of the example code or commands in our documentation, follow these steps.
Clone our Github repository
git clone -b v$(haptools --version) https://github.com/CAST-genomics/haptools.git
Change to the cloned directory
cd haptools
Execute the example command
Running all examples
All of our examples are included within our test suite, which is executed regularly by our continuous integration system. To check that all of the examples work on your system, you can just have pytest automatically run all of our tests.
Follow the first three steps above
Install
pytestpip install 'pytest>=6.2.5'
Run our tests
pytest tests/