Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
weber8thomas committed Dec 4, 2023
1 parent e90a7a5 commit c89a107
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 5 deletions.
17 changes: 13 additions & 4 deletions watchdog_pipeline/watchdog_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@
# publishdir_location = "/g/korbel/weber/TMP/WORKFLOW_RESULTS_DEV"
publishdir_location = "/g/korbel/WORKFLOW_RESULTS"
genecore_prefix = path_to_watch
# profile_slurm = ["--profile", "../snakemake_profiles/HPC/dev/slurm_legacy_conda/"]
profile_slurm = [
"--profile",
"/g/korbel2/weber/workspace/snakemake_profiles/HPC/slurm_EMBL/",
"/g/korbel2/weber/workspace/snakemake_profiles/HPC/dev/slurm_legacy_conda/",
]
# profile_slurm = [
# "--profile",
# "/g/korbel2/weber/workspace/snakemake_profiles/HPC/slurm_EMBL/",
# ]
profile_dry_run = [
"--profile",
"workflow/snakemake_profiles/local/conda/",
Expand Down Expand Up @@ -297,7 +300,9 @@ def check_unprocessed_folder(self):
"PDAC60590MNI",
"DXR30hMaja",
"DXR42hMaja",
"GM19705",
# "GM19705",
"OrgxDoxocx02",
"GM20355x01",
]:
run_id = f"{pipeline}--{plate}--{sample_name}"
workflow_id = self.find_workflow_id_by_name(
Expand Down Expand Up @@ -458,6 +463,10 @@ def check_unprocessed_folder(self):

print(panoptes_entry)
print(panoptes_data)
if workflow_id:
assert (
len(panoptes_data) > 0
), "Data issue between pika & panoptes"

if panoptes_data:
panoptes_data = panoptes_data[0]
Expand Down Expand Up @@ -693,7 +702,7 @@ def execute_command(
"-s",
"workflow/Snakefile",
"--set-resources",
"ashleys_mark_duplicates:partition=bigmem",
"ashleys_mark_duplicates:constraint='milan\|rome'",
"--config",
"genecore=True",
f"genecore_prefix={genecore_prefix}",
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/count.smk
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ else:
"../envs/mc_base.yaml"
shell:
"""
workflow/scripts/normalization/merge-blacklist.py --merge_distance 500000 {input.norm} > {output.merged} 2> {log}
cp {input.norm} {ouput.merged}
"""


Expand Down
1 change: 1 addition & 0 deletions workflow/scripts/normalization/merge-blacklist.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def main():
norm_table.loc[[i], "class"] = "good"
additional_whitelist += row.end - row.start


print("White listing: Removed", additional_whitelist, "bp of sequence for blacklist", file=sys.stderr)

norm_table.to_csv(args.output, index=False, sep="\t")
Expand Down

0 comments on commit c89a107

Please sign in to comment.