-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support add new tool in config TXT file
- Loading branch information
1 parent
5fbbdb3
commit a1849cb
Showing
13 changed files
with
622 additions
and
20 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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/* | ||
* ------------------------------------------------- | ||
* Nextflow config file for adding new modules | ||
* ------------------------------------------------- | ||
* Defines bundled options/command line interface required | ||
* to run a new module, without need to touch main pipeline. | ||
*/ | ||
|
||
params{ | ||
// define a new module like below, | ||
// Interface of inputs for tools: | ||
// ${input} is basecalled input, | ||
// ${genome} is reference genome | ||
newModuleConfigs = [ | ||
// New tool 1: | ||
[ | ||
name : 'MegalodonNew1', | ||
container_docker : 'liuyangzzu/nanome:v1.3', | ||
container_singularity : 'docker://liuyangzzu/nanome:v1.3', | ||
version : '5.0', | ||
cmd : ''' | ||
## Download Rerio model | ||
git clone https://github.com/nanoporetech/rerio | ||
rerio/download_model.py rerio/basecall_models/res_dna_r941_min_modbases_5mC_v001 | ||
|
||
## Megalodon calling | ||
megalodon ${input} --overwrite \ | ||
--mod-motif m CG 0 --outputs per_read_mods mods per_read_refs\ | ||
--mod-output-formats bedmethyl wiggle \ | ||
--write-mods-text --write-mod-log-probs\ | ||
--guppy-server-path $(which guppy_basecall_server) \ | ||
--guppy-config res_dna_r941_min_modbases_5mC_v001.cfg \ | ||
--guppy-params "-d ./rerio/basecall_models/" \ | ||
--guppy-timeout 300 \ | ||
--reference ${genome} \ | ||
--processes 2 | ||
''', | ||
output : 'megalodon_results/per_read_modified_base_calls.txt', | ||
outputHeader : true, | ||
outputOrder : [0,1,3,2], | ||
outputScoreCols : [4,5], | ||
logScore : true, | ||
], | ||
// New tool 2: | ||
[ | ||
name : 'MegalodonNew2', | ||
container_docker : 'liuyangzzu/nanome:v1.3', | ||
container_singularity : 'docker://liuyangzzu/nanome:v1.3', | ||
version : '5.1', | ||
cmd : ''' | ||
## Download Rerio model | ||
git clone https://github.com/nanoporetech/rerio | ||
rerio/download_model.py rerio/basecall_models/res_dna_r941_min_modbases_5mC_v001 | ||
|
||
## Megalodon calling | ||
megalodon ${input} --overwrite \ | ||
--mod-motif m CG 0 --outputs per_read_mods mods per_read_refs\ | ||
--mod-output-formats bedmethyl wiggle \ | ||
--write-mods-text --write-mod-log-probs\ | ||
--guppy-server-path $(which guppy_basecall_server) \ | ||
--guppy-config res_dna_r941_min_modbases_5mC_v001.cfg \ | ||
--guppy-params "-d ./rerio/basecall_models/" \ | ||
--guppy-timeout 300 \ | ||
--reference ${genome} \ | ||
--processes 2 | ||
''', | ||
output : 'megalodon_results/per_read_modified_base_calls.txt', | ||
outputHeader : true, | ||
outputOrder : [0,1,3,2], | ||
outputScoreCols : [4,5], | ||
logScore : true, | ||
], | ||
] | ||
} |
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
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
Oops, something went wrong.