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,16 +29,14 @@ 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:
|
app = cnvpytor.Viewer(["$pytor"], params={} )
|
||||||
file_list = [str(pytor_file)]
|
outputfile = "{}_{}.{}".format(pytor_file.stem,binsize.strip(),"${output_suffix}")
|
||||||
app = cnvpytor.Viewer(file_list, params={} )
|
app.print_filename = outputfile
|
||||||
outputfile = "{}_{}.{}".format(pytor_file.stem,binsize.strip(),"${output_suffix}")
|
app.bin_size = int(binsize)
|
||||||
app.print_filename = outputfile
|
app.print_calls_file()
|
||||||
app.bin_size = int(binsize)
|
|
||||||
app.print_calls_file()
|
|
||||||
CODE
|
CODE
|
||||||
|
|
||||||
cat <<-END_VERSIONS > versions.yml
|
cat <<-END_VERSIONS > versions.yml
|
||||||
|
|
Loading…
Reference in a new issue