Skip to content

Commit

Permalink
Paired end parameter + fixing samtools index issue
Browse files Browse the repository at this point in the history
  • Loading branch information
weber8thomas committed Jun 26, 2024
1 parent 440430f commit d0e5cf5
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 2 additions & 0 deletions config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ MultiQC: False
# Enable or disable ashleys-qc automatic classification
bypass_ashleys: False

paired_end: True

# --------------------------------------------------------
# Other modules
# --------------------------------------------------------
Expand Down
7 changes: 6 additions & 1 deletion workflow/rules/common.smk
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ conda_envs += (
else []
)

if config["paired_end"] is True:
pair = ["1", "2"]
else:
pair = ["1"]

# print(config["data_location"])

if config["ashleys_pipeline"] is True and config["genecore"] is True:
Expand Down Expand Up @@ -284,7 +289,7 @@ class HandleInput:
regex_element=d_master[sample]["index_pattern"],
index=d_master[sample]["indexes"],
cell_nb=[str(e).zfill(2) for e in list(range(1, 97))],
pair=["1", "2"],
pair=pair,
)
for sample in d_master
if sample in samples_to_process
Expand Down
15 changes: 15 additions & 0 deletions workflow/rules/utils.smk
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,21 @@ rule index_merged_strandphaser_vcf:
"tabix -p vcf {input.vcf} > {log} 2>&1"


rule gunzip_fasta:
input:
ancient("{file}.fa.gz"),
output:
"{file}.fa",
log:
"{file}.log",
conda:
"../envs/mc_bioinfo_tools.yaml"
resources:
mem_mb=get_mem_mb_heavy,
shell:
"gunzip -cd {input} > {output}"


rule samtools_faindex:
input:
ancient("{file}.fa"),
Expand Down

0 comments on commit d0e5cf5

Please sign in to comment.