Skip to content
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

add logs for concat gvcf and normalise #215

Merged
merged 3 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Now that we've created our sample sheet, we need to edit the config file we copi

In our example we are using all of the default options. This will configure snpArcher to perform variant calling using GATK with the scatter-by-intervals approach. Also, we have set our reference genome name and path since we want to use the same genome for all samples in our sample sheet.

```{yaml}
```
samples: "config/samples.csv" # path to the sample metadata CSV
final_prefix: "" # prefix for final output files
intervals: True #Set to True if you want to perform variant calling using interval approach.
Expand Down
4 changes: 2 additions & 2 deletions docs/executing.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ Snakemake [supports most cluster schedulers](https://snakemake.github.io/snakema
#### Install plugin
To execute snpArcher on a SLURM cluster, you will need to install the [SLURM executor plugin](https://snakemake.github.io/snakemake-plugin-catalog/plugins/executor/slurm.html) into the snpArcher environment.
```shell
conda activate snpArcher
pip install pip install snakemake-executor-plugin-slurm
conda activate snparcher
pip install snakemake-executor-plugin-slurm
```
#### Profile Setup
To specify resources for the workflow to SLURM, you must use a workflow profile. We have provided a SLURM profile template (`profiles/slurm/config.yaml`) which you can modify to specify SLURM partitions, memory allocation, etc. Please refer to the [profiles setup section](./setup.md#resources) for more details.
Expand Down
8 changes: 4 additions & 4 deletions workflow/rules/bam2vcf_gatk_intervals.smk
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ rule concat_gvcfs:
"../envs/bcftools.yml"
shell:
"""
bcftools concat -D -a -Ou {input.gvcfs} | bcftools sort -T {resources.tmpdir} -Oz -o {output.gvcf} -
tabix -p vcf {output.gvcf}
bcftools concat -D -a -Ou {input.gvcfs} 2> {log} | bcftools sort -T {resources.tmpdir} -Oz -o {output.gvcf} - 2>> {log}
tabix -p vcf {output.gvcf} 2>> {log}
"""

rule bcftools_norm:
Expand All @@ -73,8 +73,8 @@ rule bcftools_norm:
"../envs/bcftools.yml"
shell:
"""
bcftools norm -m +any -Oz -o {output.gvcf} {input.gvcf}
tabix -p vcf {output.gvcf}
bcftools norm -m +any -Oz -o {output.gvcf} {input.gvcf} 2> {log}
tabix -p vcf {output.gvcf} 2>> {log}
"""

rule create_db_mapfile:
Expand Down
Loading