snakefetch
A tool to fetch workflow and config files from a Snakemake repository on GitHub
Although snakedeploy can be used to prepare Snakemake workflows, this does not always work.
snakefetch is basically a simpler version of snakedeploy that will copy the config and workflow directories of any Snakemake workflow on github into any directory.
Installation
snakefetch can be installed via pip:
$ pip install snakefetch
Usage
Help message
$ snakefetch --help
usage: snakefetch [-h] [--outdir OUTDIR] --url URL --repo-version REPOVERSION [--target-dirs TARGETDIRS] [--version]
Fetch config and workflow directories from a versioned Snakemake repository on GitHub
options:
-h, --help show this help message and exit
--outdir OUTDIR, -o OUTDIR
Directory to save the files to
--url URL, -u URL URL of the Snakemake repository on GitHub
--repo-version REPOVERSION, -v REPOVERSION
Release version of the Snakemake repository on GitHub
--target-dirs TARGETDIRS, -t TARGETDIRS
Directories to fetch from the Snakemake repository on GitHub (default: config,workflow)
--version Print snakefetch version and exit
snakefetch version:
$ snakefetch --version
snakefetch version 0.5.0
Fetching files from Snakemake workflow
$ snakefetch -o /home/niek/TEST -v v0.4.0 -u https://github.com/niekwit/damid-seq
Downloading archive file for version v0.4.0 from https://github.com/niekwit/damid-seq...
Extracting config and workflow directories from tar.gz file to /home/niek/Downloads/TEST...
Done!
$ cd /home/niek/TEST
$ tree
.
├── config
│ ├── config.yaml
│ ├── README.md
│ └── samples.csv
└── workflow
├── envs
│ ├── damid.yaml
│ ├── deeptools.yaml
│ ├── peak_calling.yaml
│ ├── R.yaml
│ └── trim.yaml
├── report
│ ├── annotated_peaks.rst
│ ├── correlation.rst
│ ├── distance_to_tss.rst
│ ├── feature_distributions.rst
│ ├── heatmap.rst
│ ├── mapping_rates.rst
│ ├── pca.rst
│ ├── profile_plot.rst
│ ├── scree.rst
│ └── workflow.rst
├── rules
│ ├── bedgraph_processing.smk
│ ├── bed.smk
│ ├── damid.smk
│ ├── deeptools.smk
│ ├── fastqc.smk
│ ├── motifs.smk
│ ├── peak_calling.smk
│ ├── plotting.smk
│ ├── resources.smk
│ └── trimming.smk
├── schemas
│ └── config.schema.yaml
├── scripts
│ ├── annotate_peaks.R
│ ├── average_bigwig.py
│ ├── average_wig.py
│ ├── bowtie2_align_to_plasmid.py
│ ├── convert_bed2fasta.py
│ ├── create_annotation_file.R
│ ├── create_background_fasta.py
│ ├── create_blacklist.py
│ ├── damidseq_pipeline.py
│ ├── filter_overlapping_peaks.py
│ ├── general_functions.smk
│ ├── get_resource.sh
│ ├── mask_fasta.py
│ ├── peak_annotation_plots.R
│ ├── plot_mapping_rates.R
│ ├── plot_PCA.R
│ ├── quantile_norm_bedgraph.py
│ ├── resources.py
│ ├── reverse_log2.py
│ ├── run_find_peaks.py
│ └── trim_galore.py
└── Snakefile
7 directories, 51 files
Metadata
Release files for snakefetch 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| snakefetch-0.5.1.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| snakefetch-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.4 kB
Release files / snakefetch-0.5.1.tar.gz
| Download URL | snakefetch-0.5.1.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7b9c38a8a8342cd64de887fc37f87760f8929a8d63fd3bdc6167091f2388157d
|
|
BLAKE2b-256 checksum How to use checksums |
d7da41bda1d71212197028a7f923b25d8a417777bdc13fe6fd3377475b526685
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.3
|
Release files / snakefetch-0.5.1-py3-none-any.whl
| Download URL | snakefetch-0.5.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9462d40619ab5b5ab567da831269f66bf07c821ba2e124dae847208d2c8346d0
|
|
BLAKE2b-256 checksum How to use checksums |
7ee8568f9b61351ef929f806def56138dff292307a446266f858037dba49fd77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.3
|