-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Copied files from PRJNA509779 after resetting for phoenix
- Loading branch information
Showing
17 changed files
with
307 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
name: adapterremoval | ||
channels: | ||
- defaults | ||
- bioconda | ||
- conda-forge | ||
dependencies: | ||
- adapterremoval | ||
- adapterremoval=2.3.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: bedgraph_to_bigwig | ||
channels: | ||
- defaults | ||
- conda-forge | ||
- bioconda | ||
- nodefaults | ||
dependencies: | ||
- ucsc-bedgraphtobigwig | ||
- ucsc-bedgraphtobigwig=366 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
name: fastqc | ||
channels: | ||
- defaults | ||
- bioconda | ||
- conda-forge | ||
- bioconda | ||
- nodefaults | ||
dependencies: | ||
- fastqc<=0.11.9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
name: greylist | ||
channels: | ||
- conda-forge | ||
- bioconda | ||
- nodefaults | ||
dependencies: | ||
- r-base=4.2.3 | ||
- r-here=1.0 | ||
- bioconductor-diffbind=3.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,25 @@ | ||
name: rmarkdown | ||
channels: | ||
- bioconda | ||
- conda-forge | ||
- r | ||
- bioconda | ||
- nodefaults | ||
dependencies: | ||
- r-base=4.2.3 | ||
- icu =72 | ||
- r-base =4.2.3 | ||
- r-biocmanager | ||
- r-complexupset | ||
- r-diagrammer | ||
- r-glue | ||
- r-here | ||
- r-knitr | ||
- r-pander | ||
- r-polychrome | ||
- r-reactable | ||
- r-rmarkdown | ||
- r-scales | ||
- r-tidyverse | ||
- r-yaml | ||
- bioconductor-extrachips | ||
- bioconductor-ngsReports | ||
- bioconductor-plyranges | ||
- bioconductor-rtracklayer | ||
- r-complexupset =1.3.3 | ||
- r-diagrammer =1.0 | ||
- r-glue =1.6 | ||
- r-here =1.0 | ||
- r-knitr =1.43 | ||
- r-pander = 0.6.5 | ||
- r-polychrome =1.5 | ||
- r-reactable =0.4 | ||
- r-rmarkdown =2.21 | ||
- r-scales =1.2 | ||
- r-tidyverse =2.0 | ||
- r-yaml =2.3 | ||
- bioconductor-extrachips =1.2 | ||
- bioconductor-ngsReports =2.0 | ||
- bioconductor-plyranges =1.18 | ||
- bioconductor-rtracklayer =1.58 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
rule sort_bedgraph: | ||
input: | ||
bdg = "{file}.bdg", | ||
output: | ||
bdg = temp("{file}.sorted.bdg") | ||
log: "workflow/logs/sort_bedgraph/{file}.log" | ||
threads: 1 | ||
resources: | ||
runtime = "1h", | ||
mem_mb = lambda wildcards, input, attempt: (input.size//1000000) * attempt * 8, | ||
disk_mb = lambda wildcards, input, attempt: (input.size//1000000) * attempt * 4, | ||
shell: | ||
""" | ||
## Sort the file | ||
echo -e "Started sorting at $(date)" >> {log} | ||
sort \ | ||
-k1,1 -k2,2n \ | ||
-S {resources.mem_mb}M \ | ||
{input.bdg} | \ | ||
egrep $'^chr[0-9XY]+\t' > {output.bdg} | ||
echo -e "Finished sorting at $(date)" >> {log} | ||
""" | ||
|
||
|
||
rule bedgraph_to_bigwig: | ||
input: | ||
bedgraph = "{file}.sorted.bdg", | ||
chrom_sizes = chrom_sizes | ||
output: | ||
bigwig = "{file}.bw" | ||
conda: "../envs/bedgraph_to_bigwig.yml" | ||
log: "workflow/logs/bedgraph_to_bigwig/{file}.log" | ||
threads: 1 | ||
resources: | ||
runtime = "3h", | ||
mem_mb = lambda wildcards, input, attempt: (input.size//1000000) * attempt * 8, | ||
disk_mb = lambda wildcards, input, attempt: (input.size//1000000) * attempt * 4, | ||
shell: | ||
""" | ||
echo -e "Started conversion at $(date)" >> {log} | ||
bedGraphToBigWig {input.bedgraph} {input.chrom_sizes} {output.bigwig} | ||
echo -e "Finished conversion at $(date)" >> {log} | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
rule make_greylist: | ||
input: | ||
bam = os.path.join(dedup_path, "{accession}.sorted.bam"), | ||
bai = os.path.join(dedup_path, "{accession}.sorted.bam.bai"), | ||
chrom_sizes = chrom_sizes, | ||
script = "workflow/scripts/make_greylist.R" | ||
output: | ||
greylist = os.path.join("output", "annotations", "{accession}_greylist.bed") | ||
params: | ||
genome = config['reference']['name'] | ||
conda: "../envs/greylist.yml" | ||
threads: 1 | ||
log: "workflow/logs/make_greylist/{accession}.log" | ||
resources: | ||
runtime = "40m", | ||
mem_mb = "8192" | ||
shell: | ||
""" | ||
Rscript --vanilla \ | ||
{input.script} \ | ||
{input.bam} \ | ||
{input.chrom_sizes} \ | ||
{params.genome} \ | ||
{output.greylist} >> {log} 2>&1 | ||
""" | ||
|
Oops, something went wrong.