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 #4 from fcaretti/Add-rules
feat(rule): add Split N CIGAR rule
- Loading branch information
Showing
6 changed files
with
39 additions
and
13 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 | ||
|
@@ -40,15 +41,26 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
|
||
- name: Test workflow | ||
uses: snakemake/[email protected] | ||
with: | ||
directory: '.' | ||
directory: '.test' | ||
snakefile: 'workflow/Snakefile' | ||
args: "--dry-run --use-conda --show-failed-logs --cores 3 --conda-cleanup-pkgs cache --all-temp" | ||
stagein: | | ||
echo "Current working directory: $(pwd)" | ||
echo "Listing contents of current directory:" | ||
ls -R | ||
echo "Listing contents of .test directory:" | ||
ls -R .test | ||
echo "Listing contents of .test/config directory:" | ||
ls -R .test/config | ||
echo "Listing contents of .test/data directory:" | ||
ls -R .test/data | ||
- name: Test report | ||
uses: snakemake/[email protected] | ||
with: | ||
directory: '.' | ||
directory: '.test' | ||
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
data: | ||
folder: "data_path" | ||
folder: "data_folder" | ||
|
||
reference: | ||
folder: "genome_folder" | ||
|
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
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,17 @@ | ||
rule splitncigarreads: | ||
input: | ||
bam="results/dedup/{sample}.bam", | ||
ref=reference, | ||
idx=reference_idx, | ||
dict=reference_dict, | ||
output: | ||
temp("results/split/{sample}.bam"), | ||
log: | ||
"logs/splitNCIGARreads/{sample}.log", | ||
params: | ||
extra="", # optional | ||
java_mem_overhead_mb=512, # Specify overhead for non-heap memory | ||
resources: | ||
mem_mb=4096, # Total memory available for the rule | ||
wrapper: | ||
"v3.12.1/bio/gatk/splitncigarreads" |