Snakemake storage plugin: fs

https://img.shields.io/badge/repository-github-blue?color=%23022c22 https://img.shields.io/badge/author-Johannes%20Koester-purple?color=%23064e3b PyPI - Version PyPI - License

Warning

No documentation found in repository https://github.com/snakemake/snakemake-storage-plugin-fs. The plugin should provide a docs/intro.md with some introductory sentences and optionally a docs/further.md file with details beyond the auto-generated usage instructions presented in this catalog.

Installation

Install this plugin by installing it with pip or mamba, e.g.:

pip install snakemake-storage-plugin-fs

Usage

Queries

Queries to this storage should have the following format:

Query type

Query

Description

any

test/test.txt

Some file or directory path.

As default provider

If you want all your input and output (which is not explicitly marked to come from another storage) to be written to and read from this storage, you can use it as a default provider via:

snakemake --default-storage-provider fs --default-storage-prefix ...

with ... being the prefix of a query under which you want to store all your results.

Within the workflow

If you want to use this storage plugin only for specific items, you can register it inside of your workflow:

# register storage provider (not needed if no custom settings are to be defined here)
storage:
    provider="fs",

rule example:
    input:
        storage.fs(
            # define query to the storage backend here
            ...
        ),
    output:
        "example.txt"
    shell:
        "..."