Example files

Locating the files

The examples throughout our documentation make use of a single set of test 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.

Running an example command

To run any of the example code or commands in our documentation, follow these steps.

  1. Install panct

  2. Clone our Github repository

    git clone -b v$(panct --version) https://github.com/CAST-genomics/panct.git
    
  3. Change to the cloned directory

    cd panct
    
  4. 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.

  1. Follow the first three steps above

  2. Install pytest

    pip install 'pytest>=6.2.5'
    
  3. Run our tests

    pytest tests/