Skip to content

Update yaml; removed debug code from pipeline; update README #42

Merged
merged 1 commit into from
Jan 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,16 @@ For further information read the [documentation](https://github.molgen.mpg.de/lo
## Dependencies
* [conda](https://conda.io/docs/user-guide/install/linux.html)
* [Nextflow](https://www.nextflow.io/)
* [MEME-Suite](http://meme-suite.org/doc/install.html?man_type=web)

## Installation
Start with installing all dependencies listed above (Nextflow, conda) and downloading all files from the [GitHub repository](https://github.molgen.mpg.de/loosolab/masterJLU2018).
Start with installing all dependencies listed above (Nextflow, conda, MEME-Suite) and downloading all files from the [GitHub repository](https://github.molgen.mpg.de/loosolab/masterJLU2018).
It is required to set the [enviroment paths for meme-suite](http://meme-suite.org/doc/install.html?man_type=web#installingtar).
this can be done with following commands:
```
export PATH=[meme-suite instalation path]/libexec/meme-[meme-suite version]:$PATH
export PATH=[meme-suite instalation path]/bin:$PATH
```

Every other dependency will be automatically installed by Nextflow using conda. For that a new conda enviroment will be created, which can be found in the from Nextflow created work directory after the first pipeline run.
It is **not** required to create and activate the enviroment from the yaml-file beforehand.
Expand Down
1 change: 0 additions & 1 deletion masterenv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ dependencies:
- r-stringr
- r-optparse
- bioconductor-iranges
- meme
- moods
- biopython
- pybedtools
Expand Down
7 changes: 2 additions & 5 deletions pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -251,21 +251,18 @@ if(params.tfbs_path == "") {
*/
process overlap_with_known_TFBS {
conda "${path_env}"
echo true
publishDir "${params.out}/1.2_filter_motifs/compareBed/", mode :'copy'

input:
set name, file (bed_footprints), val (bed_motifs), file (fasta) from for_overlap

output:
set name, file ("${name}_unknown.bed") into bed_for_reducing
file ('*.stats')

script:
motif_list = bed_motifs.toString().replaceAll(/\s|\[|\]/,"")
"""
echo ${bed_footprints}
echo ${motif_path}
echo ${fasta}
${path_bin}/1.2_filter_motifs/compareBed.sh --data ${bed_footprints} --motifs ${motif_path} --fasta ${fasta} -o ${name}_unknown.bed -min ${params.min_size_fp} -max ${params.max_size_fp}
"""
}
Expand Down Expand Up @@ -662,7 +659,7 @@ process create_GTF {

script:
"""
python ${path_bin}/3.1_create_gtf/RegGTFExtractor.py ${params.organism} --tissue ${params.tissues} --wd ${path_bin}/3.1_create_gtf/
python ${path_bin}/3.1_create_gtf/RegGTFExtractor.py ${params.organism} --tissue ${params.tissues} --wd ${path_bin}/3.1_create_gtf
"""
}

Expand Down