snaketest
instalation:
pip install snaketest
runing
A small package to help test and prototype snakemake rules
from snaketest import *
The idea is to make the prototype as copypasteable as possible Rou declare input and output by just initializing a snaketest class. You can just copy paste the content of the input, output, log, params...
input = snaketest(
table='data/table.csv',
genome='data/genome.fa',
sample = expand('data/sample/{sample}.csv',sample=[1,2,3]) #there's even an expand function
)
You can even use wildcards in them
output = snaketest(
csv='results/table_{chromosome}.csv',
)
But if you do you gotta create a wildcard SM which the other SM classes will refer to
wildcards = snaketest(
chromosome="chrY"
)
Now you can fill the code using SM variables:
import pandas as pd
df = pd.read_csv(input.table)
df = df[df['chromosome']==wildcards.chromosome]
Because all variables are in the snakemake format, you can just test and copy paste withought needing to manually change anything.
Release files for snaketest 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| snaketest-0.0.4.tar.gz | 2.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| snaketest-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.2 kB
Release files / snaketest-0.0.4.tar.gz
| Download URL | snaketest-0.0.4.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
629b13f4c82c1da89856d5672096566e5e9c2b78b3b333723057a3707e6086c7
|
|
BLAKE2b-256 checksum How to use checksums |
7870ea122e2125b6352ae4c51c4ae2ea16bd07113aec3f602094b5b29cadf987
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|
Release files / snaketest-0.0.4-py3-none-any.whl
| Download URL | snaketest-0.0.4-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
94f386c27412f3d31a840452b88030353c1611e3301f2dc4964e5ccbb1ec880c
|
|
BLAKE2b-256 checksum How to use checksums |
ec55e771a025ce5b62a335c8b7380a239c08bc77bc3cd74d969054f6a6869ddf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.8
|