Skip to content

Commit

Permalink
Merge pull request #42 from loosolab/estimation_motifs
Browse files Browse the repository at this point in the history
Update yaml; removed debug code from pipeline; update README
  • Loading branch information
renewiegandt authored Jan 8, 2019
2 parents be868ef + ede935b commit adfa30e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
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

0 comments on commit adfa30e

Please sign in to comment.