mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-22 11:08: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
|
||||
import cnvpytor,os
|
||||
from pathlib import Path
|
||||
pytor_files = Path.cwd().glob("*.pytor")
|
||||
pytor_file = Path("$pytor")
|
||||
binsizes = "${bins}".split(" ")
|
||||
for pytor_file in pytor_files:
|
||||
for binsize in binsizes:
|
||||
file_list = [str(pytor_file)]
|
||||
app = cnvpytor.Viewer(file_list, params={} )
|
||||
app = cnvpytor.Viewer(["$pytor"], params={} )
|
||||
outputfile = "{}_{}.{}".format(pytor_file.stem,binsize.strip(),"${output_suffix}")
|
||||
app.print_filename = outputfile
|
||||
app.bin_size = int(binsize)
|
||||
|
|
Loading…
Reference in a new issue