-
Notifications
You must be signed in to change notification settings - Fork 147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Peppy #8
base: main
Are you sure you want to change the base?
Peppy #8
Changes from 24 commits
d34726f
59eb4d4
f92ae7c
484976b
b3661dc
ba4debb
e1af9a1
d5b6d46
5964ecf
6b54e14
37ded42
ca76544
e85a876
6711da2
6fde15f
72ba626
bd8f36b
6e49167
682bb5d
0d2fc1f
e7301f3
1750ab6
6192d29
f728c37
0e37cfb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
metadata: | ||
sample_table: samples.tsv | ||
sample_subtable: units.tsv | ||
|
||
snake_config: "config.yaml" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import pandas as pd | ||
from peppy import SnakeProject | ||
from snakemake.utils import validate | ||
|
||
report: "../report/workflow.rst" | ||
|
||
###### Config file and sample sheets ##### | ||
configfile: "config.yaml" | ||
p = SnakeProject("prjcfg_native.yaml") | ||
configfile: p.snake_config | ||
validate(config, schema="../schemas/config.schema.yaml") | ||
|
||
samples = pd.read_table(config["samples"]).set_index("sample", drop=False) | ||
samples = p.sample_table | ||
|
||
validate(samples, schema="../schemas/samples.schema.yaml") | ||
|
||
units = pd.read_table(config["units"], dtype=str).set_index(["sample", "unit"], drop=False) | ||
units.index = units.index.set_levels([i.astype(str) for i in units.index.levels]) # enforce str in index | ||
units = p.subsample_table | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Really nice! What about always converting the subsample_table index into string inside peppy (in order to get rid of the line below)? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi johannes, it looks like this has been done (the line is now gone). |
||
|
||
validate(units, schema="../schemas/units.schema.yaml") | ||
|
||
# contigs in reference genome | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sample_name platform fq1 fq2 | ||
A ILLUMINA data/reads/a.chr21.1.fq data/reads/a.chr21.2.fq | ||
B ILLUMINA data/reads/b.chr21.1.fq data/reads/b.chr21.2.fq | ||
B ILLUMINA data/reads/b.chr21.1.fq |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be subsample_table, not sample_subtable, right?