Skip to content

Commit

Permalink
Linked provided config parameters dynamically to script init, and tem…
Browse files Browse the repository at this point in the history
…plated manifest.json
  • Loading branch information
G-kodes committed Nov 27, 2024
1 parent 523d9f8 commit 0e30b67
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 5 deletions.
33 changes: 29 additions & 4 deletions config/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,33 @@
{
"input": {
"datasets": [
"/",
"path",
"to",
"my",
"datasets.csv"
]
},
"output-dir": [
"/",
"mnt",
"ICMM_HDD_12TB",
"Results_25SEP2024"
]
"path",
"to",
"my",
"output",
"folder"
],
"resources": {
"reference_genomes": [
{
"name": "reference_genome_a",
"path": [
"/",
"path",
"to",
"my",
"reference_genome.fa"
]
}
]
}
}
2 changes: 1 addition & 1 deletion workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ validate(config, join("..", "config", ".schema", "manifest.schema.json"))


# IMPORT DATASET METADATA:
datasets = read_csv(join("input", "datasets.csv"), header=0, dtype=dict(dataset=str, reference_genome=str, contig=str, file=str))
datasets = read_csv(join(*config["input"]["datasets"]), header=0, dtype=dict(dataset=str, reference_genome=str, contig=str, file=str))


# IMPORT COMMON FUNCTIONS:
Expand Down

0 comments on commit 0e30b67

Please sign in to comment.