Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
r1cheu committed Mar 20, 2024
1 parent 144a5b5 commit 24ae24b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,14 @@ sudo singularity build snp_gatk.sif snp_call.def
### we alse provide a pre-built singularity image
```

### Prepare Samples
modify config/samples.tsv and config/units.tsv.

### Modify the config file
modify the config/config.yaml file to fit your needs.
e.g. sif: /path/to/snp_gatk.sif
### Run the workflow

```bash
snakemake --profile cluster --cache
```
2 changes: 2 additions & 0 deletions workflow/rules/mapping.smk
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ rule fastp_trim_reads_pe:
html="logs/fastp/{sample}.html", json="logs/fastp/{sample}.json"
resources:
ntasks=4
mem_mb=
shell:
"fastp -i {input.r1} -I {input.r2} -o {output.r1} -O {output.r2} "
"-h {log.html} -j {log.json} -w {resources.ntasks}"
Expand All @@ -29,6 +30,7 @@ rule map_reads:
sort_order="coordinate",
resources:
ntasks=4
mem_mb=
shell:
"bwa mem -t {resources.ntasks} {params.extra} {params.index} {input.reads} | "
"samtools sort -T {output}.tmp -o {output} - > {log} 2>&1"
Expand Down

0 comments on commit 24ae24b

Please sign in to comment.