Skip to content

Commit

Permalink
Fix slurm preset (#118)
Browse files Browse the repository at this point in the history
* require snakemake<8

* fix escape character and whitespace errors
  • Loading branch information
CChahrour authored Jan 24, 2024
1 parent c85b647 commit 905046e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies = [
"seaborn",
"setuptools_scm",
"snakemake-wrapper-utils",
"snakemake<=9.0.0",
"snakemake<8.0.0",
"tracknado",
"wget",
]
Expand Down
4 changes: 2 additions & 2 deletions seqnado/workflow/rules/alignment_post_processing.smk
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ rule move_bam_to_final_location:
bam="seqnado_output/aligned/shifted_for_tn5_insertion/{sample}.bam",
bai="seqnado_output/aligned/shifted_for_tn5_insertion/{sample}.bam.bai",
output:
bam="seqnado_output/aligned/{sample,[A-Za-z0-9_\-]+}.bam",
bai="seqnado_output/aligned/{sample,[A-Za-z0-9_\-]+}.bam.bai",
bam="seqnado_output/aligned/{sample,[A-Za-z0-9_-]+}.bam",
bai="seqnado_output/aligned/{sample,[A-Za-z0-9_-]+}.bam.bai",
log:
"seqnado_output/logs/move_bam/{sample}.log",
shell:"""
Expand Down
2 changes: 1 addition & 1 deletion seqnado/workflow/rules/hub.smk
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ rule generate_hub:
output:
hub=get_hub_txt_path(),
log:
log=f"seqnado_output/logs/{config['ucsc_hub_details']['name']}.hub.log",
log=f"seqnado_output/logs/{config['ucsc_hub_details']['name']}.hub.log".strip(),
container:
None
params:
Expand Down
2 changes: 1 addition & 1 deletion seqnado/workflow/snakefile_atac
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ utils.format_config_dict(config)

# Generate design
if os.path.exists(config["design"]):
df = pd.read_csv(config["design"], sep="[\s+,\t]", engine="python")
df = pd.read_csv(config["design"], sep=r"\s+|,|\t", engine="python", index_col=0)
DESIGN = Design.from_dataframe(df)
else:
DESIGN = Design.from_directory(".")
Expand Down
2 changes: 1 addition & 1 deletion seqnado/workflow/snakefile_chip
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ utils.format_config_dict(config)

# Generate design
if os.path.exists(config["design"]):
df = pd.read_csv(config["design"], sep="[\s+,\t]", engine="python")
df = pd.read_csv(config["design"], sep=r"\s+|,|\t", engine="python")
DESIGN = DesignIP.from_dataframe(df)
else:
DESIGN = DesignIP.from_directory(".")
Expand Down
2 changes: 1 addition & 1 deletion seqnado/workflow/snakefile_rna
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ utils.format_config_dict(config)

# Generate design
if os.path.exists(config["design"]):
df = pd.read_csv(config["design"], sep="[\s+,\t]", engine="python", index_col=0)
df = pd.read_csv(config["design"], sep=r"\s+|,|\t", engine="python", index_col=0)
DESIGN = Design.from_dataframe(df)
else:
DESIGN = Design.from_directory(".")
Expand Down

0 comments on commit 905046e

Please sign in to comment.