Giter Club home page Giter Club logo

snakemake-pytest's Introduction

Language Actions Status Code Style Type Checked PEP8 License


Snakemake with Pytest example

This demonstrates how to test your Snakefile with pytest. Snakemake will be run in --dryrun mode to verify that the inputs in the all rule can be generated. It will also make sure there are no syntax errors and run linting (--lint). This is done all programatically (no "shelling out")

Caveats

This does not support the checkpoint directive.

This does not support testing on real data and having the rules actually run. This is something you should do. Set the dryrun parameter to False in the call to snakemake.snakemake. Make sure that your input files "make sense" given the workflow you are running. Also make sure any required software is installed or accessible. For example, a small set of reads in a FASTQ as input over a single exon to test variant calling. And then make sure bwa, samtools, and gatk4 are installed.

Installation

conda env create --file src/environment.yml
  • Activate the snakemake-pytest conda environment
conda activate snakemake-pytest
  • Run the integration tests
bash ci/check.sh

snakemake-pytest's People

Contributors

nh13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

swiri021

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.