Skip to content

Commit 6953ead

Browse files
Misc update prior to fishpond script for Salva
1 parent 2cefbe0 commit 6953ead

10 files changed

Lines changed: 90 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ opt/
55
log/
66
bkp/
77
shr/
8+
inp/
89
inp/me/
910
.snakemake/
1011
.nextflow/

src/chromhmm/test-srr.tsv

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/snakemake/envs/nanoplot.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name:
2+
nanoplot
3+
channels:
4+
- conda-forge
5+
- bioconda
6+
- nodefaults
7+
dependencies:
8+
- nanoplot
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# A new environment for R kernel to share with the team
2+
name:
3+
rkernel_main
4+
channels:
5+
- conda-forge
6+
- bioconda
7+
- nodefaults
8+
dependencies:
9+
- jupyter
10+
- bioconductor-biomart
11+
- bioconductor-chipseeker
12+
- bioconductor-complexheatmap
13+
- bioconductor-deseq2
14+
- bioconductor-ensdb.hsapiens.v86
15+
- bioconductor-ensembldb
16+
- bioconductor-genomicranges
17+
- bioconductor-org.hs.eg.db
18+
- bioconductor-rtracklayer
19+
- bioconductor-summarizedexperiment
20+
- bioconductor-txdb.hsapiens.ucsc.hg19.knowngene
21+
- bioconductor-txdbmaker
22+
- bioconductor-fishpond
23+
- bioconductor-tximeta
24+
- bioconductor-rnbeads
25+
- bioconductor-rnbeads.hg19
26+
- bioconductor-rnbeads.hg38
27+
- bioconductor-watermelon
28+
- r-base
29+
- r-arrow
30+
- r-devtools
31+
- r-biocmanager
32+
- r-circlize
33+
- r-data.table
34+
- r-dplyr
35+
- r-extrafont
36+
- r-ggbeeswarm
37+
- r-ggpubr
38+
- r-ggrepel
39+
- r-irkernel
40+
- r-openxlsx
41+
- r-rcolorbrewer
42+
- r-readr
43+
- r-readxl
44+
- r-stringr
45+
- r-tibble
46+
- r-tidyr
47+
#- r-tools # Not available in current channels
48+
- r-vcfr
49+
- r-xml2

src/snakemake/envs/rnbeads.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name:
2+
rnbeads
3+
channels:
4+
- conda-forge
5+
- bioconda
6+
- nodefaults
7+
dependencies:
8+
- r-ggplot2 <3.4 # https://github.com/epigen/RnBeads/issues/71
9+
- bioconductor-rnbeads
10+
- bioconductor-rnbeads.hg19
11+
- bioconductor-rnbeads.hg38
12+
- bioconductor-watermelon
13+

src/snakemake/rules/agent_trimmer.smk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ rule agent_trim_pe:
2929
extra = params_extra
3030
wildcard_constraints:
3131
tool = "agent/trim"
32+
resources:
33+
high_io = 1
3234
conda:
3335
"../envs/agent.yaml"
3436
shell:
@@ -73,6 +75,8 @@ rule agent_trim_2_lanes_pe:
7375
extra = params_extra
7476
wildcard_constraints:
7577
tool = "agent/trim_2_lanes"
78+
resources:
79+
high_io = 1
7680
conda:
7781
"../envs/agent.yaml"
7882
shell:

src/snakemake/rules/agent_wget.smk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ rule agent_wget:
1414
cd $OUTDIR
1515
wget 'https://dt4ei3l3hxs7z.cloudfront.net/?elqTrackId=30b3c5b8c3bd44f7b3a01b66ab2a30a5&elqaid=3928&elqat=2' --output-document 'AGeNT_2.0.5.zip'
1616
unzip AGeNT_2.0.5.zip
17+
chmod +x {output.agent}
1718
"""

src/snakemake/rules/deepTools_computeMatrix.smk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ rule deepTools_computeMatrix_extra:
1414
"""
1515
input:
1616
bw = lambda wildcards: eval(mwconf['ids'][wildcards.bw_list_id]),
17-
bed = lambda wildcards: eval(mwconf['ids'][wildcards.bed_list_id])
17+
regions = lambda wildcards: eval(mwconf['ids'][wildcards.regions_list_id])
1818
output:
19-
matrix = "out/{tool}{extra}_{bed_list_id}_{bw_list_id}.txt.gz"
19+
matrix = "out/{tool}{extra}_{regions_list_id}_{bw_list_id}.txt.gz"
2020
log:
21-
"out/{tool}{extra}_{bed_list_id}_{bw_list_id}.log"
21+
"out/{tool}{extra}_{regions_list_id}_{bw_list_id}.log"
2222
benchmark:
23-
"out/{tool}{extra}_{bed_list_id}_{bw_list_id}.benchmark.tsv"
23+
"out/{tool}{extra}_{regions_list_id}_{bw_list_id}.benchmark.tsv"
2424
params:
2525
extra = params_extra
2626
conda:
2727
"../envs/deeptools.yaml"
2828
wildcard_constraints:
2929
tool="deepTools/computeMatrix",
3030
bw_list_id = "bw-[a-zA-Z0-9-]+",
31-
bed_list_id = "bed-[a-zA-Z0-9-]+"
31+
regions_list_id = "(bed|gtf)-[a-zA-Z0-9-]+"
3232
threads:
3333
MAX_THREADS
3434
shell:
35-
"computeMatrix {params.extra} --regionsFileName {input.bed} "
35+
"computeMatrix {params.extra} --regionsFileName {input.regions} "
3636
"--scoreFileName {input.bw} --outFileName {output.matrix} "
3737
"--numberOfProcessors {threads} &> {log}"
3838

src/snakemake/rules/ont-modkit_pileup.smk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rule ont_modkit_pileup_extra:
1414
bai="out/{filler}.bam.bai",
1515
fa= lambda wildcards: eval(mwconf['ids'][wildcards.fa_genome_id])
1616
output:
17-
bed="out/{tool}{extra}_{fa_genome_id}/{filler}.bed"
17+
bed="out/{tool}{extra}_{fa_genome_id}/{filler}.bed.gz"
1818
log:
1919
"out/{tool}{extra}_{fa_genome_id}/{filler}.log"
2020
benchmark:
@@ -29,5 +29,5 @@ rule ont_modkit_pileup_extra:
2929
MAX_THREADS
3030
shell:
3131
"""
32-
modkit pileup {params.extra} --threads {threads} --ref {input.fa} --log {log} {input.bam} {output.bed}
32+
modkit pileup {params.extra} --threads {threads} --ref {input.fa} --log {log} {input.bam} - | bgzip > {output.bed}
3333
"""

src/snakemake/rules/star.smk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ rule star_pe_extra:
3131
"../envs/star.yaml"
3232
threads:
3333
8
34+
resources:
35+
high_io = 1,
36+
ram = 40
3437
shell:
3538
"""
3639
( WDIR=`pwd`
@@ -81,6 +84,9 @@ rule star_se_extra:
8184
"../envs/star.yaml"
8285
threads:
8386
8
87+
resources:
88+
high_io = 1,
89+
ram = 40
8490
shell:
8591
"""
8692
WDIR=`pwd`

0 commit comments

Comments
 (0)