mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 19:18:17 +00:00
polish python script in view
This commit is contained in:
parent
26311aba2a
commit
ea1f5daf44
1 changed files with 7 additions and 9 deletions
|
@ -29,12 +29,10 @@ process CNVPYTOR_VIEW {
|
||||||
python3 <<CODE
|
python3 <<CODE
|
||||||
import cnvpytor,os
|
import cnvpytor,os
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
pytor_files = Path.cwd().glob("*.pytor")
|
pytor_file = Path("$pytor")
|
||||||
binsizes = "${bins}".split(" ")
|
binsizes = "${bins}".split(" ")
|
||||||
for pytor_file in pytor_files:
|
|
||||||
for binsize in binsizes:
|
for binsize in binsizes:
|
||||||
file_list = [str(pytor_file)]
|
app = cnvpytor.Viewer(["$pytor"], params={} )
|
||||||
app = cnvpytor.Viewer(file_list, params={} )
|
|
||||||
outputfile = "{}_{}.{}".format(pytor_file.stem,binsize.strip(),"${output_suffix}")
|
outputfile = "{}_{}.{}".format(pytor_file.stem,binsize.strip(),"${output_suffix}")
|
||||||
app.print_filename = outputfile
|
app.print_filename = outputfile
|
||||||
app.bin_size = int(binsize)
|
app.bin_size = int(binsize)
|
||||||
|
|
Loading…
Reference in a new issue