generated from snakemake-workflows/snakemake-workflow-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from fcaretti/Add-rules
feat(rule): add index and dict to reference genome
- Loading branch information
Showing
8 changed files
with
58 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,7 @@ jobs: | |
snakefile: workflow/Snakefile | ||
args: "--lint" | ||
|
||
|
||
Testing: | ||
runs-on: ubuntu-latest | ||
needs: | ||
|
@@ -42,13 +43,12 @@ jobs: | |
- name: Test workflow | ||
uses: snakemake/[email protected] | ||
with: | ||
directory: . | ||
snakefile: workflow/Snakefile | ||
args: "--use-conda --show-failed-logs --cores 3 --conda-cleanup-pkgs cache --all-temp" | ||
|
||
directory: '.' | ||
snakefile: 'workflow/Snakefile' | ||
args: "--dry-run --use-conda --show-failed-logs --cores 3 --conda-cleanup-pkgs cache --all-temp" | ||
- name: Test report | ||
uses: snakemake/[email protected] | ||
with: | ||
directory: . | ||
snakefile: workflow/Snakefile | ||
directory: '.' | ||
snakefile: 'workflow/Snakefile' | ||
args: "--report report.zip" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
data: | ||
folder: ".test/data" | ||
|
||
reference: | ||
folder: ".test/data" | ||
genome: "placeholder.fa" |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
data: | ||
folder: "data_path" | ||
folder: "data_path" | ||
|
||
reference: | ||
folder: "genome_folder" | ||
genome: "genome.fa" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Rule to create the FASTA index using samtools | ||
rule samtools_faidx: | ||
input: | ||
reference, | ||
output: | ||
reference_idx, | ||
log: | ||
f"{reference}.log", | ||
params: | ||
extra="", | ||
wrapper: | ||
"v3.12.1/bio/samtools/faidx" | ||
|
||
|
||
# Rule to create the sequence dictionary using Picard | ||
rule create_dict: | ||
input: | ||
reference, | ||
output: | ||
reference_dict, | ||
log: | ||
"logs/picard/create_dict.log", | ||
params: | ||
extra="", # Optional: extra arguments for picard. | ||
resources: | ||
mem_mb=1024, | ||
wrapper: | ||
"v3.12.1/bio/picard/createsequencedictionary" |