Digital Trials pipeline configured for WES
Source-only snapshot of the cluster branch for WES execution. Large reference files (HPA/MANE/ensemble FASTA, model weights, ~597 MB) are omitted: they are baked into the container images at build time and mounted from the dreamdock-data PVC at runtime, and exceed the Gitea request size limit. Pipeline entry point is main.nf, which orchestrates the biotransformer, conplex and tissue modules as a single workflow. Ligand inputs are read from the eureka workspace; protein_zarr and chembl_db come from the dreamdock-data PVC.
This commit is contained in:
commit
9e75f44f1a
86 files changed
+10142
No files matched your search
@@ -0,0 +1,94 @@
|
||||
Jul-21 03:07:10.282 [main] DEBUG nextflow.cli.Launcher - $> nextflow run test.nf
|
||||
Jul-21 03:07:10.349 [main] DEBUG nextflow.cli.CmdRun - N E X T F L O W ~ version 25.04.2
|
||||
Jul-21 03:07:10.366 [main] DEBUG nextflow.plugin.PluginsFacade - Setting up plugin manager > mode=prod; embedded=false; plugins-dir=/root/.nextflow/plugins; core-plugins: nf-amazon@2.15.0,nf-azure@1.16.0,nf-cloudcache@0.4.3,nf-codecommit@0.2.3,nf-console@1.2.1,nf-google@1.21.0,nf-k8s@1.0.0,nf-tower@1.11.2,nf-wave@1.12.1
|
||||
Jul-21 03:07:10.387 [main] INFO o.pf4j.DefaultPluginStatusProvider - Enabled plugins: []
|
||||
Jul-21 03:07:10.388 [main] INFO o.pf4j.DefaultPluginStatusProvider - Disabled plugins: []
|
||||
Jul-21 03:07:10.390 [main] INFO org.pf4j.DefaultPluginManager - PF4J version 3.12.0 in 'deployment' mode
|
||||
Jul-21 03:07:10.399 [main] INFO org.pf4j.AbstractPluginManager - No plugins
|
||||
Jul-21 03:07:10.415 [main] DEBUG nextflow.config.ConfigBuilder - Found config local: /dbs/metabolite-screen-alt/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-21 03:07:10.417 [main] DEBUG nextflow.config.ConfigBuilder - Parsing config file: /dbs/metabolite-screen-alt/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-21 03:07:10.442 [main] DEBUG n.secret.LocalSecretsProvider - Secrets store: /root/.nextflow/secrets/store.json
|
||||
Jul-21 03:07:10.445 [main] DEBUG nextflow.secret.SecretsLoader - Discovered secrets providers: [nextflow.secret.LocalSecretsProvider@759d81f3] - activable => nextflow.secret.LocalSecretsProvider@759d81f3
|
||||
Jul-21 03:07:10.450 [main] DEBUG nextflow.config.ConfigBuilder - Applying config profile: `standard`
|
||||
Jul-21 03:07:10.819 [main] DEBUG nextflow.cli.CmdRun - Applied DSL=2 by global default
|
||||
Jul-21 03:07:10.830 [main] DEBUG nextflow.cli.CmdRun - Launching `test.nf` [confident_euler] DSL2 - revision: b00b655f5b
|
||||
Jul-21 03:07:10.831 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins default=[]
|
||||
Jul-21 03:07:10.831 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins resolved requirement=[]
|
||||
Jul-21 03:07:10.871 [main] DEBUG nextflow.Session - Session UUID: 5e2c3d52-6405-43b3-a203-f96c06488e9b
|
||||
Jul-21 03:07:10.871 [main] DEBUG nextflow.Session - Run name: confident_euler
|
||||
Jul-21 03:07:10.871 [main] DEBUG nextflow.Session - Executor pool size: 20
|
||||
Jul-21 03:07:10.878 [main] DEBUG nextflow.file.FilePorter - File porter settings maxRetries=3; maxTransfers=50; pollTimeout=null
|
||||
Jul-21 03:07:10.883 [main] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'FileTransfer' minSize=10; maxSize=60; workQueue=LinkedBlockingQueue[-1]; allowCoreThreadTimeout=false
|
||||
Jul-21 03:07:10.901 [main] DEBUG nextflow.cli.CmdRun -
|
||||
Version: 25.04.2 build 5947
|
||||
Created: 13-05-2025 21:58 UTC (14:58 PDT)
|
||||
System: Linux 6.8.0-52-generic
|
||||
Runtime: Groovy 4.0.26 on OpenJDK 64-Bit Server VM 17.0.15+6-Ubuntu-0ubuntu122.04
|
||||
Encoding: UTF-8 (UTF-8)
|
||||
Process: 3902257@alien [127.0.1.1]
|
||||
CPUs: 20 - Mem: 62.6 GB (836.3 MB) - Swap: 2 GB (96.4 MB)
|
||||
Jul-21 03:07:10.924 [main] DEBUG nextflow.Session - Work-dir: /dbs/metabolite-screen-alt/nf_metabol_screen_adaptive/work [ext2/ext3]
|
||||
Jul-21 03:07:10.925 [main] DEBUG nextflow.Session - Script base path does not exist or is not a directory: /dbs/metabolite-screen-alt/nf_metabol_screen_adaptive/bin
|
||||
Jul-21 03:07:10.935 [main] DEBUG nextflow.executor.ExecutorFactory - Extension executors providers=[]
|
||||
Jul-21 03:07:10.946 [main] DEBUG nextflow.Session - Observer factory: DefaultObserverFactory
|
||||
Jul-21 03:07:10.967 [main] DEBUG nextflow.Session - Observer factory (v2): LinObserverFactory
|
||||
Jul-21 03:07:10.993 [main] DEBUG nextflow.cache.CacheFactory - Using Nextflow cache factory: nextflow.cache.DefaultCacheFactory
|
||||
Jul-21 03:07:11.002 [main] DEBUG nextflow.util.CustomThreadPool - Creating default thread pool > poolSize: 21; maxThreads: 1000
|
||||
Jul-21 03:07:11.051 [main] DEBUG nextflow.Session - Session start
|
||||
Jul-21 03:07:11.055 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow started -- trace file: /dbs/metabolite-screen-alt/nf_metabol_screen_adaptive/execution_trace.txt
|
||||
Jul-21 03:07:11.178 [main] DEBUG nextflow.script.ScriptRunner - > Launching execution
|
||||
Jul-21 03:07:11.314 [main] DEBUG nextflow.executor.ExecutorFactory - << taskConfig executor: null
|
||||
Jul-21 03:07:11.315 [main] DEBUG nextflow.executor.ExecutorFactory - >> processorType: 'local'
|
||||
Jul-21 03:07:11.320 [main] DEBUG nextflow.executor.Executor - [warm up] executor > local
|
||||
Jul-21 03:07:11.324 [main] DEBUG n.processor.LocalPollingMonitor - Creating local task monitor for executor 'local' > cpus=20; memory=62.6 GB; capacity=20; pollInterval=100ms; dumpInterval=5m
|
||||
Jul-21 03:07:11.327 [main] DEBUG n.processor.TaskPollingMonitor - >>> barrier register (monitor: local)
|
||||
Jul-21 03:07:11.348 [main] DEBUG nextflow.processor.TaskProcessor - Creating process 'METABOLITE_SCREEN': maxForks=0; fair=false; array=0
|
||||
Jul-21 03:07:11.396 [main] DEBUG nextflow.Session - Workflow process names [dsl2]: METABOLITE_SCREEN
|
||||
Jul-21 03:07:11.397 [main] DEBUG nextflow.Session - Igniting dataflow network (1)
|
||||
Jul-21 03:07:11.398 [main] DEBUG nextflow.processor.TaskProcessor - Starting process > METABOLITE_SCREEN
|
||||
Jul-21 03:07:11.399 [main] DEBUG nextflow.script.ScriptRunner - Parsed script files:
|
||||
Script_9d98cafae0c3b8e5: /dbs/metabolite-screen-alt/nf_metabol_screen_adaptive/test.nf
|
||||
Script_c8d2b32ed0aeeac9: /dbs/metabolite-screen-alt/nf_metabol_screen_adaptive/main.nf
|
||||
Jul-21 03:07:11.399 [main] DEBUG nextflow.script.ScriptRunner - > Awaiting termination
|
||||
Jul-21 03:07:11.399 [main] DEBUG nextflow.Session - Session await
|
||||
Jul-21 03:07:11.552 [Task submitter] DEBUG n.executor.local.LocalTaskHandler - Launch cmd line: /bin/bash -ue .command.run
|
||||
Jul-21 03:07:11.554 [Task submitter] INFO nextflow.Session - [f9/21c381] Submitted process > METABOLITE_SCREEN
|
||||
Jul-21 03:07:11.590 [Task monitor] DEBUG n.processor.TaskPollingMonitor - Task completed > TaskHandler[id: 1; name: METABOLITE_SCREEN; status: COMPLETED; exit: 127; error: -; workDir: /dbs/metabolite-screen-alt/nf_metabol_screen_adaptive/work/f9/21c381bcd7594501602fb392f344c9]
|
||||
Jul-21 03:07:11.591 [Task monitor] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'TaskFinalizer' minSize=10; maxSize=60; workQueue=LinkedBlockingQueue[-1]; allowCoreThreadTimeout=false
|
||||
Jul-21 03:07:11.600 [TaskFinalizer-1] DEBUG nextflow.processor.TaskProcessor - Handling unexpected condition for
|
||||
task: name=METABOLITE_SCREEN; work-dir=/dbs/metabolite-screen-alt/nf_metabol_screen_adaptive/work/f9/21c381bcd7594501602fb392f344c9
|
||||
error [nextflow.exception.ProcessFailedException]: Process `METABOLITE_SCREEN` terminated with an error exit status (127)
|
||||
Jul-21 03:07:11.615 [TaskFinalizer-1] ERROR nextflow.processor.TaskProcessor - Error executing process > 'METABOLITE_SCREEN'
|
||||
|
||||
Caused by:
|
||||
Process `METABOLITE_SCREEN` terminated with an error exit status (127)
|
||||
|
||||
|
||||
Command executed:
|
||||
|
||||
set -e
|
||||
python /app/screen.py -i metabolites-rev.tsv -z protein_seq.zarr
|
||||
|
||||
Command exit status:
|
||||
127
|
||||
|
||||
Command output:
|
||||
(empty)
|
||||
|
||||
Command error:
|
||||
.command.sh: line 3: python: command not found
|
||||
|
||||
Work dir:
|
||||
/dbs/metabolite-screen-alt/nf_metabol_screen_adaptive/work/f9/21c381bcd7594501602fb392f344c9
|
||||
|
||||
Tip: view the complete command output by changing to the process work dir and entering the command `cat .command.out`
|
||||
Jul-21 03:07:11.621 [main] DEBUG nextflow.Session - Session await > all processes finished
|
||||
Jul-21 03:07:11.628 [TaskFinalizer-1] DEBUG nextflow.Session - Session aborted -- Cause: Process `METABOLITE_SCREEN` terminated with an error exit status (127)
|
||||
Jul-21 03:07:11.643 [main] DEBUG nextflow.Session - Session await > all barriers passed
|
||||
Jul-21 03:07:11.643 [Task monitor] DEBUG n.processor.TaskPollingMonitor - <<< barrier arrives (monitor: local) - terminating tasks monitor poll loop
|
||||
Jul-21 03:07:11.648 [main] DEBUG n.trace.WorkflowStatsObserver - Workflow completed > WorkflowStats[succeededCount=0; failedCount=1; ignoredCount=0; cachedCount=0; pendingCount=0; submittedCount=0; runningCount=0; retriesCount=0; abortedCount=0; succeedDuration=0ms; failedDuration=18ms; cachedDuration=0ms;loadCpus=0; loadMemory=0; peakRunning=1; peakCpus=1; peakMemory=10 GB; ]
|
||||
Jul-21 03:07:11.648 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow completed -- saving trace file
|
||||
Jul-21 03:07:11.649 [main] DEBUG nextflow.trace.ReportObserver - Workflow completed -- rendering execution report
|
||||
Jul-21 03:07:12.149 [main] DEBUG nextflow.trace.TimelineObserver - Workflow completed -- rendering execution timeline
|
||||
Jul-21 03:07:12.189 [main] DEBUG nextflow.cache.CacheDB - Closing CacheDB done
|
||||
Jul-21 03:07:12.197 [main] DEBUG nextflow.script.ScriptRunner - > Execution complete -- Goodbye
|
||||
@@ -0,0 +1,67 @@
|
||||
Jul-15 07:43:54.338 [main] DEBUG nextflow.cli.Launcher - $> nextflow run -profile docker test.nf
|
||||
Jul-15 07:43:54.407 [main] DEBUG nextflow.cli.CmdRun - N E X T F L O W ~ version 24.10.3
|
||||
Jul-15 07:43:54.418 [main] DEBUG nextflow.plugin.PluginsFacade - Setting up plugin manager > mode=prod; embedded=false; plugins-dir=/root/.nextflow/plugins; core-plugins: nf-amazon@2.9.2,nf-azure@1.10.2,nf-cloudcache@0.4.2,nf-codecommit@0.2.2,nf-console@1.1.4,nf-google@1.15.3,nf-tower@1.9.3,nf-wave@1.7.4
|
||||
Jul-15 07:43:54.443 [main] INFO o.pf4j.DefaultPluginStatusProvider - Enabled plugins: []
|
||||
Jul-15 07:43:54.443 [main] INFO o.pf4j.DefaultPluginStatusProvider - Disabled plugins: []
|
||||
Jul-15 07:43:54.445 [main] INFO org.pf4j.DefaultPluginManager - PF4J version 3.12.0 in 'deployment' mode
|
||||
Jul-15 07:43:54.452 [main] INFO org.pf4j.AbstractPluginManager - No plugins
|
||||
Jul-15 07:43:54.463 [main] DEBUG nextflow.config.ConfigBuilder - Found config local: /data/bugrasWorkspace3/metabolite-screen-alt/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-15 07:43:54.464 [main] DEBUG nextflow.config.ConfigBuilder - Parsing config file: /data/bugrasWorkspace3/metabolite-screen-alt/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-15 07:43:54.479 [main] DEBUG n.secret.LocalSecretsProvider - Secrets store: /root/.nextflow/secrets/store.json
|
||||
Jul-15 07:43:54.481 [main] DEBUG nextflow.secret.SecretsLoader - Discovered secrets providers: [nextflow.secret.LocalSecretsProvider@17ca8b92] - activable => nextflow.secret.LocalSecretsProvider@17ca8b92
|
||||
Jul-15 07:43:54.484 [main] DEBUG nextflow.config.ConfigBuilder - Applying config profile: `docker`
|
||||
Jul-15 07:43:54.738 [main] DEBUG nextflow.config.ConfigBuilder - Available config profiles: [k8s, docker]
|
||||
Jul-15 07:43:54.752 [main] DEBUG nextflow.cli.CmdRun - Applied DSL=2 by global default
|
||||
Jul-15 07:43:54.763 [main] DEBUG nextflow.cli.CmdRun - Launching `test.nf` [boring_faggin] DSL2 - revision: b00b655f5b
|
||||
Jul-15 07:43:54.764 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins default=[]
|
||||
Jul-15 07:43:54.764 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins resolved requirement=[]
|
||||
Jul-15 07:43:54.796 [main] DEBUG nextflow.Session - Session UUID: 063177a9-1ffb-407e-a41d-e6a1184c5dd1
|
||||
Jul-15 07:43:54.796 [main] DEBUG nextflow.Session - Run name: boring_faggin
|
||||
Jul-15 07:43:54.797 [main] DEBUG nextflow.Session - Executor pool size: 32
|
||||
Jul-15 07:43:54.803 [main] DEBUG nextflow.file.FilePorter - File porter settings maxRetries=3; maxTransfers=50; pollTimeout=null
|
||||
Jul-15 07:43:54.807 [main] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'FileTransfer' minSize=10; maxSize=96; workQueue=LinkedBlockingQueue[10000]; allowCoreThreadTimeout=false
|
||||
Jul-15 07:43:54.825 [main] DEBUG nextflow.cli.CmdRun -
|
||||
Version: 24.10.3 build 5933
|
||||
Created: 16-12-2024 15:34 UTC (07:34 PDT)
|
||||
System: Linux 6.8.0-58-generic
|
||||
Runtime: Groovy 4.0.23 on OpenJDK 64-Bit Server VM 21.0.7+6-Ubuntu-0ubuntu124.04
|
||||
Encoding: UTF-8 (UTF-8)
|
||||
Process: 3458331@bigbertha [127.0.1.1]
|
||||
CPUs: 32 - Mem: 61.9 GB (4.3 GB) - Swap: 8 GB (128 KB)
|
||||
Jul-15 07:43:54.842 [main] DEBUG nextflow.Session - Work-dir: /data/bugrasWorkspace3/metabolite-screen-alt/nf_metabol_screen_adaptive/work [ext2/ext3]
|
||||
Jul-15 07:43:54.842 [main] DEBUG nextflow.Session - Script base path does not exist or is not a directory: /data/bugrasWorkspace3/metabolite-screen-alt/nf_metabol_screen_adaptive/bin
|
||||
Jul-15 07:43:54.848 [main] DEBUG nextflow.executor.ExecutorFactory - Extension executors providers=[]
|
||||
Jul-15 07:43:54.853 [main] DEBUG nextflow.Session - Observer factory: DefaultObserverFactory
|
||||
Jul-15 07:43:54.872 [main] DEBUG nextflow.cache.CacheFactory - Using Nextflow cache factory: nextflow.cache.DefaultCacheFactory
|
||||
Jul-15 07:43:54.877 [main] DEBUG nextflow.util.CustomThreadPool - Creating default thread pool > poolSize: 33; maxThreads: 1000
|
||||
Jul-15 07:43:55.002 [main] DEBUG nextflow.Session - Session start
|
||||
Jul-15 07:43:55.003 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow started -- trace file: /data/bugrasWorkspace3/metabolite-screen-alt/nf_metabol_screen_adaptive/execution_trace.txt
|
||||
Jul-15 07:43:55.083 [main] DEBUG nextflow.script.ScriptRunner - > Launching execution
|
||||
Jul-15 07:43:55.196 [main] DEBUG nextflow.executor.ExecutorFactory - << taskConfig executor: null
|
||||
Jul-15 07:43:55.196 [main] DEBUG nextflow.executor.ExecutorFactory - >> processorType: 'local'
|
||||
Jul-15 07:43:55.199 [main] DEBUG nextflow.executor.Executor - [warm up] executor > local
|
||||
Jul-15 07:43:55.204 [main] DEBUG n.processor.LocalPollingMonitor - Creating local task monitor for executor 'local' > cpus=32; memory=61.9 GB; capacity=32; pollInterval=100ms; dumpInterval=5m
|
||||
Jul-15 07:43:55.205 [main] DEBUG n.processor.TaskPollingMonitor - >>> barrier register (monitor: local)
|
||||
Jul-15 07:43:55.246 [main] DEBUG nextflow.Session - Workflow process names [dsl2]: METABOLITE_SCREEN
|
||||
Jul-15 07:43:55.247 [main] DEBUG nextflow.Session - Igniting dataflow network (1)
|
||||
Jul-15 07:43:55.247 [main] DEBUG nextflow.processor.TaskProcessor - Starting process > METABOLITE_SCREEN
|
||||
Jul-15 07:43:55.247 [main] DEBUG nextflow.script.ScriptRunner - Parsed script files:
|
||||
Script_9d98cafae0c3b8e5: /data/bugrasWorkspace3/metabolite-screen-alt/nf_metabol_screen_adaptive/test.nf
|
||||
Script_c8d2b32ed0aeeac9: /data/bugrasWorkspace3/metabolite-screen-alt/nf_metabol_screen_adaptive/./main.nf
|
||||
Jul-15 07:43:55.247 [main] DEBUG nextflow.script.ScriptRunner - > Awaiting termination
|
||||
Jul-15 07:43:55.247 [main] DEBUG nextflow.Session - Session await
|
||||
Jul-15 07:43:55.334 [Task submitter] DEBUG n.executor.local.LocalTaskHandler - Launch cmd line: /bin/bash -ue .command.run
|
||||
Jul-15 07:43:55.336 [Task submitter] INFO nextflow.Session - [5b/95e3bb] Submitted process > METABOLITE_SCREEN
|
||||
Jul-15 07:44:05.790 [Task monitor] DEBUG n.processor.TaskPollingMonitor - Task completed > TaskHandler[id: 1; name: METABOLITE_SCREEN; status: COMPLETED; exit: 0; error: -; workDir: /data/bugrasWorkspace3/metabolite-screen-alt/nf_metabol_screen_adaptive/work/5b/95e3bb5e9a086140ca514eab04dd78]
|
||||
Jul-15 07:44:05.791 [Task monitor] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'TaskFinalizer' minSize=10; maxSize=96; workQueue=LinkedBlockingQueue[10000]; allowCoreThreadTimeout=false
|
||||
Jul-15 07:44:06.031 [main] DEBUG nextflow.Session - Session await > all processes finished
|
||||
Jul-15 07:44:06.090 [Task monitor] DEBUG n.processor.TaskPollingMonitor - <<< barrier arrives (monitor: local) - terminating tasks monitor poll loop
|
||||
Jul-15 07:44:06.090 [main] DEBUG nextflow.Session - Session await > all barriers passed
|
||||
Jul-15 07:44:06.091 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'TaskFinalizer' shutdown completed (hard=false)
|
||||
Jul-15 07:44:06.094 [main] DEBUG n.trace.WorkflowStatsObserver - Workflow completed > WorkflowStats[succeededCount=1; failedCount=0; ignoredCount=0; cachedCount=0; pendingCount=0; submittedCount=0; runningCount=0; retriesCount=0; abortedCount=0; succeedDuration=2.8s; failedDuration=0ms; cachedDuration=0ms;loadCpus=0; loadMemory=0; peakRunning=1; peakCpus=1; peakMemory=10 GB; ]
|
||||
Jul-15 07:44:06.094 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow completed -- saving trace file
|
||||
Jul-15 07:44:06.095 [main] DEBUG nextflow.trace.ReportObserver - Workflow completed -- rendering execution report
|
||||
Jul-15 07:44:06.349 [main] DEBUG nextflow.trace.TimelineObserver - Workflow completed -- rendering execution timeline
|
||||
Jul-15 07:44:06.431 [main] DEBUG nextflow.cache.CacheDB - Closing CacheDB done
|
||||
Jul-15 07:44:06.436 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'FileTransfer' shutdown completed (hard=false)
|
||||
Jul-15 07:44:06.436 [main] DEBUG nextflow.script.ScriptRunner - > Execution complete -- Goodbye
|
||||
@@ -0,0 +1,80 @@
|
||||
Jul-11 04:23:14.724 [main] DEBUG nextflow.cli.Launcher - $> nextflow run -profile docker test.nf -bg -with-tower 'http://nucleus.omic.ai:8000/api'
|
||||
Jul-11 04:23:14.779 [main] INFO nextflow.cli.CmdRun - N E X T F L O W ~ version 24.10.3
|
||||
Jul-11 04:23:14.789 [main] DEBUG nextflow.plugin.PluginsFacade - Setting up plugin manager > mode=prod; embedded=false; plugins-dir=/root/.nextflow/plugins; core-plugins: nf-amazon@2.9.2,nf-azure@1.10.2,nf-cloudcache@0.4.2,nf-codecommit@0.2.2,nf-console@1.1.4,nf-google@1.15.3,nf-tower@1.9.3,nf-wave@1.7.4
|
||||
Jul-11 04:23:14.808 [main] INFO o.pf4j.DefaultPluginStatusProvider - Enabled plugins: []
|
||||
Jul-11 04:23:14.808 [main] INFO o.pf4j.DefaultPluginStatusProvider - Disabled plugins: []
|
||||
Jul-11 04:23:14.810 [main] INFO org.pf4j.DefaultPluginManager - PF4J version 3.12.0 in 'deployment' mode
|
||||
Jul-11 04:23:14.820 [main] INFO org.pf4j.AbstractPluginManager - No plugins
|
||||
Jul-11 04:23:14.831 [main] DEBUG nextflow.config.ConfigBuilder - Found config local: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-11 04:23:14.832 [main] DEBUG nextflow.config.ConfigBuilder - Parsing config file: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-11 04:23:14.849 [main] DEBUG n.secret.LocalSecretsProvider - Secrets store: /root/.nextflow/secrets/store.json
|
||||
Jul-11 04:23:14.851 [main] DEBUG nextflow.secret.SecretsLoader - Discovered secrets providers: [nextflow.secret.LocalSecretsProvider@26a94fa5] - activable => nextflow.secret.LocalSecretsProvider@26a94fa5
|
||||
Jul-11 04:23:14.853 [main] DEBUG nextflow.config.ConfigBuilder - Applying config profile: `docker`
|
||||
Jul-11 04:23:15.119 [main] DEBUG nextflow.config.ConfigBuilder - Available config profiles: [k8s, docker]
|
||||
Jul-11 04:23:15.133 [main] DEBUG nextflow.cli.CmdRun - Applied DSL=2 by global default
|
||||
Jul-11 04:23:15.145 [main] INFO nextflow.cli.CmdRun - Launching `test.nf` [admiring_magritte] DSL2 - revision: 5f66a2b283
|
||||
Jul-11 04:23:15.145 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins default=[]
|
||||
Jul-11 04:23:15.146 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins resolved requirement=[nf-tower@1.9.3]
|
||||
Jul-11 04:23:15.146 [main] DEBUG nextflow.plugin.PluginUpdater - Installing plugin nf-tower version: 1.9.3
|
||||
Jul-11 04:23:15.150 [main] INFO org.pf4j.AbstractPluginManager - Plugin 'nf-tower@1.9.3' resolved
|
||||
Jul-11 04:23:15.150 [main] INFO org.pf4j.AbstractPluginManager - Start plugin 'nf-tower@1.9.3'
|
||||
Jul-11 04:23:15.165 [main] DEBUG nextflow.plugin.BasePlugin - Plugin started nf-tower@1.9.3
|
||||
Jul-11 04:23:15.195 [main] DEBUG nextflow.Session - Session UUID: 8abf60bb-5459-4d36-9886-d8f0064971ac
|
||||
Jul-11 04:23:15.195 [main] DEBUG nextflow.Session - Run name: admiring_magritte
|
||||
Jul-11 04:23:15.195 [main] DEBUG nextflow.Session - Executor pool size: 32
|
||||
Jul-11 04:23:15.200 [main] DEBUG nextflow.file.FilePorter - File porter settings maxRetries=3; maxTransfers=50; pollTimeout=null
|
||||
Jul-11 04:23:15.203 [main] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'FileTransfer' minSize=10; maxSize=96; workQueue=LinkedBlockingQueue[10000]; allowCoreThreadTimeout=false
|
||||
Jul-11 04:23:15.205 [main] DEBUG nextflow.config.ConfigBuilder - Found config local: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-11 04:23:15.205 [main] DEBUG nextflow.config.ConfigBuilder - Parsing config file: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-11 04:23:15.206 [main] DEBUG nextflow.config.ConfigBuilder - Applying config profile: `docker`
|
||||
Jul-11 04:23:15.243 [main] DEBUG nextflow.config.ConfigBuilder - Available config profiles: [k8s, docker]
|
||||
Jul-11 04:23:15.269 [main] DEBUG nextflow.cli.CmdRun -
|
||||
Version: 24.10.3 build 5933
|
||||
Created: 16-12-2024 15:34 UTC (07:34 PDT)
|
||||
System: Linux 6.8.0-58-generic
|
||||
Runtime: Groovy 4.0.23 on OpenJDK 64-Bit Server VM 21.0.7+6-Ubuntu-0ubuntu124.04
|
||||
Encoding: UTF-8 (UTF-8)
|
||||
Process: 2298940@bigbertha [127.0.1.1]
|
||||
CPUs: 32 - Mem: 61.9 GB (882.4 MB) - Swap: 8 GB (972 KB)
|
||||
Jul-11 04:23:15.288 [main] DEBUG nextflow.Session - Work-dir: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/work [ext2/ext3]
|
||||
Jul-11 04:23:15.288 [main] DEBUG nextflow.Session - Script base path does not exist or is not a directory: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/bin
|
||||
Jul-11 04:23:15.295 [main] DEBUG nextflow.executor.ExecutorFactory - Extension executors providers=[]
|
||||
Jul-11 04:23:15.301 [main] DEBUG nextflow.Session - Observer factory: DefaultObserverFactory
|
||||
Jul-11 04:23:15.309 [main] DEBUG nextflow.Session - Observer factory: TowerFactory
|
||||
Jul-11 04:23:15.438 [main] DEBUG nextflow.cache.CacheFactory - Using Nextflow cache factory: nextflow.cache.DefaultCacheFactory
|
||||
Jul-11 04:23:15.444 [main] DEBUG nextflow.util.CustomThreadPool - Creating default thread pool > poolSize: 33; maxThreads: 1000
|
||||
Jul-11 04:23:15.651 [main] DEBUG nextflow.Session - Session start
|
||||
Jul-11 04:23:15.653 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow started -- trace file: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/execution_trace.txt
|
||||
Jul-11 04:23:15.656 [main] DEBUG io.seqera.tower.plugin.TowerClient - Creating Seqera Platform observer -- endpoint=http://nucleus.omic.ai:8000/api; requestInterval=1s; aliveInterval=1m; maxRetries=5; backOffBase=3; backOffDelay=250
|
||||
Jul-11 04:23:15.893 [main] DEBUG nextflow.script.ScriptRunner - > Launching execution
|
||||
Jul-11 04:23:15.972 [main] DEBUG nextflow.executor.ExecutorFactory - << taskConfig executor: null
|
||||
Jul-11 04:23:15.973 [main] DEBUG nextflow.executor.ExecutorFactory - >> processorType: 'local'
|
||||
Jul-11 04:23:15.975 [main] DEBUG nextflow.executor.Executor - [warm up] executor > local
|
||||
Jul-11 04:23:15.979 [main] DEBUG n.processor.LocalPollingMonitor - Creating local task monitor for executor 'local' > cpus=32; memory=61.9 GB; capacity=32; pollInterval=100ms; dumpInterval=5m
|
||||
Jul-11 04:23:15.980 [main] DEBUG n.processor.TaskPollingMonitor - >>> barrier register (monitor: local)
|
||||
Jul-11 04:23:16.020 [main] DEBUG nextflow.Session - Workflow process names [dsl2]: METABOLITE_SCREEN
|
||||
Jul-11 04:23:16.140 [main] INFO io.seqera.tower.plugin.TowerClient - Monitor the execution with Seqera Platform using this URL: http://localhost:8000/watch/J8JA6yEb
|
||||
Jul-11 04:23:16.141 [main] DEBUG nextflow.Session - Igniting dataflow network (1)
|
||||
Jul-11 04:23:16.141 [main] DEBUG nextflow.processor.TaskProcessor - Starting process > METABOLITE_SCREEN
|
||||
Jul-11 04:23:16.141 [main] DEBUG nextflow.script.ScriptRunner - Parsed script files:
|
||||
Script_c8d2b32ed0aeeac9: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/./main.nf
|
||||
Script_85e5efa6aea507c6: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/test.nf
|
||||
Jul-11 04:23:16.141 [main] DEBUG nextflow.script.ScriptRunner - > Awaiting termination
|
||||
Jul-11 04:23:16.141 [main] DEBUG nextflow.Session - Session await
|
||||
Jul-11 04:23:16.243 [Task submitter] DEBUG n.executor.local.LocalTaskHandler - Launch cmd line: /bin/bash -ue .command.run
|
||||
Jul-11 04:23:16.245 [Task submitter] INFO nextflow.Session - [cf/a7b064] Submitted process > METABOLITE_SCREEN
|
||||
Jul-11 04:23:34.062 [Task monitor] DEBUG n.processor.TaskPollingMonitor - Task completed > TaskHandler[id: 1; name: METABOLITE_SCREEN; status: COMPLETED; exit: 0; error: -; workDir: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/work/cf/a7b0643787b68bed3189f63698ed53]
|
||||
Jul-11 04:23:34.063 [Task monitor] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'TaskFinalizer' minSize=10; maxSize=96; workQueue=LinkedBlockingQueue[10000]; allowCoreThreadTimeout=false
|
||||
Jul-11 04:23:34.299 [main] DEBUG nextflow.Session - Session await > all processes finished
|
||||
Jul-11 04:23:34.362 [Task monitor] DEBUG n.processor.TaskPollingMonitor - <<< barrier arrives (monitor: local) - terminating tasks monitor poll loop
|
||||
Jul-11 04:23:34.362 [main] DEBUG nextflow.Session - Session await > all barriers passed
|
||||
Jul-11 04:23:34.364 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'TaskFinalizer' shutdown completed (hard=false)
|
||||
Jul-11 04:23:34.366 [main] DEBUG n.trace.WorkflowStatsObserver - Workflow completed > WorkflowStats[succeededCount=1; failedCount=0; ignoredCount=0; cachedCount=0; pendingCount=0; submittedCount=0; runningCount=0; retriesCount=0; abortedCount=0; succeedDuration=7.7s; failedDuration=0ms; cachedDuration=0ms;loadCpus=0; loadMemory=0; peakRunning=1; peakCpus=1; peakMemory=10 GB; ]
|
||||
Jul-11 04:23:34.366 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow completed -- saving trace file
|
||||
Jul-11 04:23:34.367 [main] DEBUG nextflow.trace.ReportObserver - Workflow completed -- rendering execution report
|
||||
Jul-11 04:23:34.614 [main] DEBUG nextflow.trace.TimelineObserver - Workflow completed -- rendering execution timeline
|
||||
Jul-11 04:23:34.743 [main] DEBUG nextflow.cache.CacheDB - Closing CacheDB done
|
||||
Jul-11 04:23:34.748 [main] INFO org.pf4j.AbstractPluginManager - Stop plugin 'nf-tower@1.9.3'
|
||||
Jul-11 04:23:34.748 [main] DEBUG nextflow.plugin.BasePlugin - Plugin stopped nf-tower
|
||||
Jul-11 04:23:34.749 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'FileTransfer' shutdown completed (hard=false)
|
||||
Jul-11 04:23:34.749 [main] DEBUG nextflow.script.ScriptRunner - > Execution complete -- Goodbye
|
||||
@@ -0,0 +1,67 @@
|
||||
Jul-10 05:08:04.417 [main] DEBUG nextflow.cli.Launcher - $> nextflow run -profile docker test.nf
|
||||
Jul-10 05:08:04.464 [main] DEBUG nextflow.cli.CmdRun - N E X T F L O W ~ version 24.10.3
|
||||
Jul-10 05:08:04.474 [main] DEBUG nextflow.plugin.PluginsFacade - Setting up plugin manager > mode=prod; embedded=false; plugins-dir=/root/.nextflow/plugins; core-plugins: nf-amazon@2.9.2,nf-azure@1.10.2,nf-cloudcache@0.4.2,nf-codecommit@0.2.2,nf-console@1.1.4,nf-google@1.15.3,nf-tower@1.9.3,nf-wave@1.7.4
|
||||
Jul-10 05:08:04.515 [main] INFO o.pf4j.DefaultPluginStatusProvider - Enabled plugins: []
|
||||
Jul-10 05:08:04.516 [main] INFO o.pf4j.DefaultPluginStatusProvider - Disabled plugins: []
|
||||
Jul-10 05:08:04.517 [main] INFO org.pf4j.DefaultPluginManager - PF4J version 3.12.0 in 'deployment' mode
|
||||
Jul-10 05:08:04.523 [main] INFO org.pf4j.AbstractPluginManager - No plugins
|
||||
Jul-10 05:08:04.533 [main] DEBUG nextflow.config.ConfigBuilder - Found config local: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-10 05:08:04.534 [main] DEBUG nextflow.config.ConfigBuilder - Parsing config file: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-10 05:08:04.549 [main] DEBUG n.secret.LocalSecretsProvider - Secrets store: /root/.nextflow/secrets/store.json
|
||||
Jul-10 05:08:04.551 [main] DEBUG nextflow.secret.SecretsLoader - Discovered secrets providers: [nextflow.secret.LocalSecretsProvider@17ca8b92] - activable => nextflow.secret.LocalSecretsProvider@17ca8b92
|
||||
Jul-10 05:08:04.556 [main] DEBUG nextflow.config.ConfigBuilder - Applying config profile: `docker`
|
||||
Jul-10 05:08:04.812 [main] DEBUG nextflow.config.ConfigBuilder - Available config profiles: [k8s, docker]
|
||||
Jul-10 05:08:04.827 [main] DEBUG nextflow.cli.CmdRun - Applied DSL=2 by global default
|
||||
Jul-10 05:08:04.834 [main] DEBUG nextflow.cli.CmdRun - Launching `test.nf` [drunk_swartz] DSL2 - revision: 8594c93ec6
|
||||
Jul-10 05:08:04.834 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins default=[]
|
||||
Jul-10 05:08:04.835 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins resolved requirement=[]
|
||||
Jul-10 05:08:04.859 [main] DEBUG nextflow.Session - Session UUID: 925b41d5-7b1c-4ed9-b34c-88420509e2e8
|
||||
Jul-10 05:08:04.859 [main] DEBUG nextflow.Session - Run name: drunk_swartz
|
||||
Jul-10 05:08:04.859 [main] DEBUG nextflow.Session - Executor pool size: 32
|
||||
Jul-10 05:08:04.863 [main] DEBUG nextflow.file.FilePorter - File porter settings maxRetries=3; maxTransfers=50; pollTimeout=null
|
||||
Jul-10 05:08:04.866 [main] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'FileTransfer' minSize=10; maxSize=96; workQueue=LinkedBlockingQueue[10000]; allowCoreThreadTimeout=false
|
||||
Jul-10 05:08:04.878 [main] DEBUG nextflow.cli.CmdRun -
|
||||
Version: 24.10.3 build 5933
|
||||
Created: 16-12-2024 15:34 UTC (07:34 PDT)
|
||||
System: Linux 6.8.0-58-generic
|
||||
Runtime: Groovy 4.0.23 on OpenJDK 64-Bit Server VM 21.0.7+6-Ubuntu-0ubuntu124.04
|
||||
Encoding: UTF-8 (UTF-8)
|
||||
Process: 324567@bigbertha [127.0.1.1]
|
||||
CPUs: 32 - Mem: 61.9 GB (4 GB) - Swap: 8 GB (5.6 MB)
|
||||
Jul-10 05:08:04.889 [main] DEBUG nextflow.Session - Work-dir: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/work [ext2/ext3]
|
||||
Jul-10 05:08:04.889 [main] DEBUG nextflow.Session - Script base path does not exist or is not a directory: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/bin
|
||||
Jul-10 05:08:04.894 [main] DEBUG nextflow.executor.ExecutorFactory - Extension executors providers=[]
|
||||
Jul-10 05:08:04.899 [main] DEBUG nextflow.Session - Observer factory: DefaultObserverFactory
|
||||
Jul-10 05:08:04.921 [main] DEBUG nextflow.cache.CacheFactory - Using Nextflow cache factory: nextflow.cache.DefaultCacheFactory
|
||||
Jul-10 05:08:04.926 [main] DEBUG nextflow.util.CustomThreadPool - Creating default thread pool > poolSize: 33; maxThreads: 1000
|
||||
Jul-10 05:08:05.053 [main] DEBUG nextflow.Session - Session start
|
||||
Jul-10 05:08:05.054 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow started -- trace file: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/execution_trace.txt
|
||||
Jul-10 05:08:05.123 [main] DEBUG nextflow.script.ScriptRunner - > Launching execution
|
||||
Jul-10 05:08:05.213 [main] DEBUG nextflow.executor.ExecutorFactory - << taskConfig executor: null
|
||||
Jul-10 05:08:05.213 [main] DEBUG nextflow.executor.ExecutorFactory - >> processorType: 'local'
|
||||
Jul-10 05:08:05.216 [main] DEBUG nextflow.executor.Executor - [warm up] executor > local
|
||||
Jul-10 05:08:05.220 [main] DEBUG n.processor.LocalPollingMonitor - Creating local task monitor for executor 'local' > cpus=32; memory=61.9 GB; capacity=32; pollInterval=100ms; dumpInterval=5m
|
||||
Jul-10 05:08:05.221 [main] DEBUG n.processor.TaskPollingMonitor - >>> barrier register (monitor: local)
|
||||
Jul-10 05:08:05.260 [main] DEBUG nextflow.Session - Workflow process names [dsl2]: METABOLITE_SCREEN
|
||||
Jul-10 05:08:05.261 [main] DEBUG nextflow.Session - Igniting dataflow network (1)
|
||||
Jul-10 05:08:05.261 [main] DEBUG nextflow.processor.TaskProcessor - Starting process > METABOLITE_SCREEN
|
||||
Jul-10 05:08:05.261 [main] DEBUG nextflow.script.ScriptRunner - Parsed script files:
|
||||
Script_c8d2b32ed0aeeac9: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/./main.nf
|
||||
Script_041bcf7aceb7d897: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/test.nf
|
||||
Jul-10 05:08:05.261 [main] DEBUG nextflow.script.ScriptRunner - > Awaiting termination
|
||||
Jul-10 05:08:05.261 [main] DEBUG nextflow.Session - Session await
|
||||
Jul-10 05:08:05.359 [Task submitter] DEBUG n.executor.local.LocalTaskHandler - Launch cmd line: /bin/bash -ue .command.run
|
||||
Jul-10 05:08:05.360 [Task submitter] INFO nextflow.Session - [0a/8843c6] Submitted process > METABOLITE_SCREEN
|
||||
Jul-10 05:08:37.851 [Task monitor] DEBUG n.processor.TaskPollingMonitor - Task completed > TaskHandler[id: 1; name: METABOLITE_SCREEN; status: COMPLETED; exit: 0; error: -; workDir: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/work/0a/8843c652f011dbd021cd836c526d44]
|
||||
Jul-10 05:08:37.852 [Task monitor] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'TaskFinalizer' minSize=10; maxSize=96; workQueue=LinkedBlockingQueue[10000]; allowCoreThreadTimeout=false
|
||||
Jul-10 05:08:38.827 [main] DEBUG nextflow.Session - Session await > all processes finished
|
||||
Jul-10 05:08:38.852 [Task monitor] DEBUG n.processor.TaskPollingMonitor - <<< barrier arrives (monitor: local) - terminating tasks monitor poll loop
|
||||
Jul-10 05:08:38.852 [main] DEBUG nextflow.Session - Session await > all barriers passed
|
||||
Jul-10 05:08:38.853 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'TaskFinalizer' shutdown completed (hard=false)
|
||||
Jul-10 05:08:38.857 [main] DEBUG n.trace.WorkflowStatsObserver - Workflow completed > WorkflowStats[succeededCount=1; failedCount=0; ignoredCount=0; cachedCount=0; pendingCount=0; submittedCount=0; runningCount=0; retriesCount=0; abortedCount=0; succeedDuration=13.6s; failedDuration=0ms; cachedDuration=0ms;loadCpus=0; loadMemory=0; peakRunning=1; peakCpus=1; peakMemory=10 GB; ]
|
||||
Jul-10 05:08:38.857 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow completed -- saving trace file
|
||||
Jul-10 05:08:38.858 [main] DEBUG nextflow.trace.ReportObserver - Workflow completed -- rendering execution report
|
||||
Jul-10 05:08:39.681 [main] DEBUG nextflow.trace.TimelineObserver - Workflow completed -- rendering execution timeline
|
||||
Jul-10 05:08:39.893 [main] DEBUG nextflow.cache.CacheDB - Closing CacheDB done
|
||||
Jul-10 05:08:39.897 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'FileTransfer' shutdown completed (hard=false)
|
||||
Jul-10 05:08:39.897 [main] DEBUG nextflow.script.ScriptRunner - > Execution complete -- Goodbye
|
||||
@@ -0,0 +1,67 @@
|
||||
Jul-10 05:06:57.796 [main] DEBUG nextflow.cli.Launcher - $> nextflow run -profile docker test.nf
|
||||
Jul-10 05:06:57.858 [main] DEBUG nextflow.cli.CmdRun - N E X T F L O W ~ version 24.10.3
|
||||
Jul-10 05:06:57.870 [main] DEBUG nextflow.plugin.PluginsFacade - Setting up plugin manager > mode=prod; embedded=false; plugins-dir=/root/.nextflow/plugins; core-plugins: nf-amazon@2.9.2,nf-azure@1.10.2,nf-cloudcache@0.4.2,nf-codecommit@0.2.2,nf-console@1.1.4,nf-google@1.15.3,nf-tower@1.9.3,nf-wave@1.7.4
|
||||
Jul-10 05:06:57.889 [main] INFO o.pf4j.DefaultPluginStatusProvider - Enabled plugins: []
|
||||
Jul-10 05:06:57.890 [main] INFO o.pf4j.DefaultPluginStatusProvider - Disabled plugins: []
|
||||
Jul-10 05:06:57.891 [main] INFO org.pf4j.DefaultPluginManager - PF4J version 3.12.0 in 'deployment' mode
|
||||
Jul-10 05:06:57.899 [main] INFO org.pf4j.AbstractPluginManager - No plugins
|
||||
Jul-10 05:06:57.909 [main] DEBUG nextflow.config.ConfigBuilder - Found config local: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-10 05:06:57.911 [main] DEBUG nextflow.config.ConfigBuilder - Parsing config file: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/nextflow.config
|
||||
Jul-10 05:06:57.927 [main] DEBUG n.secret.LocalSecretsProvider - Secrets store: /root/.nextflow/secrets/store.json
|
||||
Jul-10 05:06:57.929 [main] DEBUG nextflow.secret.SecretsLoader - Discovered secrets providers: [nextflow.secret.LocalSecretsProvider@17ca8b92] - activable => nextflow.secret.LocalSecretsProvider@17ca8b92
|
||||
Jul-10 05:06:57.931 [main] DEBUG nextflow.config.ConfigBuilder - Applying config profile: `docker`
|
||||
Jul-10 05:06:58.207 [main] DEBUG nextflow.config.ConfigBuilder - Available config profiles: [k8s, docker]
|
||||
Jul-10 05:06:58.222 [main] DEBUG nextflow.cli.CmdRun - Applied DSL=2 by global default
|
||||
Jul-10 05:06:58.232 [main] DEBUG nextflow.cli.CmdRun - Launching `test.nf` [nice_lagrange] DSL2 - revision: 8594c93ec6
|
||||
Jul-10 05:06:58.233 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins default=[]
|
||||
Jul-10 05:06:58.233 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins resolved requirement=[]
|
||||
Jul-10 05:06:58.266 [main] DEBUG nextflow.Session - Session UUID: 63ec0e24-1334-45e4-a396-bb1b7734bb1c
|
||||
Jul-10 05:06:58.266 [main] DEBUG nextflow.Session - Run name: nice_lagrange
|
||||
Jul-10 05:06:58.266 [main] DEBUG nextflow.Session - Executor pool size: 32
|
||||
Jul-10 05:06:58.271 [main] DEBUG nextflow.file.FilePorter - File porter settings maxRetries=3; maxTransfers=50; pollTimeout=null
|
||||
Jul-10 05:06:58.274 [main] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'FileTransfer' minSize=10; maxSize=96; workQueue=LinkedBlockingQueue[10000]; allowCoreThreadTimeout=false
|
||||
Jul-10 05:06:58.292 [main] DEBUG nextflow.cli.CmdRun -
|
||||
Version: 24.10.3 build 5933
|
||||
Created: 16-12-2024 15:34 UTC (07:34 PDT)
|
||||
System: Linux 6.8.0-58-generic
|
||||
Runtime: Groovy 4.0.23 on OpenJDK 64-Bit Server VM 21.0.7+6-Ubuntu-0ubuntu124.04
|
||||
Encoding: UTF-8 (UTF-8)
|
||||
Process: 318707@bigbertha [127.0.1.1]
|
||||
CPUs: 32 - Mem: 61.9 GB (5.9 GB) - Swap: 8 GB (692 KB)
|
||||
Jul-10 05:06:58.308 [main] DEBUG nextflow.Session - Work-dir: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/work [ext2/ext3]
|
||||
Jul-10 05:06:58.309 [main] DEBUG nextflow.Session - Script base path does not exist or is not a directory: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/bin
|
||||
Jul-10 05:06:58.314 [main] DEBUG nextflow.executor.ExecutorFactory - Extension executors providers=[]
|
||||
Jul-10 05:06:58.319 [main] DEBUG nextflow.Session - Observer factory: DefaultObserverFactory
|
||||
Jul-10 05:06:58.338 [main] DEBUG nextflow.cache.CacheFactory - Using Nextflow cache factory: nextflow.cache.DefaultCacheFactory
|
||||
Jul-10 05:06:58.344 [main] DEBUG nextflow.util.CustomThreadPool - Creating default thread pool > poolSize: 33; maxThreads: 1000
|
||||
Jul-10 05:06:58.461 [main] DEBUG nextflow.Session - Session start
|
||||
Jul-10 05:06:58.463 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow started -- trace file: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/execution_trace.txt
|
||||
Jul-10 05:06:58.544 [main] DEBUG nextflow.script.ScriptRunner - > Launching execution
|
||||
Jul-10 05:06:58.620 [main] DEBUG nextflow.executor.ExecutorFactory - << taskConfig executor: null
|
||||
Jul-10 05:06:58.620 [main] DEBUG nextflow.executor.ExecutorFactory - >> processorType: 'local'
|
||||
Jul-10 05:06:58.623 [main] DEBUG nextflow.executor.Executor - [warm up] executor > local
|
||||
Jul-10 05:06:58.627 [main] DEBUG n.processor.LocalPollingMonitor - Creating local task monitor for executor 'local' > cpus=32; memory=61.9 GB; capacity=32; pollInterval=100ms; dumpInterval=5m
|
||||
Jul-10 05:06:58.628 [main] DEBUG n.processor.TaskPollingMonitor - >>> barrier register (monitor: local)
|
||||
Jul-10 05:06:58.667 [main] DEBUG nextflow.Session - Workflow process names [dsl2]: METABOLITE_SCREEN
|
||||
Jul-10 05:06:58.668 [main] DEBUG nextflow.Session - Igniting dataflow network (1)
|
||||
Jul-10 05:06:58.668 [main] DEBUG nextflow.processor.TaskProcessor - Starting process > METABOLITE_SCREEN
|
||||
Jul-10 05:06:58.668 [main] DEBUG nextflow.script.ScriptRunner - Parsed script files:
|
||||
Script_c8d2b32ed0aeeac9: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/./main.nf
|
||||
Script_041bcf7aceb7d897: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/test.nf
|
||||
Jul-10 05:06:58.668 [main] DEBUG nextflow.script.ScriptRunner - > Awaiting termination
|
||||
Jul-10 05:06:58.668 [main] DEBUG nextflow.Session - Session await
|
||||
Jul-10 05:06:58.759 [Task submitter] DEBUG n.executor.local.LocalTaskHandler - Launch cmd line: /bin/bash -ue .command.run
|
||||
Jul-10 05:06:58.761 [Task submitter] INFO nextflow.Session - [b1/b3e41f] Submitted process > METABOLITE_SCREEN
|
||||
Jul-10 05:07:34.617 [Task monitor] DEBUG n.processor.TaskPollingMonitor - Task completed > TaskHandler[id: 1; name: METABOLITE_SCREEN; status: COMPLETED; exit: 0; error: -; workDir: /data/bugrasWorkspace3/metabolite-screen/nf_metabol_screen_adaptive/work/b1/b3e41f08bc233c93e7ac82702bb856]
|
||||
Jul-10 05:07:34.617 [Task monitor] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'TaskFinalizer' minSize=10; maxSize=96; workQueue=LinkedBlockingQueue[10000]; allowCoreThreadTimeout=false
|
||||
Jul-10 05:07:35.660 [main] DEBUG nextflow.Session - Session await > all processes finished
|
||||
Jul-10 05:07:35.716 [Task monitor] DEBUG n.processor.TaskPollingMonitor - <<< barrier arrives (monitor: local) - terminating tasks monitor poll loop
|
||||
Jul-10 05:07:35.716 [main] DEBUG nextflow.Session - Session await > all barriers passed
|
||||
Jul-10 05:07:35.718 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'TaskFinalizer' shutdown completed (hard=false)
|
||||
Jul-10 05:07:35.721 [main] DEBUG n.trace.WorkflowStatsObserver - Workflow completed > WorkflowStats[succeededCount=1; failedCount=0; ignoredCount=0; cachedCount=0; pendingCount=0; submittedCount=0; runningCount=0; retriesCount=0; abortedCount=0; succeedDuration=15.9s; failedDuration=0ms; cachedDuration=0ms;loadCpus=0; loadMemory=0; peakRunning=1; peakCpus=1; peakMemory=10 GB; ]
|
||||
Jul-10 05:07:35.721 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow completed -- saving trace file
|
||||
Jul-10 05:07:35.722 [main] DEBUG nextflow.trace.ReportObserver - Workflow completed -- rendering execution report
|
||||
Jul-10 05:07:35.973 [main] DEBUG nextflow.trace.TimelineObserver - Workflow completed -- rendering execution timeline
|
||||
Jul-10 05:07:36.099 [main] DEBUG nextflow.cache.CacheDB - Closing CacheDB done
|
||||
Jul-10 05:07:36.104 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'FileTransfer' shutdown completed (hard=false)
|
||||
Jul-10 05:07:36.104 [main] DEBUG nextflow.script.ScriptRunner - > Execution complete -- Goodbye
|
||||
@@ -0,0 +1,69 @@
|
||||
Jul-03 12:08:35.777 [main] DEBUG nextflow.cli.Launcher - $> nextflow run -profile docker test.nf
|
||||
Jul-03 12:08:35.914 [main] DEBUG nextflow.cli.CmdRun - N E X T F L O W ~ version 25.04.3
|
||||
Jul-03 12:08:35.944 [main] DEBUG nextflow.plugin.PluginsFacade - Setting up plugin manager > mode=prod; embedded=false; plugins-dir=/home/omic/.nextflow/plugins; core-plugins: nf-amazon@2.15.0,nf-azure@1.16.0,nf-cloudcache@0.4.3,nf-codecommit@0.2.3,nf-console@1.2.1,nf-google@1.21.0,nf-k8s@1.0.0,nf-tower@1.11.3,nf-wave@1.12.1
|
||||
Jul-03 12:08:35.978 [main] INFO o.pf4j.DefaultPluginStatusProvider - Enabled plugins: []
|
||||
Jul-03 12:08:35.979 [main] INFO o.pf4j.DefaultPluginStatusProvider - Disabled plugins: []
|
||||
Jul-03 12:08:35.983 [main] INFO org.pf4j.DefaultPluginManager - PF4J version 3.12.0 in 'deployment' mode
|
||||
Jul-03 12:08:35.996 [main] INFO org.pf4j.AbstractPluginManager - No plugins
|
||||
Jul-03 12:08:36.024 [main] DEBUG nextflow.config.ConfigBuilder - Found config local: /data/bugra/metabolite-screen/nf_metabol_screen/nextflow.config
|
||||
Jul-03 12:08:36.028 [main] DEBUG nextflow.config.ConfigBuilder - Parsing config file: /data/bugra/metabolite-screen/nf_metabol_screen/nextflow.config
|
||||
Jul-03 12:08:36.073 [main] DEBUG n.secret.LocalSecretsProvider - Secrets store: /home/omic/.nextflow/secrets/store.json
|
||||
Jul-03 12:08:36.078 [main] DEBUG nextflow.secret.SecretsLoader - Discovered secrets providers: [nextflow.secret.LocalSecretsProvider@29314cc9] - activable => nextflow.secret.LocalSecretsProvider@29314cc9
|
||||
Jul-03 12:08:36.086 [main] DEBUG nextflow.config.ConfigBuilder - Applying config profile: `docker`
|
||||
Jul-03 12:08:36.792 [main] DEBUG nextflow.config.ConfigBuilder - Available config profiles: [k8s, docker]
|
||||
Jul-03 12:08:36.833 [main] DEBUG nextflow.cli.CmdRun - Applied DSL=2 by global default
|
||||
Jul-03 12:08:36.850 [main] DEBUG nextflow.cli.CmdRun - Launching `test.nf` [insane_woese] DSL2 - revision: 063b5cd9a9
|
||||
Jul-03 12:08:36.852 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins default=[]
|
||||
Jul-03 12:08:36.852 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins resolved requirement=[]
|
||||
Jul-03 12:08:36.922 [main] DEBUG nextflow.Session - Session UUID: a62b6efd-60bb-4b97-a6e1-a68592f7d53f
|
||||
Jul-03 12:08:36.923 [main] DEBUG nextflow.Session - Run name: insane_woese
|
||||
Jul-03 12:08:36.923 [main] DEBUG nextflow.Session - Executor pool size: 80
|
||||
Jul-03 12:08:36.935 [main] DEBUG nextflow.file.FilePorter - File porter settings maxRetries=3; maxTransfers=50; pollTimeout=null
|
||||
Jul-03 12:08:36.943 [main] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'FileTransfer' minSize=10; maxSize=240; workQueue=LinkedBlockingQueue[-1]; allowCoreThreadTimeout=false
|
||||
Jul-03 12:08:36.975 [main] DEBUG nextflow.cli.CmdRun -
|
||||
Version: 25.04.3 build 5949
|
||||
Created: 02-06-2025 20:56 UTC
|
||||
System: Linux 6.11.0-26-generic
|
||||
Runtime: Groovy 4.0.26 on OpenJDK 64-Bit Server VM 21.0.7+6-Ubuntu-0ubuntu124.04
|
||||
Encoding: UTF-8 (UTF-8)
|
||||
Process: 3786813@k8s-node23 [127.0.1.1]
|
||||
CPUs: 80 - Mem: 251.6 GB (220.6 GB) - Swap: 0 (0)
|
||||
Jul-03 12:08:37.006 [main] DEBUG nextflow.Session - Work-dir: /data/bugra/metabolite-screen/nf_metabol_screen/work [btrfs]
|
||||
Jul-03 12:08:37.007 [main] DEBUG nextflow.Session - Script base path does not exist or is not a directory: /data/bugra/metabolite-screen/nf_metabol_screen/bin
|
||||
Jul-03 12:08:37.022 [main] DEBUG nextflow.executor.ExecutorFactory - Extension executors providers=[]
|
||||
Jul-03 12:08:37.034 [main] DEBUG nextflow.Session - Observer factory: DefaultObserverFactory
|
||||
Jul-03 12:08:37.060 [main] DEBUG nextflow.Session - Observer factory (v2): LinObserverFactory
|
||||
Jul-03 12:08:37.087 [main] DEBUG nextflow.cache.CacheFactory - Using Nextflow cache factory: nextflow.cache.DefaultCacheFactory
|
||||
Jul-03 12:08:37.098 [main] DEBUG nextflow.util.CustomThreadPool - Creating default thread pool > poolSize: 81; maxThreads: 1000
|
||||
Jul-03 12:08:37.228 [main] DEBUG nextflow.Session - Session start
|
||||
Jul-03 12:08:37.233 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow started -- trace file: /data/bugra/metabolite-screen/nf_metabol_screen/execution_trace.txt
|
||||
Jul-03 12:08:37.394 [main] DEBUG nextflow.script.ScriptRunner - > Launching execution
|
||||
Jul-03 12:08:37.590 [main] DEBUG nextflow.executor.ExecutorFactory - << taskConfig executor: null
|
||||
Jul-03 12:08:37.591 [main] DEBUG nextflow.executor.ExecutorFactory - >> processorType: 'local'
|
||||
Jul-03 12:08:37.598 [main] DEBUG nextflow.executor.Executor - [warm up] executor > local
|
||||
Jul-03 12:08:37.609 [main] DEBUG n.processor.LocalPollingMonitor - Creating local task monitor for executor 'local' > cpus=80; memory=251.6 GB; capacity=80; pollInterval=100ms; dumpInterval=5m
|
||||
Jul-03 12:08:37.612 [main] DEBUG n.processor.TaskPollingMonitor - >>> barrier register (monitor: local)
|
||||
Jul-03 12:08:37.646 [main] DEBUG nextflow.processor.TaskProcessor - Creating process 'METABOLITE_SCREEN': maxForks=0; fair=false; array=0
|
||||
Jul-03 12:08:37.724 [main] DEBUG nextflow.Session - Workflow process names [dsl2]: METABOLITE_SCREEN
|
||||
Jul-03 12:08:37.726 [main] DEBUG nextflow.Session - Igniting dataflow network (1)
|
||||
Jul-03 12:08:37.727 [main] DEBUG nextflow.processor.TaskProcessor - Starting process > METABOLITE_SCREEN
|
||||
Jul-03 12:08:37.728 [main] DEBUG nextflow.script.ScriptRunner - Parsed script files:
|
||||
Script_181c5ac3efe09ab5: /data/bugra/metabolite-screen/nf_metabol_screen/main.nf
|
||||
Script_3b80613f4955047b: /data/bugra/metabolite-screen/nf_metabol_screen/test.nf
|
||||
Jul-03 12:08:37.728 [main] DEBUG nextflow.script.ScriptRunner - > Awaiting termination
|
||||
Jul-03 12:08:37.728 [main] DEBUG nextflow.Session - Session await
|
||||
Jul-03 12:08:38.010 [Task submitter] DEBUG n.executor.local.LocalTaskHandler - Launch cmd line: /bin/bash -ue .command.run
|
||||
Jul-03 12:08:38.016 [Task submitter] INFO nextflow.Session - [3d/10f68f] Submitted process > METABOLITE_SCREEN
|
||||
Jul-03 12:08:44.784 [Task monitor] DEBUG n.processor.TaskPollingMonitor - Task completed > TaskHandler[id: 1; name: METABOLITE_SCREEN; status: COMPLETED; exit: 0; error: -; workDir: /data/bugra/metabolite-screen/nf_metabol_screen/work/3d/10f68ffcfb09a7b35f3b90f43efbd9]
|
||||
Jul-03 12:08:44.786 [Task monitor] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'TaskFinalizer' minSize=10; maxSize=240; workQueue=LinkedBlockingQueue[-1]; allowCoreThreadTimeout=false
|
||||
Jul-03 12:08:45.543 [main] DEBUG nextflow.Session - Session await > all processes finished
|
||||
Jul-03 12:08:45.581 [Task monitor] DEBUG n.processor.TaskPollingMonitor - <<< barrier arrives (monitor: local) - terminating tasks monitor poll loop
|
||||
Jul-03 12:08:45.582 [main] DEBUG nextflow.Session - Session await > all barriers passed
|
||||
Jul-03 12:08:45.586 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'TaskFinalizer' shutdown completed (hard=false)
|
||||
Jul-03 12:08:45.596 [main] DEBUG n.trace.WorkflowStatsObserver - Workflow completed > WorkflowStats[succeededCount=1; failedCount=0; ignoredCount=0; cachedCount=0; pendingCount=0; submittedCount=0; runningCount=0; retriesCount=0; abortedCount=0; succeedDuration=3.7s; failedDuration=0ms; cachedDuration=0ms;loadCpus=0; loadMemory=0; peakRunning=1; peakCpus=1; peakMemory=10 GB; ]
|
||||
Jul-03 12:08:45.596 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow completed -- saving trace file
|
||||
Jul-03 12:08:45.598 [main] DEBUG nextflow.trace.ReportObserver - Workflow completed -- rendering execution report
|
||||
Jul-03 12:08:46.431 [main] DEBUG nextflow.trace.TimelineObserver - Workflow completed -- rendering execution timeline
|
||||
Jul-03 12:08:46.525 [main] DEBUG nextflow.cache.CacheDB - Closing CacheDB done
|
||||
Jul-03 12:08:46.538 [main] DEBUG nextflow.util.ThreadPoolManager - Thread pool 'FileTransfer' shutdown completed (hard=false)
|
||||
Jul-03 12:08:46.538 [main] DEBUG nextflow.script.ScriptRunner - > Execution complete -- Goodbye
|
||||
@@ -0,0 +1,78 @@
|
||||
Jul-03 12:08:15.992 [main] DEBUG nextflow.cli.Launcher - $> nextflow run -profile docker test.nf
|
||||
Jul-03 12:08:16.116 [main] DEBUG nextflow.cli.CmdRun - N E X T F L O W ~ version 25.04.3
|
||||
Jul-03 12:08:16.165 [main] DEBUG nextflow.plugin.PluginsFacade - Setting up plugin manager > mode=prod; embedded=false; plugins-dir=/home/omic/.nextflow/plugins; core-plugins: nf-amazon@2.15.0,nf-azure@1.16.0,nf-cloudcache@0.4.3,nf-codecommit@0.2.3,nf-console@1.2.1,nf-google@1.21.0,nf-k8s@1.0.0,nf-tower@1.11.3,nf-wave@1.12.1
|
||||
Jul-03 12:08:16.218 [main] INFO o.pf4j.DefaultPluginStatusProvider - Enabled plugins: []
|
||||
Jul-03 12:08:16.219 [main] INFO o.pf4j.DefaultPluginStatusProvider - Disabled plugins: []
|
||||
Jul-03 12:08:16.223 [main] INFO org.pf4j.DefaultPluginManager - PF4J version 3.12.0 in 'deployment' mode
|
||||
Jul-03 12:08:16.239 [main] INFO org.pf4j.AbstractPluginManager - No plugins
|
||||
Jul-03 12:08:16.269 [main] DEBUG nextflow.config.ConfigBuilder - Found config local: /data/bugra/metabolite-screen/nf_metabol_screen/nextflow.config
|
||||
Jul-03 12:08:16.274 [main] DEBUG nextflow.config.ConfigBuilder - Parsing config file: /data/bugra/metabolite-screen/nf_metabol_screen/nextflow.config
|
||||
Jul-03 12:08:16.319 [main] DEBUG n.secret.LocalSecretsProvider - Secrets store: /home/omic/.nextflow/secrets/store.json
|
||||
Jul-03 12:08:16.323 [main] DEBUG nextflow.secret.SecretsLoader - Discovered secrets providers: [nextflow.secret.LocalSecretsProvider@1ddd3478] - activable => nextflow.secret.LocalSecretsProvider@1ddd3478
|
||||
Jul-03 12:08:16.339 [main] DEBUG nextflow.config.ConfigBuilder - Applying config profile: `docker`
|
||||
Jul-03 12:08:17.003 [main] DEBUG nextflow.config.ConfigBuilder - Available config profiles: [k8s, docker]
|
||||
Jul-03 12:08:17.044 [main] DEBUG nextflow.cli.CmdRun - Applied DSL=2 by global default
|
||||
Jul-03 12:08:17.064 [main] DEBUG nextflow.cli.CmdRun - Launching `test.nf` [insane_snyder] DSL2 - revision: 49b8a74e0c
|
||||
Jul-03 12:08:17.066 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins default=[]
|
||||
Jul-03 12:08:17.066 [main] DEBUG nextflow.plugin.PluginsFacade - Plugins resolved requirement=[]
|
||||
Jul-03 12:08:17.150 [main] DEBUG nextflow.Session - Session UUID: 8cc53326-d69c-4269-9519-4eb256ccbbd2
|
||||
Jul-03 12:08:17.151 [main] DEBUG nextflow.Session - Run name: insane_snyder
|
||||
Jul-03 12:08:17.152 [main] DEBUG nextflow.Session - Executor pool size: 80
|
||||
Jul-03 12:08:17.163 [main] DEBUG nextflow.file.FilePorter - File porter settings maxRetries=3; maxTransfers=50; pollTimeout=null
|
||||
Jul-03 12:08:17.180 [main] DEBUG nextflow.util.ThreadPoolBuilder - Creating thread pool 'FileTransfer' minSize=10; maxSize=240; workQueue=LinkedBlockingQueue[-1]; allowCoreThreadTimeout=false
|
||||
Jul-03 12:08:17.322 [main] DEBUG nextflow.cli.CmdRun -
|
||||
Version: 25.04.3 build 5949
|
||||
Created: 02-06-2025 20:56 UTC
|
||||
System: Linux 6.11.0-26-generic
|
||||
Runtime: Groovy 4.0.26 on OpenJDK 64-Bit Server VM 21.0.7+6-Ubuntu-0ubuntu124.04
|
||||
Encoding: UTF-8 (UTF-8)
|
||||
Process: 3786432@k8s-node23 [127.0.1.1]
|
||||
CPUs: 80 - Mem: 251.6 GB (220.7 GB) - Swap: 0 (0)
|
||||
Jul-03 12:08:17.386 [main] DEBUG nextflow.Session - Work-dir: /data/bugra/metabolite-screen/nf_metabol_screen/work [btrfs]
|
||||
Jul-03 12:08:17.386 [main] DEBUG nextflow.Session - Script base path does not exist or is not a directory: /data/bugra/metabolite-screen/nf_metabol_screen/bin
|
||||
Jul-03 12:08:17.401 [main] DEBUG nextflow.executor.ExecutorFactory - Extension executors providers=[]
|
||||
Jul-03 12:08:17.413 [main] DEBUG nextflow.Session - Observer factory: DefaultObserverFactory
|
||||
Jul-03 12:08:17.440 [main] DEBUG nextflow.Session - Observer factory (v2): LinObserverFactory
|
||||
Jul-03 12:08:17.469 [main] DEBUG nextflow.cache.CacheFactory - Using Nextflow cache factory: nextflow.cache.DefaultCacheFactory
|
||||
Jul-03 12:08:17.483 [main] DEBUG nextflow.util.CustomThreadPool - Creating default thread pool > poolSize: 81; maxThreads: 1000
|
||||
Jul-03 12:08:17.707 [main] DEBUG nextflow.Session - Session start
|
||||
Jul-03 12:08:17.717 [main] DEBUG nextflow.trace.TraceFileObserver - Workflow started -- trace file: /data/bugra/metabolite-screen/nf_metabol_screen/execution_trace.txt
|
||||
Jul-03 12:08:17.950 [main] DEBUG nextflow.script.ScriptRunner - > Launching execution
|
||||
Jul-03 12:08:18.079 [main] DEBUG nextflow.script.ScriptRunner - Parsed script files:
|
||||
Script_e80a6c5924994093: /data/bugra/metabolite-screen/nf_metabol_screen/test.nf
|
||||
Script_181c5ac3efe09ab5: /data/bugra/metabolite-screen/nf_metabol_screen/main.nf
|
||||
Jul-03 12:08:18.081 [main] DEBUG nextflow.Session - Session aborted -- Cause: No such property: chunks for class: nextflow.script.WorkflowBinding
|
||||
Jul-03 12:08:18.096 [main] ERROR nextflow.cli.Launcher - @unknown
|
||||
groovy.lang.MissingPropertyException: No such property: chunks for class: nextflow.script.WorkflowBinding
|
||||
at groovy.lang.Binding.getVariable(Binding.java:61)
|
||||
at nextflow.script.WorkflowBinding.getVariable(WorkflowBinding.groovy:143)
|
||||
at groovy.lang.Binding.getProperty(Binding.java:117)
|
||||
at nextflow.script.WorkflowBinding.getProperty(WorkflowBinding.groovy:132)
|
||||
at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:167)
|
||||
at groovy.lang.Closure.getPropertyTryThese(Closure.java:325)
|
||||
at groovy.lang.Closure.getPropertyDelegateFirst(Closure.java:315)
|
||||
at groovy.lang.Closure.getProperty(Closure.java:301)
|
||||
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
|
||||
at Script_e80a6c5924994093$_runScript_closure1$_closure2.doCall(Script_e80a6c5924994093:13)
|
||||
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
|
||||
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
|
||||
at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:343)
|
||||
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:328)
|
||||
at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:280)
|
||||
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1007)
|
||||
at groovy.lang.Closure.call(Closure.java:433)
|
||||
at groovy.lang.Closure.call(Closure.java:412)
|
||||
at nextflow.script.WorkflowDef.run0(WorkflowDef.groovy:205)
|
||||
at nextflow.script.WorkflowDef.run(WorkflowDef.groovy:189)
|
||||
at nextflow.script.BindableDef.invoke_a(BindableDef.groovy:51)
|
||||
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
|
||||
at nextflow.script.BaseScript.run0(BaseScript.groovy:182)
|
||||
at org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
|
||||
at nextflow.script.BaseScript.run(BaseScript.groovy:193)
|
||||
at nextflow.script.parser.v1.ScriptLoaderV1.runScript(ScriptLoaderV1.groovy:246)
|
||||
at nextflow.script.parser.v1.ScriptLoaderV1.runScript(ScriptLoaderV1.groovy)
|
||||
at nextflow.script.ScriptRunner.run(ScriptRunner.groovy:246)
|
||||
at nextflow.script.ScriptRunner.execute(ScriptRunner.groovy:139)
|
||||
at nextflow.cli.CmdRun.run(CmdRun.groovy:379)
|
||||
at nextflow.cli.Launcher.run(Launcher.groovy:513)
|
||||
at nextflow.cli.Launcher.main(Launcher.groovy:673)
|
||||
@@ -0,0 +1 @@
|
||||
2298940
|
||||
@@ -0,0 +1,20 @@
|
||||
FROM mambaorg/micromamba:2.1.1
|
||||
|
||||
USER root
|
||||
|
||||
COPY ./app /app
|
||||
|
||||
ARG MAMBA_DOCKERFILE_ACTIVATE=1
|
||||
|
||||
RUN micromamba install -n base -y -c conda-forge --channel-priority flexible \
|
||||
python=3.12 \
|
||||
numpy \
|
||||
"pandas<3" \
|
||||
scikit-learn \
|
||||
parallelbar \
|
||||
zarr=3.0.7 \
|
||||
onnxruntime \
|
||||
procps-ng && \
|
||||
pip install \
|
||||
/app/bitexpand-0.1.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl \
|
||||
/app/mol_fingerprint-0.1.0-cp312-cp312-manylinux_2_34_x86_64.whl
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,134 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import pandas as pd
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
def create_smiles_file(drug_csv_path, metabolite_file_path, output_path="smiles.smi"):
|
||||
"""
|
||||
Create smiles.smi file by combining drug CSV and metabolite file.
|
||||
|
||||
Args:
|
||||
drug_csv_path: Path to CSV file with 'SMILES' header
|
||||
metabolite_file_path: Path to tab-separated file with SMILES and metabolite IDs
|
||||
output_path: Output file path (default: smiles.smi)
|
||||
"""
|
||||
|
||||
# Convert to Path objects for better handling
|
||||
drug_csv_path = Path(drug_csv_path)
|
||||
metabolite_file_path = Path(metabolite_file_path)
|
||||
output_path = Path(output_path)
|
||||
|
||||
# Check if input files exist
|
||||
if not drug_csv_path.exists():
|
||||
raise FileNotFoundError(f"Drug CSV file not found: {drug_csv_path}")
|
||||
|
||||
if not metabolite_file_path.exists():
|
||||
raise FileNotFoundError(f"Metabolite file not found: {metabolite_file_path}")
|
||||
|
||||
# Read drug CSV
|
||||
try:
|
||||
drug_df = pd.read_csv(drug_csv_path)
|
||||
except Exception as e:
|
||||
raise Exception(f"Error reading drug CSV file: {e}")
|
||||
|
||||
# Validate drug CSV has SMILES column
|
||||
if 'SMILES' not in drug_df.columns:
|
||||
raise ValueError("Drug CSV file must have 'SMILES' column")
|
||||
|
||||
# Check if metabolite file contains "NO_METABOLITES"
|
||||
try:
|
||||
with open(metabolite_file_path, 'r') as f:
|
||||
first_line = f.readline().strip()
|
||||
except Exception as e:
|
||||
raise Exception(f"Error reading metabolite file: {e}")
|
||||
|
||||
# Handle no metabolites case
|
||||
if first_line == "NO_METABOLITES":
|
||||
print("No metabolites found, creating output file with drugs only")
|
||||
|
||||
# Create drug dataframe with drug_N format
|
||||
drug_output = drug_df.copy()
|
||||
drug_output['ID'] = [f'drug_{i}' for i in range(len(drug_df))]
|
||||
drug_output = drug_output[['SMILES', 'ID']]
|
||||
|
||||
# Write only drugs to output file
|
||||
try:
|
||||
drug_output.to_csv(output_path, sep='\t', header=False, index=False)
|
||||
except Exception as e:
|
||||
raise Exception(f"Error writing output file: {e}")
|
||||
|
||||
print(f"Successfully created {output_path}")
|
||||
print(f" - {len(drug_df)} drugs")
|
||||
print(f" - 0 metabolites")
|
||||
return
|
||||
|
||||
# Read metabolite file normally (tab-separated, no header)
|
||||
try:
|
||||
metabolite_df = pd.read_csv(metabolite_file_path, sep='\t', header=None, names=['SMILES', 'ID'])
|
||||
except Exception as e:
|
||||
raise Exception(f"Error reading metabolite file: {e}")
|
||||
|
||||
# Validate metabolite file has at least 2 columns
|
||||
if metabolite_df.shape[1] < 2:
|
||||
raise ValueError("Metabolite file must have at least 2 columns (SMILES and ID)")
|
||||
|
||||
# Create drug dataframe with drug_N format
|
||||
drug_output = drug_df.copy()
|
||||
drug_output['ID'] = [f'drug_{i}' for i in range(len(drug_df))]
|
||||
drug_output = drug_output[['SMILES', 'ID']]
|
||||
|
||||
# Use metabolite dataframe as-is (already has SMILES and ID columns)
|
||||
metabolite_output = metabolite_df[['SMILES', 'ID']]
|
||||
|
||||
# Combine drug and metabolite dataframes
|
||||
combined_df = pd.concat([drug_output, metabolite_output], ignore_index=True)
|
||||
|
||||
# Write to output file (tab-separated, no header)
|
||||
try:
|
||||
combined_df.to_csv(output_path, sep='\t', header=False, index=False)
|
||||
except Exception as e:
|
||||
raise Exception(f"Error writing output file: {e}")
|
||||
|
||||
print(f"Successfully created {output_path}")
|
||||
print(f" - {len(drug_df)} drugs")
|
||||
print(f" - {len(metabolite_df)} metabolites")
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(
|
||||
description="Create smiles.smi file by combining drug CSV and metabolite file",
|
||||
formatter_class=argparse.RawDescriptionHelpFormatter,
|
||||
epilog="""
|
||||
Examples:
|
||||
python3 create_smiles.py drug.csv metabolites.txt
|
||||
python3 create_smiles.py drug.csv metabolites.txt -o compounds.smi
|
||||
"""
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
'drug_csv',
|
||||
help='Path to CSV file with SMILES column containing drug compounds'
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
'metabolite_file',
|
||||
help='Path to tab-separated file with SMILES and metabolite IDs'
|
||||
)
|
||||
|
||||
parser.add_argument(
|
||||
'-o', '--output',
|
||||
default='smiles.smi',
|
||||
help='Output file path (default: smiles.smi)'
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
try:
|
||||
create_smiles_file(args.drug_csv, args.metabolite_file, args.output)
|
||||
except Exception as e:
|
||||
print(f"Error: {e}", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
+225
@@ -0,0 +1,225 @@
|
||||
import argparse
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
from collections import defaultdict
|
||||
from itertools import chain
|
||||
from pathlib import Path
|
||||
|
||||
import zarr
|
||||
from zarr.storage import LocalStore
|
||||
|
||||
# Load reference data
|
||||
seq_exist = pd.read_csv('/app/MANE_all_transcipts.csv')
|
||||
|
||||
|
||||
def get_round_2(threshold, workdir, round, drug_csv: Path):
|
||||
workdir = Path(workdir)
|
||||
fasta_name = "patient_0"
|
||||
drug_name = drug_csv.stem
|
||||
name_out = f"{drug_name}_{fasta_name}"
|
||||
|
||||
# Load all zarr score stores produced by screen.py.
|
||||
results_zarr = list(workdir.glob('*_results.zarr'))
|
||||
if not results_zarr:
|
||||
raise FileNotFoundError("No results Zarr stores found")
|
||||
|
||||
print("Loading Zarr results...")
|
||||
# Lazy zarr handles per file; we read the (proteins, compounds) score matrix
|
||||
# in protein chunks rather than loading it fully — keeps peak memory bounded
|
||||
# regardless of compound count.
|
||||
zarr_groups = []
|
||||
compound_ids_per = []
|
||||
protein_ids_per = []
|
||||
for z_path in results_zarr:
|
||||
store = LocalStore(z_path, read_only=True)
|
||||
group = zarr.open(store, mode="r")
|
||||
zarr_groups.append(group)
|
||||
# numpy 2.4+ returns StringDType for these arrays; convert via tolist()
|
||||
# because direct .astype(str) raises "cannot cast StringDType to StrDType".
|
||||
compound_ids_per.append(np.array(group["compound_ids"][:].tolist(), dtype=str))
|
||||
protein_ids_per.append(np.array(group["protein_ids"][:].tolist(), dtype=str))
|
||||
|
||||
# All zarrs share the same compound axis (drug + same metabolites).
|
||||
all_compound_ids = compound_ids_per[0]
|
||||
for cids in compound_ids_per[1:]:
|
||||
if cids.shape != all_compound_ids.shape or not np.array_equal(cids, all_compound_ids):
|
||||
raise ValueError("All *_results.zarr stores must share the same compound_ids axis")
|
||||
all_protein_ids = np.concatenate(protein_ids_per) if len(protein_ids_per) > 1 else protein_ids_per[0]
|
||||
n_proteins = sum(g["scores"].shape[0] for g in zarr_groups)
|
||||
n_compounds = all_compound_ids.shape[0]
|
||||
|
||||
# ---- Compound-axis indices (tiny) ----
|
||||
drug_mask_cmpd = np.array([s.startswith("drug") for s in all_compound_ids], dtype=bool)
|
||||
if not drug_mask_cmpd.any():
|
||||
raise ValueError("No 'drug_*' compounds present in compound_ids")
|
||||
drug_cols_idx = np.where(drug_mask_cmpd)[0]
|
||||
drug0_search = np.where(all_compound_ids == 'drug_0')[0]
|
||||
if drug0_search.size == 0:
|
||||
raise ValueError("'drug_0' not found in compound_ids")
|
||||
drug0_idx = int(drug0_search[0])
|
||||
|
||||
# ---- Stream the score matrix in protein chunks, writing significant_interactions
|
||||
# incrementally and accumulating per-protein summary stats. Avoids both the
|
||||
# full score matrix load and the giant in-memory above-threshold DataFrame. ----
|
||||
# Per chunk peak ≈ CHUNK_PROTEINS * n_compounds * 4 bytes; for 1000×38k ≈ 150 MB.
|
||||
CHUNK_PROTEINS = 1000
|
||||
drug_position = np.zeros(n_proteins, dtype=np.int64)
|
||||
drug_0_col_full = np.empty(n_proteins, dtype=np.float32)
|
||||
prot_count = defaultdict(int) # protein_id -> count of above-threshold compounds
|
||||
prot_sum = defaultdict(float) # protein_id -> sum of above-threshold scores
|
||||
|
||||
# Open significant_interactions.tsv before the loop (round 2 only); write rows per chunk.
|
||||
sig_path = workdir / f'{name_out}_significant_interactions.tsv'
|
||||
sig_writer = None
|
||||
smile_dict = None
|
||||
if round == 2:
|
||||
test_smiles = pd.read_csv(workdir / 'smiles.smi', sep='\t', header=None)
|
||||
smile_dict = dict(zip(test_smiles[1], test_smiles[0]))
|
||||
sig_writer = open(sig_path, 'w')
|
||||
sig_writer.write("drug/metabolite\tsmile\ttranscipt\tconplex_score\n")
|
||||
|
||||
cursor = 0
|
||||
for group in zarr_groups:
|
||||
scores_arr = group["scores"]
|
||||
n_this = scores_arr.shape[0]
|
||||
for start in range(0, n_this, CHUNK_PROTEINS):
|
||||
end = min(start + CHUNK_PROTEINS, n_this)
|
||||
chunk = np.asarray(scores_arr[start:end]) # (chunk_size, n_compounds)
|
||||
global_start = cursor + start
|
||||
global_end = cursor + end
|
||||
chunk_size = end - start
|
||||
|
||||
# drug score columns + max-per-protein for this chunk
|
||||
chunk_max_drug = chunk[:, drug_cols_idx].max(axis=1)
|
||||
|
||||
# drug_position[i] = # compounds with score strictly > max_drug_score_i.
|
||||
# Matches production's stable-sort + first-drug-position convention.
|
||||
drug_position[global_start:global_end] = (chunk > chunk_max_drug[:, None]).sum(axis=1)
|
||||
|
||||
# drug_0 column
|
||||
drug_0_col_full[global_start:global_end] = chunk[:, drug0_idx].astype(np.float32, copy=False)
|
||||
|
||||
# Above-threshold rows for this chunk
|
||||
pi_local, ci = np.where(chunk > threshold)
|
||||
if pi_local.size:
|
||||
scores_vec = chunk[pi_local, ci].astype(np.float32, copy=False)
|
||||
|
||||
# Per-protein aggregates accumulated via bincount on local indices.
|
||||
counts_local = np.bincount(pi_local, minlength=chunk_size)
|
||||
sums_local = np.bincount(pi_local, weights=scores_vec.astype(np.float64), minlength=chunk_size)
|
||||
for pi in np.flatnonzero(counts_local):
|
||||
pid = all_protein_ids[global_start + pi]
|
||||
prot_count[pid] += int(counts_local[pi])
|
||||
prot_sum[pid] += float(sums_local[pi])
|
||||
|
||||
# Write significant_interactions rows for this chunk directly to the file.
|
||||
if sig_writer is not None:
|
||||
compound_ids_vec = all_compound_ids[ci]
|
||||
protein_ids_vec = all_protein_ids[global_start + pi_local]
|
||||
smiles_vec = np.array(
|
||||
[smile_dict.get(c, "UNKNOWN") for c in compound_ids_vec]
|
||||
)
|
||||
pd.DataFrame({
|
||||
"drug/metabolite": compound_ids_vec,
|
||||
"smile": smiles_vec,
|
||||
"transcipt": protein_ids_vec,
|
||||
"conplex_score": scores_vec,
|
||||
}).to_csv(sig_writer, sep='\t', index=False, header=False)
|
||||
cursor += n_this
|
||||
|
||||
if sig_writer is not None:
|
||||
sig_writer.close()
|
||||
|
||||
drug_0_score = pd.DataFrame({
|
||||
"Drug": "drug_0",
|
||||
"Transcript": all_protein_ids,
|
||||
"Score": drug_0_col_full,
|
||||
})
|
||||
|
||||
if round == 2:
|
||||
drug_0_score.to_csv(workdir / f'{name_out}_drug_scores.tsv', sep='\t', index=False)
|
||||
|
||||
# ---- Per-protein summary (only proteins with any above-threshold compound) ----
|
||||
drug_pos_map = dict(zip(all_protein_ids, drug_position))
|
||||
|
||||
if round == 1 and not prot_count:
|
||||
# Equivalent to old "transcipts_summary.empty" early-out for round 1.
|
||||
pd.DataFrame().to_csv(workdir / 'round_1.csv', index=False)
|
||||
with open(workdir / 'round_1.fasta', 'w') as f:
|
||||
f.write("all_data_is_filtered_out\n")
|
||||
return 'STOP NO TRANSCIPTS ABOVE THRESHOLD'
|
||||
|
||||
if prot_count:
|
||||
proteins_with_above = list(prot_count.keys())
|
||||
# mean dtype kept as float32 to match the precision of the previous
|
||||
# groupby-on-float32 path (CSV output is bit-identical that way).
|
||||
means = np.array(
|
||||
[prot_sum[p] / prot_count[p] for p in proteins_with_above],
|
||||
dtype=np.float32,
|
||||
)
|
||||
summary = pd.DataFrame({
|
||||
'transcipt_name': proteins_with_above,
|
||||
'number_of_iteracting_compounds': [prot_count[p] for p in proteins_with_above],
|
||||
'mean_binding_above_threshold': means,
|
||||
})
|
||||
else:
|
||||
summary = pd.DataFrame(columns=[
|
||||
'transcipt_name', 'number_of_iteracting_compounds', 'mean_binding_above_threshold'
|
||||
])
|
||||
summary['drug_position'] = summary['transcipt_name'].map(drug_pos_map)
|
||||
|
||||
path_out = workdir / f'round_{round}.csv'
|
||||
if len(summary) == 0:
|
||||
with path_out.open("w") as f:
|
||||
f.write("NO TRANSCIPTS ABOVE THRESHOLD")
|
||||
return 'STOP NO TRANSCIPTS ABOVE THRESHOLD'
|
||||
|
||||
summary['if_drug_above_threshold'] = (
|
||||
summary['number_of_iteracting_compounds'] > summary['drug_position']
|
||||
)
|
||||
|
||||
# MANE symbol lookup; strip mutated-protein "_2" suffix.
|
||||
clean_transcript_names = [str(t).split('_')[0] for t in summary['transcipt_name']]
|
||||
seq_lookup = seq_exist.set_index('transcipt')['symbol']
|
||||
summary['protein_name'] = [
|
||||
seq_lookup.get(t, "") for t in clean_transcript_names
|
||||
]
|
||||
|
||||
summary.to_csv(path_out, index=False)
|
||||
|
||||
# ---- Round 1 also writes the round-2 FASTA ----
|
||||
if round == 1:
|
||||
name_2_filtered = list(summary['protein_name'])
|
||||
transcipts_2 = list(chain.from_iterable(
|
||||
list(seq_exist[seq_exist['symbol'] == sym]['transcipt'])
|
||||
for sym in name_2_filtered
|
||||
))
|
||||
transcipts_2 = list(np.unique(transcipts_2))
|
||||
existing = set(summary['transcipt_name'])
|
||||
transcipts_2 = [t for t in transcipts_2 if t not in existing]
|
||||
|
||||
fasta_new = []
|
||||
for t in transcipts_2:
|
||||
row = seq_exist[seq_exist['transcipt'] == t]
|
||||
if not row.empty:
|
||||
fasta_new.append(f">{t}")
|
||||
fasta_new.append(row['seq'].iloc[0])
|
||||
|
||||
with open(workdir / 'round_2.fasta', 'w') as f:
|
||||
for line in fasta_new:
|
||||
f.write(f"{line}\n")
|
||||
|
||||
print(f"Round {round} processing complete.")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Process and screen fragments.")
|
||||
parser.add_argument("--threshold", required=True, type=float,
|
||||
help="Threshold for 1. round of conplex scores")
|
||||
parser.add_argument("--workdir", required=True, type=Path, help="workdir")
|
||||
parser.add_argument("--round", required=True, type=int, help="Round 1 or 2")
|
||||
parser.add_argument("--drug-csv", required=True, type=Path,
|
||||
help="csv file with drug smiles")
|
||||
args = parser.parse_args()
|
||||
|
||||
get_round_2(args.threshold, args.workdir, args.round, args.drug_csv)
|
||||
@@ -0,0 +1,143 @@
|
||||
import argparse
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
from itertools import chain
|
||||
from pathlib import PosixPath as Path
|
||||
|
||||
seq_exist = pd.read_csv('/app/MANE_all_transcipts.csv')
|
||||
|
||||
def get_round_2(threshold, workdir, round, drug_csv : Path):
|
||||
workdir = Path(workdir)
|
||||
|
||||
# Get output names
|
||||
# Get patient fasta name
|
||||
# fasta_files = list(workdir.glob('*_variants_transcript_id_mutations.fasta'))
|
||||
# if not fasta_files:
|
||||
# raise FileNotFoundError("No variants transcript mutations fasta file found")
|
||||
# fasta_name = fasta_files[0].stem.replace('_variants_transcript_id_mutations', '')
|
||||
fasta_name = "patient_0"
|
||||
|
||||
# Get test drug
|
||||
drug_name = drug_csv.stem
|
||||
|
||||
name_out = f"{drug_name}_{fasta_name}"
|
||||
|
||||
# Get all work dir complex files
|
||||
results_files = list(workdir.glob('*_results.tsv'))
|
||||
if not results_files:
|
||||
raise FileNotFoundError("No results TSV files found")
|
||||
|
||||
round_1_score_list = [str(f) for f in results_files]
|
||||
|
||||
# Read 1st round
|
||||
transcipts_1 = [
|
||||
pd.read_csv(i, sep='\t', header=None).sort_values([2], ascending=False)
|
||||
for i in round_1_score_list
|
||||
]
|
||||
|
||||
# Get position of drug interaction vs all metabolites
|
||||
drug_pos = [
|
||||
[
|
||||
n
|
||||
for n, j in enumerate(list(i[0]))
|
||||
if j[:4] == 'drug'
|
||||
]
|
||||
for i in transcipts_1
|
||||
]
|
||||
|
||||
# Drug score
|
||||
drug_0_score = pd.concat([i[i[0] =='drug_0'] for i in transcipts_1]).rename({0:'Drug', 1:'Transcript', 2:'Score'}, axis=1)
|
||||
|
||||
# Filter all below threshold
|
||||
transcipts_1 = [i[i[2] > threshold] for i in transcipts_1]
|
||||
|
||||
# Save transcript_complex above threshold to one file
|
||||
if round == 2:
|
||||
inter_import = pd.concat(transcipts_1, ignore_index=True).rename({0:'drug/metabolite',1:'transcipt',2:'conplex_score'},axis=1)
|
||||
# Add drug
|
||||
test_smiles = pd.read_csv(workdir / 'smiles.smi', sep='\t', header=None)
|
||||
smi_ = [test_smiles[test_smiles[1] == i].iloc[0][0] for i in list(inter_import['drug/metabolite'])]
|
||||
inter_import['smile'] = smi_
|
||||
inter_import[['drug/metabolite','smile','transcipt','conplex_score']].to_csv(
|
||||
workdir / f'{name_out}_significant_interactions.tsv', sep='\t', index=False
|
||||
)
|
||||
drug_0_score.to_csv(workdir / f'{name_out}_drug_scores.tsv', sep='\t', index=False)
|
||||
|
||||
transcipts_1 = pd.DataFrame([
|
||||
(Path(j).stem.replace('_results', ''), i.shape[0], i[2].mean(), k[0])
|
||||
for i, j, k in zip(transcipts_1, round_1_score_list, drug_pos)
|
||||
if i.shape[0] != 0
|
||||
])
|
||||
|
||||
# Check if any interaction is above threshold for first round
|
||||
if round == 1:
|
||||
if transcipts_1.shape == (0,0):
|
||||
transcipts_1.to_csv(workdir / 'round_1.csv', index=False)
|
||||
with open(workdir / 'round_1.fasta', 'w') as f:
|
||||
f.write("all_data_is_filtered_out\n")
|
||||
return 'STOP NO TRANSCIPTS ABOVE THRESHOLD'
|
||||
|
||||
transcipts_1 = transcipts_1.rename({
|
||||
0:'transcipt_name',
|
||||
1:'number_of_iteracting_compounds',
|
||||
2:'mean_binding_above_threshold',
|
||||
3:'drug_position'
|
||||
}, axis='columns')
|
||||
|
||||
path_out = workdir / f'round_{round}.csv'
|
||||
|
||||
if len(transcipts_1) == 0:
|
||||
with path_out.open("w") as f:
|
||||
f.write("NO TRANSCIPTS ABOVE THRESHOLD")
|
||||
return 'STOP NO TRANSCIPTS ABOVE THRESHOLD'
|
||||
|
||||
|
||||
transcipts_1['if_drug_above_threshold'] = transcipts_1.iloc[:,1] > transcipts_1.iloc[:,3]
|
||||
|
||||
# If protein is mutated it has _2 in name, removes it
|
||||
transcipt_names = [i.split('_')[0] for i in list(transcipts_1['transcipt_name'])]
|
||||
temp = [
|
||||
seq_exist[seq_exist['transcipt'] == i]
|
||||
for i in transcipt_names
|
||||
]
|
||||
transcipts_1['protein_name'] =[
|
||||
i.iloc[0]['symbol'] if len(i) > 0 else ""
|
||||
for i in temp
|
||||
]
|
||||
|
||||
# Save data on first round
|
||||
transcipts_1.to_csv(path_out, index=False)
|
||||
|
||||
# Get fasta for second round
|
||||
if round == 1:
|
||||
# Get all transcripts of proteins above threshold
|
||||
name_2_filttered = list(transcipts_1['protein_name'])
|
||||
transcipts_2 = [list(seq_exist[seq_exist['symbol'] == i]['transcipt']) for i in name_2_filttered]
|
||||
transcipts_2 = list(chain(*transcipts_2))
|
||||
transcipts_2 = list(np.unique((transcipts_2)))
|
||||
|
||||
# Filter out transcripts already ran through complex
|
||||
transcipts_2 = list(np.array(transcipts_2)[
|
||||
[i not in list(transcipts_1['transcipt_name']) for i in transcipts_2]
|
||||
])
|
||||
|
||||
fasta_new = [
|
||||
['>'+i, seq_exist[seq_exist['transcipt'] == i]['seq'].iloc[0]]
|
||||
for i in transcipts_2
|
||||
]
|
||||
fasta_new = list(chain(*fasta_new))
|
||||
|
||||
# Write fasta to run
|
||||
with open(workdir / 'round_2.fasta', 'w') as f:
|
||||
for line in fasta_new:
|
||||
f.write(f"{line}\n")
|
||||
|
||||
if __name__ == "__main__":
|
||||
parser = argparse.ArgumentParser(description="Process and screen fragments.")
|
||||
parser.add_argument("--threshold", required=True, type=float, help="Threshold for 1. round.of conplex scores")
|
||||
parser.add_argument("--workdir", required=True, type=Path, help="workdir")
|
||||
parser.add_argument("--round", required=True, type=int, help="Round 1 or 2")
|
||||
parser.add_argument("--drug-csv", required=True, type=Path, help="csv file with drug smiles")
|
||||
args = parser.parse_args()
|
||||
|
||||
get_round_2(args.threshold, args.workdir, args.round, args.drug_csv)
|
||||
@@ -0,0 +1,127 @@
|
||||
# Custom Rust modules
|
||||
import mol_fingerprint as mf
|
||||
import bitexpand
|
||||
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
from pathlib import Path
|
||||
from argparse import ArgumentParser
|
||||
|
||||
import zarr
|
||||
from zarr.storage import LocalStore
|
||||
|
||||
from sklearn.preprocessing import normalize
|
||||
from parallelbar import progress_map
|
||||
|
||||
import onnxruntime as ort
|
||||
print('CUDA available:', 'CUDAExecutionProvider' in ort.get_available_providers())
|
||||
|
||||
|
||||
|
||||
def parse_args():
|
||||
parser = ArgumentParser()
|
||||
parser.add_argument("-i","--input-tsv", type=Path, required=True, help="Input TSV file with molecules to screen. It must not have any labels and has only two columns, 1st molecule_label, 2nd molecule_smiles")
|
||||
parser.add_argument("-z","--zarr-protein", type=Path, required=True, help="Input Zarr DB that holds the protein ids and their normalized projection vectors")
|
||||
return parser
|
||||
|
||||
parser = parse_args()
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
# path_fp_basedir : Path = args.input_dir
|
||||
# my_id :int = args.chunk_id
|
||||
|
||||
path_metabolites : Path = args.input_tsv
|
||||
if not path_metabolites.is_file():
|
||||
raise ValueError(f"{path_metabolites} IS MISSING OR NOT A FILE")
|
||||
|
||||
df_metabolite = pd.read_csv(
|
||||
path_metabolites,
|
||||
sep="\t",
|
||||
header=None,
|
||||
names=["smiles" ,"compound_id"]
|
||||
)
|
||||
|
||||
path_zarr = args.zarr_protein
|
||||
store_zarr = LocalStore(path_zarr , read_only=True)
|
||||
group_zarr = zarr.open(store_zarr, mode="r")
|
||||
protein_vecs = (group_zarr["normalized"][:])
|
||||
|
||||
|
||||
path_onnx = Path("/app/drug_projector.onnx")
|
||||
|
||||
def load_model(model_path):
|
||||
"""Load ONNX model with GPU support"""
|
||||
model_path = Path(model_path)
|
||||
|
||||
# Set up providers for GPU execution
|
||||
# providers = ['CUDAExecutionProvider', 'CPUExecutionProvider']
|
||||
providers = ['CPUExecutionProvider']
|
||||
|
||||
# Create inference session
|
||||
session = ort.InferenceSession(str(model_path), providers=providers)
|
||||
|
||||
# Verify GPU is being used
|
||||
print(f"Available providers: {session.get_providers()}")
|
||||
|
||||
return session
|
||||
|
||||
session = load_model(path_onnx)
|
||||
|
||||
def run_inference(input_vector):
|
||||
"""Run inference on the model"""
|
||||
# Get input/output names
|
||||
input_name = session.get_inputs()[0].name
|
||||
output_name = session.get_outputs()[0].name
|
||||
|
||||
# Ensure input is the correct shape and type
|
||||
# if input_vector.shape != (2048,):
|
||||
# raise ValueError(f"Input shape should be (2048,), got {input_vector.shape}")
|
||||
|
||||
# Add batch dimension if needed
|
||||
input_data = input_vector
|
||||
|
||||
# Run inference
|
||||
outputs = session.run([output_name], {input_name: input_data})
|
||||
|
||||
# Return the output vector (remove batch dimension)
|
||||
return outputs[0]
|
||||
|
||||
def normalize_vectors_sklearn(vectors):
|
||||
"""Normalize using sklearn - often fastest for large arrays"""
|
||||
return normalize(vectors, norm='l2', axis=1)
|
||||
|
||||
def project_drugs(smiles : list[str]) -> np.ndarray :
|
||||
fps = bitexpand.expand_bits(np.array([
|
||||
np.frombuffer(fp,dtype=np.uint8)
|
||||
for fp in mf.generate_fingerprints(smiles)
|
||||
]))
|
||||
return normalize_vectors_sklearn(run_inference(fps))
|
||||
|
||||
pvecs = project_drugs(df_metabolite["smiles"].values.tolist())
|
||||
|
||||
my_results = np.dot(protein_vecs,pvecs.T)
|
||||
|
||||
pids = group_zarr["ids"][:]
|
||||
|
||||
path_outdir = Path("./")
|
||||
def write_protein(i : int):
|
||||
df_out = df_metabolite[["compound_id"]].copy()
|
||||
df_out["protein_id"] = pids[i]
|
||||
df_out["score"] = my_results[i]
|
||||
# df_out["protein_sequence"] = group_zarr["sequences"][i]
|
||||
path_out = path_outdir / f"{pids[i]}_results.tsv"
|
||||
|
||||
df_out.to_csv(
|
||||
path_out,
|
||||
sep="\t",
|
||||
index=False,
|
||||
header=False
|
||||
)
|
||||
|
||||
tasks = list(range(my_results.shape[0]))
|
||||
progress_map(
|
||||
write_protein, tasks
|
||||
)
|
||||
|
||||
print("PROCESS COMPLETED SUCCESSFULLY")
|
||||
@@ -0,0 +1,144 @@
|
||||
# Custom Rust modules
|
||||
import mol_fingerprint as mf
|
||||
import bitexpand
|
||||
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
from pathlib import Path
|
||||
from argparse import ArgumentParser
|
||||
|
||||
import zarr
|
||||
from zarr.storage import LocalStore
|
||||
from zarr.codecs import ZstdCodec
|
||||
|
||||
from sklearn.preprocessing import normalize
|
||||
from parallelbar import progress_map
|
||||
|
||||
import onnxruntime as ort
|
||||
print('CUDA available:', 'CUDAExecutionProvider' in ort.get_available_providers())
|
||||
|
||||
|
||||
def parse_args():
|
||||
parser = ArgumentParser()
|
||||
parser.add_argument("-i","--input-tsv", type=Path, required=True, help="Input TSV file with molecules to screen. It must not have any labels and has only two columns, 1st molecule_label, 2nd molecule_smiles")
|
||||
parser.add_argument("-z","--zarr-protein", type=Path, required=True, help="Input Zarr DB that holds the protein ids and their normalized projection vectors")
|
||||
return parser
|
||||
|
||||
parser = parse_args()
|
||||
args = parser.parse_args()
|
||||
|
||||
path_metabolites : Path = args.input_tsv
|
||||
if not path_metabolites.is_file():
|
||||
raise ValueError(f"{path_metabolites} IS MISSING OR NOT A FILE")
|
||||
|
||||
df_metabolite = pd.read_csv(
|
||||
path_metabolites,
|
||||
sep="\t",
|
||||
header=None,
|
||||
names=["smiles" ,"compound_id"]
|
||||
)
|
||||
|
||||
path_zarr = args.zarr_protein
|
||||
store_zarr = LocalStore(path_zarr, read_only=True)
|
||||
group_zarr = zarr.open(store_zarr, mode="r")
|
||||
protein_vecs = (group_zarr["normalized"][:])
|
||||
|
||||
|
||||
path_onnx = Path("/app/drug_projector.onnx")
|
||||
|
||||
def load_model(model_path):
|
||||
"""Load ONNX model with GPU support"""
|
||||
model_path = Path(model_path)
|
||||
|
||||
# Set up providers for GPU execution
|
||||
# providers = ['CUDAExecutionProvider', 'CPUExecutionProvider']
|
||||
providers = ['CPUExecutionProvider']
|
||||
|
||||
# Create inference session
|
||||
session = ort.InferenceSession(str(model_path), providers=providers)
|
||||
|
||||
# Verify GPU is being used
|
||||
print(f"Available providers: {session.get_providers()}")
|
||||
|
||||
return session
|
||||
|
||||
session = load_model(path_onnx)
|
||||
|
||||
def run_inference(input_vector):
|
||||
"""Run inference on the model"""
|
||||
# Get input/output names
|
||||
input_name = session.get_inputs()[0].name
|
||||
output_name = session.get_outputs()[0].name
|
||||
|
||||
# Run inference
|
||||
outputs = session.run([output_name], {input_name: input_vector})
|
||||
|
||||
return outputs[0]
|
||||
|
||||
def normalize_vectors_sklearn(vectors):
|
||||
"""Normalize using sklearn - often fastest for large arrays"""
|
||||
return normalize(vectors, norm='l2', axis=1)
|
||||
|
||||
def project_drugs(smiles : list[str]) -> np.ndarray :
|
||||
fps = bitexpand.expand_bits(np.array([
|
||||
np.frombuffer(fp,dtype=np.uint8)
|
||||
for fp in mf.generate_fingerprints(smiles)
|
||||
]))
|
||||
return normalize_vectors_sklearn(run_inference(fps))
|
||||
|
||||
pvecs = project_drugs(df_metabolite["smiles"].values.tolist())
|
||||
|
||||
my_results = np.dot(protein_vecs, pvecs.T)
|
||||
|
||||
pids = group_zarr["ids"][:]
|
||||
|
||||
# Create output zarr store
|
||||
path_outdir = Path("./")
|
||||
zarr_name = path_zarr.stem + "_results.zarr"
|
||||
path_output_zarr = path_outdir / zarr_name
|
||||
|
||||
# Create zarr store
|
||||
store_output = LocalStore(path_output_zarr, read_only=False)
|
||||
group_output = zarr.open(store_output, mode="w")
|
||||
|
||||
out_compress =[
|
||||
ZstdCodec( level=13 )
|
||||
]
|
||||
|
||||
# Store the data
|
||||
# Similarity matrix: (n_proteins, n_compounds)
|
||||
z1 = group_output.create_array(
|
||||
"scores",
|
||||
dtype="float32",
|
||||
shape=my_results.shape,
|
||||
chunks=(min(1000, my_results.shape[0]), my_results.shape[1]),
|
||||
compressors=out_compress
|
||||
)
|
||||
z1[:] = my_results
|
||||
|
||||
# Compound IDs
|
||||
z2 = group_output.create_array(
|
||||
"compound_ids",
|
||||
dtype="str",
|
||||
shape=(len(df_metabolite),),
|
||||
compressors=out_compress
|
||||
)
|
||||
z2[:] = df_metabolite["compound_id"].values
|
||||
|
||||
# Protein IDs
|
||||
z3 = group_output.create_array(
|
||||
"protein_ids",
|
||||
dtype="str",
|
||||
shape=(len(pids),),
|
||||
compressors=out_compress
|
||||
)
|
||||
z3[:] = pids
|
||||
|
||||
# Store metadata
|
||||
group_output.attrs['n_proteins'] = my_results.shape[0]
|
||||
group_output.attrs['n_compounds'] = my_results.shape[1]
|
||||
group_output.attrs['source_zarr'] = str(path_zarr)
|
||||
|
||||
print(f"Results saved to {path_output_zarr}")
|
||||
print(f"Shape: {my_results.shape[0]} proteins x {my_results.shape[1]} compounds")
|
||||
print("PROCESS COMPLETED SUCCESSFULLY")
|
||||
@@ -0,0 +1,14 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
metabolite-screen:
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
image: harbor.cluster.omic.ai/omic/metabolite-screen:adaptive-1.1.1
|
||||
command: bash
|
||||
stdin_open: true
|
||||
tty: true
|
||||
volumes:
|
||||
- /mnt/dreamdock-data/digital_trials/workdir/52/6cdef3797446aec540843481dae1ca:/workdir
|
||||
- /mnt/dreamdock-data/digital_trials:/mnt/dreamdock-data/digital_trials
|
||||
@@ -0,0 +1,223 @@
|
||||
<!doctype html>
|
||||
<!--
|
||||
~ Copyright 2013-2024, Seqera Labs
|
||||
~
|
||||
~ Licensed under the Apache License, Version 2.0 (the "License");
|
||||
~ you may not use this file except in compliance with the License.
|
||||
~ You may obtain a copy of the License at
|
||||
~
|
||||
~ http://www.apache.org/licenses/LICENSE-2.0
|
||||
~
|
||||
~ Unless required by applicable law or agreed to in writing, software
|
||||
~ distributed under the License is distributed on an "AS IS" BASIS,
|
||||
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
~ See the License for the specific language governing permissions and
|
||||
~ limitations under the License.
|
||||
-->
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<link rel="icon" type="image/png" href="https://www.nextflow.io/img/favicon.png" />
|
||||
<style type="text/css">
|
||||
* {
|
||||
font-family: 'Lato', 'Helvetica Neue', Arial, Helvetica, sans-serif;
|
||||
}
|
||||
|
||||
.axis path,
|
||||
.axis line {
|
||||
fill: none;
|
||||
stroke: black;
|
||||
shape-rendering: crispEdges;
|
||||
}
|
||||
|
||||
.axis text {
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
div#timeline g text {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
text.timeline-label {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
#timeline2 .axis {
|
||||
transform: translate(0px,30px);
|
||||
-ms-transform: translate(0px,30px); /* IE 9 */
|
||||
-webkit-transform: translate(0px,30px); /* Safari and Chrome */
|
||||
-o-transform: translate(0px,30px); /* Opera */
|
||||
-moz-transform: translate(0px,30px); /* Firefox */
|
||||
}
|
||||
|
||||
.coloredDiv {
|
||||
height:20px; width:20px; float:left;
|
||||
}
|
||||
|
||||
#footer {
|
||||
padding-top: 3em; color: #bfbfbf; font-size: 13px;
|
||||
}
|
||||
|
||||
#footer a:visited {
|
||||
color: #bfbfbf;
|
||||
text-decoration: underline;
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div>
|
||||
<h3>Processes execution timeline</h3>
|
||||
<p>
|
||||
Launch time: <span id='label_launch'> </span><br>
|
||||
Elapsed time: <span id='label_elapsed'> </span><br>
|
||||
Legend: job wall time / memory usage (RAM) <span id='label_legend'> </span>
|
||||
</p>
|
||||
<div id="timeline"></div>
|
||||
</div>
|
||||
|
||||
<div id='footer'>
|
||||
Created with Nextflow -- <a href='http://www.nextflow.io' target='_blank'>http://nextflow.io</a>
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
/*! jQuery v3.2.1 | (c) JS Foundation and other contributors | jquery.org/license */
|
||||
!function(a,b){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c=[],d=a.document,e=Object.getPrototypeOf,f=c.slice,g=c.concat,h=c.push,i=c.indexOf,j={},k=j.toString,l=j.hasOwnProperty,m=l.toString,n=m.call(Object),o={};function p(a,b){b=b||d;var c=b.createElement("script");c.text=a,b.head.appendChild(c).parentNode.removeChild(c)}var q="3.2.1",r=function(a,b){return new r.fn.init(a,b)},s=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,t=/^-ms-/,u=/-([a-z])/g,v=function(a,b){return b.toUpperCase()};r.fn=r.prototype={jquery:q,constructor:r,length:0,toArray:function(){return f.call(this)},get:function(a){return null==a?f.call(this):a<0?this[a+this.length]:this[a]},pushStack:function(a){var b=r.merge(this.constructor(),a);return b.prevObject=this,b},each:function(a){return r.each(this,a)},map:function(a){return this.pushStack(r.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(f.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(a<0?b:0);return this.pushStack(c>=0&&c<b?[this[c]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:c.sort,splice:c.splice},r.extend=r.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||r.isFunction(g)||(g={}),h===i&&(g=this,h--);h<i;h++)if(null!=(a=arguments[h]))for(b in a)c=g[b],d=a[b],g!==d&&(j&&d&&(r.isPlainObject(d)||(e=Array.isArray(d)))?(e?(e=!1,f=c&&Array.isArray(c)?c:[]):f=c&&r.isPlainObject(c)?c:{},g[b]=r.extend(j,f,d)):void 0!==d&&(g[b]=d));return g},r.extend({expando:"jQuery"+(q+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===r.type(a)},isWindow:function(a){return null!=a&&a===a.window},isNumeric:function(a){var b=r.type(a);return("number"===b||"string"===b)&&!isNaN(a-parseFloat(a))},isPlainObject:function(a){var b,c;return!(!a||"[object Object]"!==k.call(a))&&(!(b=e(a))||(c=l.call(b,"constructor")&&b.constructor,"function"==typeof c&&m.call(c)===n))},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?j[k.call(a)]||"object":typeof a},globalEval:function(a){p(a)},camelCase:function(a){return a.replace(t,"ms-").replace(u,v)},each:function(a,b){var c,d=0;if(w(a)){for(c=a.length;d<c;d++)if(b.call(a[d],d,a[d])===!1)break}else for(d in a)if(b.call(a[d],d,a[d])===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(s,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(w(Object(a))?r.merge(c,"string"==typeof a?[a]:a):h.call(c,a)),c},inArray:function(a,b,c){return null==b?-1:i.call(b,a,c)},merge:function(a,b){for(var c=+b.length,d=0,e=a.length;d<c;d++)a[e++]=b[d];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;f<g;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,e,f=0,h=[];if(w(a))for(d=a.length;f<d;f++)e=b(a[f],f,c),null!=e&&h.push(e);else for(f in a)e=b(a[f],f,c),null!=e&&h.push(e);return g.apply([],h)},guid:1,proxy:function(a,b){var c,d,e;if("string"==typeof b&&(c=a[b],b=a,a=c),r.isFunction(a))return d=f.call(arguments,2),e=function(){return a.apply(b||this,d.concat(f.call(arguments)))},e.guid=a.guid=a.guid||r.guid++,e},now:Date.now,support:o}),"function"==typeof Symbol&&(r.fn[Symbol.iterator]=c[Symbol.iterator]),r.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(a,b){j["[object "+b+"]"]=b.toLowerCase()});function w(a){var b=!!a&&"length"in a&&a.length,c=r.type(a);return"function"!==c&&!r.isWindow(a)&&("array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a)}var x=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C={}.hasOwnProperty,D=[],E=D.pop,F=D.push,G=D.push,H=D.slice,I=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]===b)return c;return-1},J="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",K="[\\x20\\t\\r\\n\\f]",L="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",M="\\["+K+"*("+L+")(?:"+K+"*([*^$|!~]?=)"+K+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+K+"*\\]",N=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",O=new RegExp(K+"+","g"),P=new RegExp("^"+K+"+|((?:^|[^\\\\])(?:\\\\.)*)"+K+"+$","g"),Q=new RegExp("^"+K+"*,"+K+"*"),R=new RegExp("^"+K+"*([>+~]|"+K+")"+K+"*"),S=new RegExp("="+K+"*([^\\]'\"]*?)"+K+"*\\]","g"),T=new RegExp(N),U=new RegExp("^"+L+"$"),V={IDLine truncated
|
||||
a.removeEventListener("load",S),r.ready()}"complete"===d.readyState||"loading"!==d.readyState&&!d.documentElement.doScroll?a.setTimeout(r.ready):(d.addEventListener("DOMContentLoaded",S),a.addEventListener("load",S));var T=function(a,b,c,d,e,f,g){var h=0,i=a.length,j=null==c;if("object"===r.type(c)){e=!0;for(h in c)T(a,b,h,c[h],!0,f,g)}else if(void 0!==d&&(e=!0,r.isFunction(d)||(g=!0),j&&(g?(b.call(a,d),b=null):(j=b,b=function(a,b,c){return j.call(r(a),c)})),b))for(;h<i;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},U=function(a){return 1===a.nodeType||9===a.nodeType||!+a.nodeType};function V(){this.expando=r.expando+V.uid++}V.uid=1,V.prototype={cache:function(a){var b=a[this.expando];return b||(b={},U(a)&&(a.nodeType?a[this.expando]=b:Object.defineProperty(a,this.expando,{value:b,configurable:!0}))),b},set:function(a,b,c){var d,e=this.cache(a);if("string"==typeof b)e[r.camelCase(b)]=c;else for(d in b)e[r.camelCase(d)]=b[d];return e},get:function(a,b){return void 0===b?this.cache(a):a[this.expando]&&a[this.expando][r.camelCase(b)]},access:function(a,b,c){return void 0===b||b&&"string"==typeof b&&void 0===c?this.get(a,b):(this.set(a,b,c),void 0!==c?c:b)},remove:function(a,b){var c,d=a[this.expando];if(void 0!==d){if(void 0!==b){Array.isArray(b)?b=b.map(r.camelCase):(b=r.camelCase(b),b=b in d?[b]:b.match(L)||[]),c=b.length;while(c--)delete d[b[c]]}(void 0===b||r.isEmptyObject(d))&&(a.nodeType?a[this.expando]=void 0:delete a[this.expando])}},hasData:function(a){var b=a[this.expando];return void 0!==b&&!r.isEmptyObject(b)}};var W=new V,X=new V,Y=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Z=/[A-Z]/g;function $(a){return"true"===a||"false"!==a&&("null"===a?null:a===+a+""?+a:Y.test(a)?JSON.parse(a):a)}function _(a,b,c){var d;if(void 0===c&&1===a.nodeType)if(d="data-"+b.replace(Z,"-$&").toLowerCase(),c=a.getAttribute(d),"string"==typeof c){try{c=$(c)}catch(e){}X.set(a,b,c)}else c=void 0;return c}r.extend({hasData:function(a){return X.hasData(a)||W.hasData(a)},data:function(a,b,c){return X.access(a,b,c)},removeData:function(a,b){X.remove(a,b)},_data:function(a,b,c){return W.access(a,b,c)},_removeData:function(a,b){W.remove(a,b)}}),r.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=X.get(f),1===f.nodeType&&!W.get(f,"hasDataAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=r.camelCase(d.slice(5)),_(f,d,e[d])));W.set(f,"hasDataAttrs",!0)}return e}return"object"==typeof a?this.each(function(){X.set(this,a)}):T(this,function(b){var c;if(f&&void 0===b){if(c=X.get(f,a),void 0!==c)return c;if(c=_(f,a),void 0!==c)return c}else this.each(function(){X.set(this,a,b)})},null,b,arguments.length>1,null,!0)},removeData:function(a){return this.each(function(){X.remove(this,a)})}}),r.extend({queue:function(a,b,c){var d;if(a)return b=(b||"fx")+"queue",d=W.get(a,b),c&&(!d||Array.isArray(c)?d=W.access(a,b,r.makeArray(c)):d.push(c)),d||[]},dequeue:function(a,b){b=b||"fx";var c=r.queue(a,b),d=c.length,e=c.shift(),f=r._queueHooks(a,b),g=function(){r.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return W.get(a,c)||W.access(a,c,{empty:r.Callbacks("once memory").add(function(){W.remove(a,[b+"queue",c])})})}}),r.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.length<c?r.queue(this[0],a):void 0===b?this:this.each(function(){var c=r.queue(this,a,b);r._queueHooks(this,a),"fx"===a&&"inprogress"!==c[0]&&r.dequeue(this,a)})},dequeue:function(a){return this.each(function(){r.dequeue(this,a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,b){var c,d=1,e=r.Deferred(),f=this,g=this.length,h=function(){--d||e.resolveWith(f,[f])};"string"!=typeof a&&(b=a,a=void 0),a=a||"fx";while(g--)c=W.get(f[g],a+"queueHooks"),c&&c.empty&&(d++,c.empty.add(h));return h(),e.promise(b)}});var aa=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ba=new RegExp("^(?:([+-])=|)("+aa+")([a-z%]*)$","i"),ca=["Top","Right","Bottom","Left"],da=function(a,b){return a=b||a,"none"===a.style.display||""===a.style.display&&r.contains(a.ownerDocument,a)&&"none"===r.css(a,"display")},ea=function(a,b,c,d){var e,f,g={};for(f in b)g[f]=a.style[f],a.style[f]=b[f];e=c.apply(a,d||[]);for(f in b)a.style[f]=g[f];return e};function fa(a,b,c,d){var e,f=1,g=20,h=d?function(){return d.cur()}:function(){return r.css(a,b,"")},i=h(),j=c&&c[3]||(r.cssNumber[b]?"":"px"),k=(r.cssNumber[b]||"px"!==j&&+i)&&ba.exec(r.css(a,b));if(k&&k[3]!==j){j=j||k[3],c=c||[],k=+i||1;do f=f||".5",k/=f,r.style(a,b,k+j);while(f!==(f=h()/i)&&1!==f&&--g)}return c&&(k=+k||+i||0,e=c[1]?k+(c[1]+1)*c[2]:+c[2],d&&(d.unit=j,d.start=k,d.end=e)),e}var ga={};function ha(a){var b,c=a.ownerDocument,d=a.nodeName,e=ga[d];return e?e:(b=c.body.appendChild(c.createElement(d)),e=r.css(b,"display"),b.parentNode.removeChild(b),"none"===e&&(e=Line truncated
|
||||
null==d?void 0:d))},attrHooks:{type:{set:function(a,b){if(!o.radioValue&&"radio"===b&&B(a,"input")){var c=a.value;return a.setAttribute("type",b),c&&(a.value=c),b}}}},removeAttr:function(a,b){var c,d=0,e=b&&b.match(L);if(e&&1===a.nodeType)while(c=e[d++])a.removeAttribute(c)}}),lb={set:function(a,b,c){return b===!1?r.removeAttr(a,c):a.setAttribute(c,c),c}},r.each(r.expr.match.bool.source.match(/\w+/g),function(a,b){var c=mb[b]||r.find.attr;mb[b]=function(a,b,d){var e,f,g=b.toLowerCase();return d||(f=mb[g],mb[g]=e,e=null!=c(a,b,d)?g:null,mb[g]=f),e}});var nb=/^(?:input|select|textarea|button)$/i,ob=/^(?:a|area)$/i;r.fn.extend({prop:function(a,b){return T(this,r.prop,a,b,arguments.length>1)},removeProp:function(a){return this.each(function(){delete this[r.propFix[a]||a]})}}),r.extend({prop:function(a,b,c){var d,e,f=a.nodeType;if(3!==f&&8!==f&&2!==f)return 1===f&&r.isXMLDoc(a)||(b=r.propFix[b]||b,e=r.propHooks[b]),void 0!==c?e&&"set"in e&&void 0!==(d=e.set(a,c,b))?d:a[b]=c:e&&"get"in e&&null!==(d=e.get(a,b))?d:a[b]},propHooks:{tabIndex:{get:function(a){var b=r.find.attr(a,"tabindex");return b?parseInt(b,10):nb.test(a.nodeName)||ob.test(a.nodeName)&&a.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),o.optSelected||(r.propHooks.selected={get:function(a){var b=a.parentNode;return b&&b.parentNode&&b.parentNode.selectedIndex,null},set:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex)}}),r.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){r.propFix[this.toLowerCase()]=this});function pb(a){var b=a.match(L)||[];return b.join(" ")}function qb(a){return a.getAttribute&&a.getAttribute("class")||""}r.fn.extend({addClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).addClass(a.call(this,b,qb(this)))});if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])d.indexOf(" "+f+" ")<0&&(d+=f+" ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},removeClass:function(a){var b,c,d,e,f,g,h,i=0;if(r.isFunction(a))return this.each(function(b){r(this).removeClass(a.call(this,b,qb(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof a&&a){b=a.match(L)||[];while(c=this[i++])if(e=qb(c),d=1===c.nodeType&&" "+pb(e)+" "){g=0;while(f=b[g++])while(d.indexOf(" "+f+" ")>-1)d=d.replace(" "+f+" "," ");h=pb(d),e!==h&&c.setAttribute("class",h)}}return this},toggleClass:function(a,b){var c=typeof a;return"boolean"==typeof b&&"string"===c?b?this.addClass(a):this.removeClass(a):r.isFunction(a)?this.each(function(c){r(this).toggleClass(a.call(this,c,qb(this),b),b)}):this.each(function(){var b,d,e,f;if("string"===c){d=0,e=r(this),f=a.match(L)||[];while(b=f[d++])e.hasClass(b)?e.removeClass(b):e.addClass(b)}else void 0!==a&&"boolean"!==c||(b=qb(this),b&&W.set(this,"__className__",b),this.setAttribute&&this.setAttribute("class",b||a===!1?"":W.get(this,"__className__")||""))})},hasClass:function(a){var b,c,d=0;b=" "+a+" ";while(c=this[d++])if(1===c.nodeType&&(" "+pb(qb(c))+" ").indexOf(b)>-1)return!0;return!1}});var rb=/\r/g;r.fn.extend({val:function(a){var b,c,d,e=this[0];{if(arguments.length)return d=r.isFunction(a),this.each(function(c){var e;1===this.nodeType&&(e=d?a.call(this,c,r(this).val()):a,null==e?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=r.map(e,function(a){return null==a?"":a+""})),b=r.valHooks[this.type]||r.valHooks[this.nodeName.toLowerCase()],b&&"set"in b&&void 0!==b.set(this,e,"value")||(this.value=e))});if(e)return b=r.valHooks[e.type]||r.valHooks[e.nodeName.toLowerCase()],b&&"get"in b&&void 0!==(c=b.get(e,"value"))?c:(c=e.value,"string"==typeof c?c.replace(rb,""):null==c?"":c)}}}),r.extend({valHooks:{option:{get:function(a){var b=r.find.attr(a,"value");return null!=b?b:pb(r.text(a))}},select:{get:function(a){var b,c,d,e=a.options,f=a.selectedIndex,g="select-one"===a.type,h=g?null:[],i=g?f+1:e.length;for(d=f<0?i:g?f:0;d<i;d++)if(c=e[d],(c.selected||d===f)&&!c.disabled&&(!c.parentNode.disabled||!B(c.parentNode,"optgroup"))){if(b=r(c).val(),g)return b;h.push(b)}return h},set:function(a,b){var c,d,e=a.options,f=r.makeArray(b),g=e.length;while(g--)d=e[g],(d.selected=r.inArray(r.valHooks.option.get(d),f)>-1)&&(c=!0);return c||(a.selectedIndex=-1),f}}}}),r.each(["radio","checkbox"],function(){r.valHooks[this]={set:function(a,b){if(Array.isArray(b))return a.checked=r.inArray(r(a).val(),b)>-1}},o.checkOn||(r.valHooks[this].get=function(a){return null===a.getAttribute("value")?"on":a.value})});var sb=/^(?:focusinfocus|focusoutblur)$/;r.extend(r.event,{trigger:function(b,c,e,f){var g,h,i,j,k,m,n,o=[e||d],p=l.call(b,"type")?b.type:b,q=l.call(b,"namespace")?b.namespace.split("."):[];if(h=i=e=e||d,3!==e.nodeType&&8!==e.nodeType&&!sb.test(p+r.event.triggered)&&(p.indexOf(".")>-1&&(q=p.split("."),p=q.shift(),q.sort()),k=p.indexOf(":")<0&&"on"+p,b=b[r.expando]?bLine truncated
|
||||
|
||||
|
||||
|
||||
|
||||
!function(){function n(n){return n&&(n.ownerDocument||n.document||n).documentElement}function t(n){return n&&(n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView)}function e(n,t){return t>n?-1:n>t?1:n>=t?0:NaN}function r(n){return null===n?NaN:+n}function i(n){return!isNaN(n)}function u(n){return{left:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var u=r+i>>>1;n(t[u],e)<0?r=u+1:i=u}return r},right:function(t,e,r,i){for(arguments.length<3&&(r=0),arguments.length<4&&(i=t.length);i>r;){var u=r+i>>>1;n(t[u],e)>0?i=u:r=u+1}return r}}}function o(n){return n.length}function a(n){for(var t=1;n*t%1;)t*=10;return t}function l(n,t){for(var e in t)Object.defineProperty(n.prototype,e,{value:t[e],enumerable:!1})}function c(){this._=Object.create(null)}function f(n){return(n+="")===bo||n[0]===_o?_o+n:n}function s(n){return(n+="")[0]===_o?n.slice(1):n}function h(n){return f(n)in this._}function p(n){return(n=f(n))in this._&&delete this._[n]}function g(){var n=[];for(var t in this._)n.push(s(t));return n}function v(){var n=0;for(var t in this._)++n;return n}function d(){for(var n in this._)return!1;return!0}function y(){this._=Object.create(null)}function m(n){return n}function M(n,t,e){return function(){var r=e.apply(t,arguments);return r===t?n:r}}function x(n,t){if(t in n)return t;t=t.charAt(0).toUpperCase()+t.slice(1);for(var e=0,r=wo.length;r>e;++e){var i=wo[e]+t;if(i in n)return i}}function b(){}function _(){}function w(n){function t(){for(var t,r=e,i=-1,u=r.length;++i<u;)(t=r[i].on)&&t.apply(this,arguments);return n}var e=[],r=new c;return t.on=function(t,i){var u,o=r.get(t);return arguments.length<2?o&&o.on:(o&&(o.on=null,e=e.slice(0,u=e.indexOf(o)).concat(e.slice(u+1)),r.remove(t)),i&&e.push(r.set(t,{on:i})),n)},t}function S(){ao.event.preventDefault()}function k(){for(var n,t=ao.event;n=t.sourceEvent;)t=n;return t}function N(n){for(var t=new _,e=0,r=arguments.length;++e<r;)t[arguments[e]]=w(t);return t.of=function(e,r){return function(i){try{var u=i.sourceEvent=ao.event;i.target=n,ao.event=i,t[i.type].apply(e,r)}finally{ao.event=u}}},t}function E(n){return ko(n,Co),n}function A(n){return"function"==typeof n?n:function(){return No(n,this)}}function C(n){return"function"==typeof n?n:function(){return Eo(n,this)}}function z(n,t){function e(){this.removeAttribute(n)}function r(){this.removeAttributeNS(n.space,n.local)}function i(){this.setAttribute(n,t)}function u(){this.setAttributeNS(n.space,n.local,t)}function o(){var e=t.apply(this,arguments);null==e?this.removeAttribute(n):this.setAttribute(n,e)}function a(){var e=t.apply(this,arguments);null==e?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,e)}return n=ao.ns.qualify(n),null==t?n.local?r:e:"function"==typeof t?n.local?a:o:n.local?u:i}function L(n){return n.trim().replace(/\s+/g," ")}function q(n){return new RegExp("(?:^|\\s+)"+ao.requote(n)+"(?:\\s+|$)","g")}function T(n){return(n+"").trim().split(/^|\s+/)}function R(n,t){function e(){for(var e=-1;++e<i;)n[e](this,t)}function r(){for(var e=-1,r=t.apply(this,arguments);++e<i;)n[e](this,r)}n=T(n).map(D);var i=n.length;return"function"==typeof t?r:e}function D(n){var t=q(n);return function(e,r){if(i=e.classList)return r?i.add(n):i.remove(n);var i=e.getAttribute("class")||"";r?(t.lastIndex=0,t.test(i)||e.setAttribute("class",L(i+" "+n))):e.setAttribute("class",L(i.replace(t," ")))}}function P(n,t,e){function r(){this.style.removeProperty(n)}function i(){this.style.setProperty(n,t,e)}function u(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(n):this.style.setProperty(n,r,e)}return null==t?r:"function"==typeof t?u:i}function U(n,t){function e(){delete this[n]}function r(){this[n]=t}function i(){var e=t.apply(this,arguments);null==e?delete this[n]:this[n]=e}return null==t?e:"function"==typeof t?i:r}function j(n){function t(){var t=this.ownerDocument,e=this.namespaceURI;return e===zo&&t.documentElement.namespaceURI===zo?t.createElement(n):t.createElementNS(e,n)}function e(){return this.ownerDocument.createElementNS(n.space,n.local)}return"function"==typeof n?n:(n=ao.ns.qualify(n)).local?e:t}function F(){var n=this.parentNode;n&&n.removeChild(this)}function H(n){return{__data__:n}}function O(n){return function(){return Ao(this,n)}}function I(n){return arguments.length||(n=e),function(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}}function Y(n,t){for(var e=0,r=n.length;r>e;e++)for(var i,u=n[e],o=0,a=u.length;a>o;o++)(i=u[o])&&t(i,o,e);return n}function Z(n){return ko(n,qo),n}function V(n){var t,e;return function(r,i,u){var o,a=n[u].update,l=a.length;for(u!=e&&(e=u,t=0),i>=t&&(t=i+1);!(o=a[t])&&++t<l;);return o}}function X(n,t,e){function r(){var t=this[o];t&&(this.removeEventListener(n,t,t.$),delete this[o])}function i(){var i=l(t,co(arguments));r.call(this),this.addEventListener(n,this[o]=i,i.$=e),i._=t}function u(){var t,e=new RegExp("^__on([^.]+)"+ao.requote(n)+"$");for(var r in this)if(t=r.match(e)){var i=thLine truncated
|
||||
r(),S.point=c,S.lineEnd=f}function c(n,t){u(s=n,h=t),p=M,g=x,v=b,d=_,y=w,S.point=u}function f(){i(M,x,m,b,_,w,p,g,s,v,d,y,a,t),S.lineEnd=o,o()}var s,h,p,g,v,d,y,m,M,x,b,_,w,S={point:e,lineStart:r,lineEnd:o,polygonStart:function(){t.polygonStart(),S.lineStart=l},polygonEnd:function(){t.polygonEnd(),S.lineStart=r}};return S}function i(t,e,r,a,l,c,f,s,h,p,g,v,d,y){var m=f-t,M=s-e,x=m*m+M*M;if(x>4*u&&d--){var b=a+p,_=l+g,w=c+v,S=Math.sqrt(b*b+_*_+w*w),k=Math.asin(w/=S),N=xo(xo(w)-1)<Uo||xo(r-h)<Uo?(r+h)/2:Math.atan2(_,b),E=n(N,k),A=E[0],C=E[1],z=A-t,L=C-e,q=M*z-m*L;(q*q/x>u||xo((m*z+M*L)/x-.5)>.3||o>a*p+l*g+c*v)&&(i(t,e,r,a,l,c,A,C,N,b/=S,_/=S,w,d,y),y.point(A,C),i(A,C,N,b,_,w,f,s,h,p,g,v,d,y))}}var u=.5,o=Math.cos(30*Yo),a=16;return t.precision=function(n){return arguments.length?(a=(u=n*n)>0&&16,t):Math.sqrt(u)},t}function re(n){var t=ee(function(t,e){return n([t*Zo,e*Zo])});return function(n){return le(t(n))}}function ie(n){this.stream=n}function ue(n,t){return{point:t,sphere:function(){n.sphere()},lineStart:function(){n.lineStart()},lineEnd:function(){n.lineEnd()},polygonStart:function(){n.polygonStart()},polygonEnd:function(){n.polygonEnd()}}}function oe(n){return ae(function(){return n})()}function ae(n){function t(n){return n=a(n[0]*Yo,n[1]*Yo),[n[0]*h+l,c-n[1]*h]}function e(n){return n=a.invert((n[0]-l)/h,(c-n[1])/h),n&&[n[0]*Zo,n[1]*Zo]}function r(){a=Ct(o=se(y,M,x),u);var n=u(v,d);return l=p-n[0]*h,c=g+n[1]*h,i()}function i(){return f&&(f.valid=!1,f=null),t}var u,o,a,l,c,f,s=ee(function(n,t){return n=u(n,t),[n[0]*h+l,c-n[1]*h]}),h=150,p=480,g=250,v=0,d=0,y=0,M=0,x=0,b=Fa,_=m,w=null,S=null;return t.stream=function(n){return f&&(f.valid=!1),f=le(b(o,s(_(n)))),f.valid=!0,f},t.clipAngle=function(n){return arguments.length?(b=null==n?(w=n,Fa):It((w=+n)*Yo),i()):w},t.clipExtent=function(n){return arguments.length?(S=n,_=n?Zt(n[0][0],n[0][1],n[1][0],n[1][1]):m,i()):S},t.scale=function(n){return arguments.length?(h=+n,r()):h},t.translate=function(n){return arguments.length?(p=+n[0],g=+n[1],r()):[p,g]},t.center=function(n){return arguments.length?(v=n[0]%360*Yo,d=n[1]%360*Yo,r()):[v*Zo,d*Zo]},t.rotate=function(n){return arguments.length?(y=n[0]%360*Yo,M=n[1]%360*Yo,x=n.length>2?n[2]%360*Yo:0,r()):[y*Zo,M*Zo,x*Zo]},ao.rebind(t,s,"precision"),function(){return u=n.apply(this,arguments),t.invert=u.invert&&e,r()}}function le(n){return ue(n,function(t,e){n.point(t*Yo,e*Yo)})}function ce(n,t){return[n,t]}function fe(n,t){return[n>Fo?n-Ho:-Fo>n?n+Ho:n,t]}function se(n,t,e){return n?t||e?Ct(pe(n),ge(t,e)):pe(n):t||e?ge(t,e):fe}function he(n){return function(t,e){return t+=n,[t>Fo?t-Ho:-Fo>t?t+Ho:t,e]}}function pe(n){var t=he(n);return t.invert=he(-n),t}function ge(n,t){function e(n,t){var e=Math.cos(t),a=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),f=c*r+a*i;return[Math.atan2(l*u-f*o,a*r-c*i),tn(f*u+l*o)]}var r=Math.cos(n),i=Math.sin(n),u=Math.cos(t),o=Math.sin(t);return e.invert=function(n,t){var e=Math.cos(t),a=Math.cos(n)*e,l=Math.sin(n)*e,c=Math.sin(t),f=c*u-l*o;return[Math.atan2(l*u+c*o,a*r+f*i),tn(f*r-a*i)]},e}function ve(n,t){var e=Math.cos(n),r=Math.sin(n);return function(i,u,o,a){var l=o*t;null!=i?(i=de(e,i),u=de(e,u),(o>0?u>i:i>u)&&(i+=o*Ho)):(i=n+o*Ho,u=n-.5*l);for(var c,f=i;o>0?f>u:u>f;f-=l)a.point((c=_t([e,-r*Math.cos(f),-r*Math.sin(f)]))[0],c[1])}}function de(n,t){var e=dt(t);e[0]-=n,bt(e);var r=nn(-e[1]);return((-e[2]<0?-r:r)+2*Math.PI-Uo)%(2*Math.PI)}function ye(n,t,e){var r=ao.range(n,t-Uo,e).concat(t);return function(n){return r.map(function(t){return[n,t]})}}function me(n,t,e){var r=ao.range(n,t-Uo,e).concat(t);return function(n){return r.map(function(t){return[t,n]})}}function Me(n){return n.source}function xe(n){return n.target}function be(n,t,e,r){var i=Math.cos(t),u=Math.sin(t),o=Math.cos(r),a=Math.sin(r),l=i*Math.cos(n),c=i*Math.sin(n),f=o*Math.cos(e),s=o*Math.sin(e),h=2*Math.asin(Math.sqrt(on(r-t)+i*o*on(e-n))),p=1/Math.sin(h),g=h?function(n){var t=Math.sin(n*=h)*p,e=Math.sin(h-n)*p,r=e*l+t*f,i=e*c+t*s,o=e*u+t*a;return[Math.atan2(i,r)*Zo,Math.atan2(o,Math.sqrt(r*r+i*i))*Zo]}:function(){return[n*Zo,t*Zo]};return g.distance=h,g}function _e(){function n(n,i){var u=Math.sin(i*=Yo),o=Math.cos(i),a=xo((n*=Yo)-t),l=Math.cos(a);Ja+=Math.atan2(Math.sqrt((a=o*Math.sin(a))*a+(a=r*u-e*o*l)*a),e*u+r*o*l),t=n,e=u,r=o}var t,e,r;Ga.point=function(i,u){t=i*Yo,e=Math.sin(u*=Yo),r=Math.cos(u),Ga.point=n},Ga.lineEnd=function(){Ga.point=Ga.lineEnd=b}}function we(n,t){function e(t,e){var r=Math.cos(t),i=Math.cos(e),u=n(r*i);return[u*i*Math.sin(t),u*Math.sin(e)]}return e.invert=function(n,e){var r=Math.sqrt(n*n+e*e),i=t(r),u=Math.sin(i),o=Math.cos(i);return[Math.atan2(n*u,r*o),Math.asin(r&&e*u/r)]},e}function Se(n,t){function e(n,t){o>0?-Io+Uo>t&&(t=-Io+Uo):t>Io-Uo&&(t=Io-Uo);var e=o/Math.pow(i(t),u);return[e*Math.sin(u*n),o-e*Math.cos(u*n)]}var r=Math.cos(n),i=function(n){return Math.tan(Fo/4+n/2)},u=n===t?Math.sin(n):Math.log(r/Math.cos(t))/Math.log(i(t)/i(n)),o=r*Math.pow(i(n),u)/u;return u?(e.invert=function(n,tLine truncated
|
||||
return p}:En(r),w=i===u?function(){return g}:En(u);++m<M;)o.call(this,h=t[m],m)?(d.push([p=+x.call(this,h,m),g=+b.call(this,h,m)]),y.push([+_.call(this,h,m),+w.call(this,h,m)])):d.length&&(l(),d=[],y=[]);return d.length&&l(),v.length?v.join(""):null}var e=Ce,r=Ce,i=0,u=ze,o=zt,a=xu,l=a.key,c=a,f="L",s=.7;return t.x=function(n){return arguments.length?(e=r=n,t):r},t.x0=function(n){return arguments.length?(e=n,t):e},t.x1=function(n){return arguments.length?(r=n,t):r},t.y=function(n){return arguments.length?(i=u=n,t):u},t.y0=function(n){return arguments.length?(i=n,t):i},t.y1=function(n){return arguments.length?(u=n,t):u},t.defined=function(n){return arguments.length?(o=n,t):o},t.interpolate=function(n){return arguments.length?(l="function"==typeof n?a=n:(a=Tl.get(n)||xu).key,c=a.reverse||a,f=a.closed?"M":"L",t):l},t.tension=function(n){return arguments.length?(s=n,t):s},t}function Iu(n){return n.radius}function Yu(n){return[n.x,n.y]}function Zu(n){return function(){var t=n.apply(this,arguments),e=t[0],r=t[1]-Io;return[e*Math.cos(r),e*Math.sin(r)]}}function Vu(){return 64}function Xu(){return"circle"}function $u(n){var t=Math.sqrt(n/Fo);return"M0,"+t+"A"+t+","+t+" 0 1,1 0,"+-t+"A"+t+","+t+" 0 1,1 0,"+t+"Z"}function Bu(n){return function(){var t,e,r;(t=this[n])&&(r=t[e=t.active])&&(r.timer.c=null,r.timer.t=NaN,--t.count?delete t[e]:delete this[n],t.active+=.5,r.event&&r.event.interrupt.call(this,this.__data__,r.index))}}function Wu(n,t,e){return ko(n,Yl),n.namespace=t,n.id=e,n}function Ju(n,t,e,r){var i=n.id,u=n.namespace;return Y(n,"function"==typeof e?function(n,o,a){n[u][i].tween.set(t,r(e.call(n,n.__data__,o,a)))}:(e=r(e),function(n){n[u][i].tween.set(t,e)}))}function Gu(n){return null==n&&(n=""),function(){this.textContent=n}}function Ku(n){return null==n?"__transition__":"__transition_"+n+"__"}function Qu(n,t,e,r,i){function u(n){var t=v.delay;return f.t=t+l,n>=t?o(n-t):void(f.c=o)}function o(e){var i=g.active,u=g[i];u&&(u.timer.c=null,u.timer.t=NaN,--g.count,delete g[i],u.event&&u.event.interrupt.call(n,n.__data__,u.index));for(var o in g)if(r>+o){var c=g[o];c.timer.c=null,c.timer.t=NaN,--g.count,delete g[o]}f.c=a,qn(function(){return f.c&&a(e||1)&&(f.c=null,f.t=NaN),1},0,l),g.active=r,v.event&&v.event.start.call(n,n.__data__,t),p=[],v.tween.forEach(function(e,r){(r=r.call(n,n.__data__,t))&&p.push(r)}),h=v.ease,s=v.duration}function a(i){for(var u=i/s,o=h(u),a=p.length;a>0;)p[--a].call(n,o);return u>=1?(v.event&&v.event.end.call(n,n.__data__,t),--g.count?delete g[r]:delete n[e],1):void 0}var l,f,s,h,p,g=n[e]||(n[e]={active:0,count:0}),v=g[r];v||(l=i.time,f=qn(u,0,l),v=g[r]={tween:new c,time:l,timer:f,delay:i.delay,duration:i.duration,ease:i.ease,index:t},i=null,++g.count)}function no(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate("+(isFinite(r)?r:e(n))+",0)"})}function to(n,t,e){n.attr("transform",function(n){var r=t(n);return"translate(0,"+(isFinite(r)?r:e(n))+")"})}function eo(n){return n.toISOString()}function ro(n,t,e){function r(t){return n(t)}function i(n,e){var r=n[1]-n[0],i=r/e,u=ao.bisect(Kl,i);return u==Kl.length?[t.year,Ki(n.map(function(n){return n/31536e6}),e)[2]]:u?t[i/Kl[u-1]<Kl[u]/i?u-1:u]:[tc,Ki(n,e)[2]]}return r.invert=function(t){return io(n.invert(t))},r.domain=function(t){return arguments.length?(n.domain(t),r):n.domain().map(io)},r.nice=function(n,t){function e(e){return!isNaN(e)&&!n.range(e,io(+e+1),t).length}var u=r.domain(),o=Yi(u),a=null==n?i(o,10):"number"==typeof n&&i(o,n);return a&&(n=a[0],t=a[1]),r.domain(Xi(u,t>1?{floor:function(t){for(;e(t=n.floor(t));)t=io(t-1);return t},ceil:function(t){for(;e(t=n.ceil(t));)t=io(+t+1);return t}}:n))},r.ticks=function(n,t){var e=Yi(r.domain()),u=null==n?i(e,10):"number"==typeof n?i(e,n):!n.range&&[{range:n},t];return u&&(n=u[0],t=u[1]),n.range(e[0],io(+e[1]+1),1>t?1:t)},r.tickFormat=function(){return e},r.copy=function(){return ro(n.copy(),t,e)},Ji(r,n)}function io(n){return new Date(n)}function uo(n){return JSON.parse(n.responseText)}function oo(n){var t=fo.createRange();return t.selectNode(fo.body),t.createContextualFragment(n.responseText)}var ao={version:"3.5.17"},lo=[].slice,co=function(n){return lo.call(n)},fo=this.document;if(fo)try{co(fo.documentElement.childNodes)[0].nodeType}catch(so){co=function(n){for(var t=n.length,e=new Array(t);t--;)e[t]=n[t];return e}}if(Date.now||(Date.now=function(){return+new Date}),fo)try{fo.createElement("DIV").style.setProperty("opacity",0,"")}catch(ho){var po=this.Element.prototype,go=po.setAttribute,vo=po.setAttributeNS,yo=this.CSSStyleDeclaration.prototype,mo=yo.setProperty;po.setAttribute=function(n,t){go.call(this,n,t+"")},po.setAttributeNS=function(n,t,e){vo.call(this,n,t,e+"")},yo.setProperty=function(n,t,e){mo.call(this,n,t+"",e)}}ao.ascending=e,ao.descending=function(n,t){return n>t?-1:t>n?1:t>=n?0:NaN},ao.min=function(n,t){var e,r,i=-1,u=n.length;if(1===arguments.length){for(;++i<u;)if(null!=(r=n[i])&&r>=r){e=r;break}for(;++i<u;)null!=(r=n[i])&&e>r&&(e=r)}else{for(;++i<uLine truncated
|
||||
shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});ao.format=xa.numberFormat,ao.geo={},ft.prototype={s:0,t:0,add:function(n){st(n,this.t,ba),st(ba.s,this.s,this),this.s?this.t+=ba.t:this.s=ba.t},reset:function(){this.s=this.t=0},valueOf:function(){return this.s}};var ba=new ft;ao.geo.stream=function(n,t){n&&_a.hasOwnProperty(n.type)?_a[n.type](n,t):ht(n,t)};var _a={Feature:function(n,t){ht(n.geometry,t)},FeatureCollection:function(n,t){for(var e=n.features,r=-1,i=e.length;++r<i;)ht(e[r].geometry,t)}},wa={Sphere:function(n,t){t.sphere()},Point:function(n,t){n=n.coordinates,t.point(n[0],n[1],n[2])},MultiPoint:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)n=e[r],t.point(n[0],n[1],n[2])},LineString:function(n,t){pt(n.coordinates,t,0)},MultiLineString:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)pt(e[r],t,0)},Polygon:function(n,t){gt(n.coordinates,t)},MultiPolygon:function(n,t){for(var e=n.coordinates,r=-1,i=e.length;++r<i;)gt(e[r],t)},GeometryCollection:function(n,t){for(var e=n.geometries,r=-1,i=e.length;++r<i;)ht(e[r],t)}};ao.geo.area=function(n){return Sa=0,ao.geo.stream(n,Na),Sa};var Sa,ka=new ft,Na={sphere:function(){Sa+=4*Fo},point:b,lineStart:b,lineEnd:b,polygonStart:function(){ka.reset(),Na.lineStart=vt},polygonEnd:function(){var n=2*ka;Sa+=0>n?4*Fo+n:n,Na.lineStart=Na.lineEnd=Na.point=b}};ao.geo.bounds=function(){function n(n,t){M.push(x=[f=n,h=n]),s>t&&(s=t),t>p&&(p=t)}function t(t,e){var r=dt([t*Yo,e*Yo]);if(y){var i=mt(y,r),u=[i[1],-i[0],0],o=mt(u,i);bt(o),o=_t(o);var l=t-g,c=l>0?1:-1,v=o[0]*Zo*c,d=xo(l)>180;if(d^(v>c*g&&c*t>v)){var m=o[1]*Zo;m>p&&(p=m)}else if(v=(v+360)%360-180,d^(v>c*g&&c*t>v)){var m=-o[1]*Zo;s>m&&(s=m)}else s>e&&(s=e),e>p&&(p=e);d?g>t?a(f,t)>a(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t):h>=f?(f>t&&(f=t),t>h&&(h=t)):t>g?a(f,t)>a(f,h)&&(h=t):a(t,h)>a(f,h)&&(f=t)}else n(t,e);y=r,g=t}function e(){b.point=t}function r(){x[0]=f,x[1]=h,b.point=n,y=null}function i(n,e){if(y){var r=n-g;m+=xo(r)>180?r+(r>0?360:-360):r}else v=n,d=e;Na.point(n,e),t(n,e)}function u(){Na.lineStart()}function o(){i(v,d),Na.lineEnd(),xo(m)>Uo&&(f=-(h=180)),x[0]=f,x[1]=h,y=null}function a(n,t){return(t-=n)<0?t+360:t}function l(n,t){return n[0]-t[0]}function c(n,t){return t[0]<=t[1]?t[0]<=n&&n<=t[1]:n<t[0]||t[1]<n}var f,s,h,p,g,v,d,y,m,M,x,b={point:n,lineStart:e,lineEnd:r,polygonStart:function(){b.point=i,b.lineStart=u,b.lineEnd=o,m=0,Na.polygonStart()},polygonEnd:function(){Na.polygonEnd(),b.point=n,b.lineStart=e,b.lineEnd=r,0>ka?(f=-(h=180),s=-(p=90)):m>Uo?p=90:-Uo>m&&(s=-90),x[0]=f,x[1]=h}};return function(n){p=h=-(f=s=1/0),M=[],ao.geo.stream(n,b);var t=M.length;if(t){M.sort(l);for(var e,r=1,i=M[0],u=[i];t>r;++r)e=M[r],c(e[0],i)||c(e[1],i)?(a(i[0],e[1])>a(i[0],i[1])&&(i[1]=e[1]),a(e[0],i[1])>a(i[0],i[1])&&(i[0]=e[0])):u.push(i=e);for(var o,e,g=-(1/0),t=u.length-1,r=0,i=u[t];t>=r;i=e,++r)e=u[r],(o=a(i[1],e[0]))>g&&(g=o,f=e[0],h=i[1])}return M=x=null,f===1/0||s===1/0?[[NaN,NaN],[NaN,NaN]]:[[f,s],[h,p]]}}(),ao.geo.centroid=function(n){Ea=Aa=Ca=za=La=qa=Ta=Ra=Da=Pa=Ua=0,ao.geo.stream(n,ja);var t=Da,e=Pa,r=Ua,i=t*t+e*e+r*r;return jo>i&&(t=qa,e=Ta,r=Ra,Uo>Aa&&(t=Ca,e=za,r=La),i=t*t+e*e+r*r,jo>i)?[NaN,NaN]:[Math.atan2(e,t)*Zo,tn(r/Math.sqrt(i))*Zo]};var Ea,Aa,Ca,za,La,qa,Ta,Ra,Da,Pa,Ua,ja={sphere:b,point:St,lineStart:Nt,lineEnd:Et,polygonStart:function(){ja.lineStart=At},polygonEnd:function(){ja.lineStart=Nt}},Fa=Rt(zt,jt,Ht,[-Fo,-Fo/2]),Ha=1e9;ao.geo.clipExtent=function(){var n,t,e,r,i,u,o={stream:function(n){return i&&(i.valid=!1),i=u(n),i.valid=!0,i},extent:function(a){return arguments.length?(u=Zt(n=+a[0][0],t=+a[0][1],e=+a[1][0],r=+a[1][1]),i&&(i.valid=!1,i=null),o):[[n,t],[e,r]]}};return o.extent([[0,0],[960,500]])},(ao.geo.conicEqualArea=function(){return Vt(Xt)}).raw=Xt,ao.geo.albers=function(){return ao.geo.conicEqualArea().rotate([96,0]).center([-.6,38.7]).parallels([29.5,45.5]).scale(1070)},ao.geo.albersUsa=function(){function n(n){var u=n[0],o=n[1];return t=null,e(u,o),t||(r(u,o),t)||i(u,o),t}var t,e,r,i,u=ao.geo.albers(),o=ao.geo.conicEqualArea().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a=ao.geo.conicEqualArea().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(n,e){t=[n,e]}};return n.invert=function(n){var t=u.scale(),e=u.translate(),r=(n[0]-e[0])/t,i=(n[1]-e[1])/t;return(i>=.12&&.234>i&&r>=-.425&&-.214>r?o:i>=.166&&.234>i&&r>=-.214&&-.115>r?a:u).invert(n)},n.stream=function(n){var t=u.stream(n),e=o.stream(n),r=a.stream(n);return{point:function(n,i){t.point(n,i),e.point(n,i),r.point(n,i)},sphere:function(){t.sphere(),e.sphere(),r.sphere()},lineStart:function(){t.lineStart(),e.lineStart(),r.lineStart()},lineEnd:function(){t.lineEnd(),e.lineEnd(),r.lineEnd()},polygonStart:function(){t.polygonStart(),e.polygonStart(),r.polygonStart()},polygonEnd:funLine truncated
|
||||
if(t==e.dx){for((r||f>e.dy)&&(f=e.dy);++u<o;)i=n[u],i.x=a,i.y=c,i.dy=f,a+=i.dx=Math.min(e.x+e.dx-a,f?l(i.area/f):0);i.z=!0,i.dx+=e.x+e.dx-a,e.y+=f,e.dy-=f}else{for((r||f>e.dx)&&(f=e.dx);++u<o;)i=n[u],i.x=a,i.y=c,i.dx=f,c+=i.dy=Math.min(e.y+e.dy-c,f?l(i.area/f):0);i.z=!1,i.dy+=e.y+e.dy-c,e.x+=f,e.dx-=f}}function u(r){var i=o||a(r),u=i[0];return u.x=u.y=0,u.value?(u.dx=c[0],u.dy=c[1]):u.dx=u.dy=0,o&&a.revalue(u),n([u],u.dx*u.dy/u.value),(o?e:t)(u),h&&(o=i),i}var o,a=ao.layout.hierarchy(),l=Math.round,c=[1,1],f=null,s=Oi,h=!1,p="squarify",g=.5*(1+Math.sqrt(5));return u.size=function(n){return arguments.length?(c=n,u):c},u.padding=function(n){function t(t){var e=n.call(u,t,t.depth);return null==e?Oi(t):Ii(t,"number"==typeof e?[e,e,e,e]:e)}function e(t){return Ii(t,n)}if(!arguments.length)return f;var r;return s=null==(f=n)?Oi:"function"==(r=typeof n)?t:"number"===r?(n=[n,n,n,n],e):e,u},u.round=function(n){return arguments.length?(l=n?Math.round:Number,u):l!=Number},u.sticky=function(n){return arguments.length?(h=n,o=null,u):h},u.ratio=function(n){return arguments.length?(g=n,u):g},u.mode=function(n){return arguments.length?(p=n+"",u):p},ii(u,a)},ao.random={normal:function(n,t){var e=arguments.length;return 2>e&&(t=1),1>e&&(n=0),function(){var e,r,i;do e=2*Math.random()-1,r=2*Math.random()-1,i=e*e+r*r;while(!i||i>1);return n+t*e*Math.sqrt(-2*Math.log(i)/i)}},logNormal:function(){var n=ao.random.normal.apply(ao,arguments);return function(){return Math.exp(n())}},bates:function(n){var t=ao.random.irwinHall(n);return function(){return t()/n}},irwinHall:function(n){return function(){for(var t=0,e=0;n>e;e++)t+=Math.random();return t}}},ao.scale={};var Sl={floor:m,ceil:m};ao.scale.linear=function(){return Wi([0,1],[0,1],Mr,!1)};var kl={s:1,g:1,p:1,r:1,e:1};ao.scale.log=function(){return ru(ao.scale.linear().domain([0,1]),10,!0,[1,10])};var Nl=ao.format(".0e"),El={floor:function(n){return-Math.ceil(-n)},ceil:function(n){return-Math.floor(-n)}};ao.scale.pow=function(){return iu(ao.scale.linear(),1,[0,1])},ao.scale.sqrt=function(){return ao.scale.pow().exponent(.5)},ao.scale.ordinal=function(){return ou([],{t:"range",a:[[]]})},ao.scale.category10=function(){return ao.scale.ordinal().range(Al)},ao.scale.category20=function(){return ao.scale.ordinal().range(Cl)},ao.scale.category20b=function(){return ao.scale.ordinal().range(zl)},ao.scale.category20c=function(){return ao.scale.ordinal().range(Ll)};var Al=[2062260,16744206,2924588,14034728,9725885,9197131,14907330,8355711,12369186,1556175].map(xn),Cl=[2062260,11454440,16744206,16759672,2924588,10018698,14034728,16750742,9725885,12955861,9197131,12885140,14907330,16234194,8355711,13092807,12369186,14408589,1556175,10410725].map(xn),zl=[3750777,5395619,7040719,10264286,6519097,9216594,11915115,13556636,9202993,12426809,15186514,15190932,8666169,11356490,14049643,15177372,8077683,10834324,13528509,14589654].map(xn),Ll=[3244733,7057110,10406625,13032431,15095053,16616764,16625259,16634018,3253076,7652470,10607003,13101504,7695281,10394312,12369372,14342891,6513507,9868950,12434877,14277081].map(xn);ao.scale.quantile=function(){return au([],[])},ao.scale.quantize=function(){return lu(0,1,[0,1])},ao.scale.threshold=function(){return cu([.5],[0,1])},ao.scale.identity=function(){return fu([0,1])},ao.svg={},ao.svg.arc=function(){function n(){var n=Math.max(0,+e.apply(this,arguments)),c=Math.max(0,+r.apply(this,arguments)),f=o.apply(this,arguments)-Io,s=a.apply(this,arguments)-Io,h=Math.abs(s-f),p=f>s?0:1;if(n>c&&(g=c,c=n,n=g),h>=Oo)return t(c,p)+(n?t(n,1-p):"")+"Z";var g,v,d,y,m,M,x,b,_,w,S,k,N=0,E=0,A=[];if((y=(+l.apply(this,arguments)||0)/2)&&(d=u===ql?Math.sqrt(n*n+c*c):+u.apply(this,arguments),p||(E*=-1),c&&(E=tn(d/c*Math.sin(y))),n&&(N=tn(d/n*Math.sin(y)))),c){m=c*Math.cos(f+E),M=c*Math.sin(f+E),x=c*Math.cos(s-E),b=c*Math.sin(s-E);var C=Math.abs(s-f-2*E)<=Fo?0:1;if(E&&yu(m,M,x,b)===p^C){var z=(f+s)/2;m=c*Math.cos(z),M=c*Math.sin(z),x=b=null}}else m=M=0;if(n){_=n*Math.cos(s-N),w=n*Math.sin(s-N),S=n*Math.cos(f+N),k=n*Math.sin(f+N);var L=Math.abs(f-s+2*N)<=Fo?0:1;if(N&&yu(_,w,S,k)===1-p^L){var q=(f+s)/2;_=n*Math.cos(q),w=n*Math.sin(q),S=k=null}}else _=w=0;if(h>Uo&&(g=Math.min(Math.abs(c-n)/2,+i.apply(this,arguments)))>.001){v=c>n^p?0:1;var T=g,R=g;if(Fo>h){var D=null==S?[_,w]:null==x?[m,M]:Re([m,M],[S,k],[x,b],[_,w]),P=m-D[0],U=M-D[1],j=x-D[0],F=b-D[1],H=1/Math.sin(Math.acos((P*j+U*F)/(Math.sqrt(P*P+U*U)*Math.sqrt(j*j+F*F)))/2),O=Math.sqrt(D[0]*D[0]+D[1]*D[1]);R=Math.min(g,(n-O)/(H-1)),T=Math.min(g,(c-O)/(H+1))}if(null!=x){var I=mu(null==S?[_,w]:[S,k],[m,M],c,T,p),Y=mu([x,b],[_,w],c,T,p);g===T?A.push("M",I[0],"A",T,",",T," 0 0,",v," ",I[1],"A",c,",",c," 0 ",1-p^yu(I[1][0],I[1][1],Y[1][0],Y[1][1]),",",p," ",Y[1],"A",T,",",T," 0 0,",v," ",Y[0]):A.push("M",I[0],"A",T,",",T," 0 1,",v," ",Y[0])}else A.push("M",m,",",M);if(null!=S){var Z=mu([m,M],[S,k],n,-R,p),V=mu([_,w],null==x?[m,M]:[x,b],n,-R,p);g===R?A.push("L",V[0],"A",R,",",R," 0 0,",v," ",V[1],"A",n,",",n," 0 ",p^yu(V[1][0],V[1]Line truncated
|
||||
|
||||
|
||||
|
||||
!function(){var t=d3.scale.category20c().domain(d3.range(0,20)).range();var n="#9c9c9c",e="#bdbdbd";d3.timeline=function(){var r=["circle","rect"],i=function(){},a=function(){},o=function(){},c=function(){},l=function(){},u=function(t){return t},s=function(){},f=function(){},g="bottom",h=null,d=null,m=null,p=null,x={format:d3.time.format("%I %p"),tickTime:d3.time.hours,tickInterval:1,tickSize:6},v=d3.scale.category20(),w=null,k="rect",y=0,_=0,T=0,b={left:30,right:30,top:30,bottom:30},F=!1,B=!1,A=!1,E=!1,S=20,I=5,Y=60,z=!0,M=!1,C=!1,O=!1,H={stroke:"stroke-dasharray",spacing:"4 10"},L={marginTop:25,marginBottom:0,width:1,color:v},R=!1,j={marginTop:25,marginBottom:0,width:1,color:v},D=!1,N=!1,P=!1,W="white",q={},G=function(t,n,e){D&&K(t,0,0),N&&J(t);t.append("g").attr("class","axis").attr("transform","translate(0,"+e+")").call(n)},J=function(t){var n=b.left-Y,e=(h-b.left)/6,r=h-b.right-e+Y,i=t.append("g").attr("class","axis").attr("transform","translate(0, 20)");P&&function(t){var n=y.getFullYear();y.getFullYear()!=T.getFullYear()&&(n=y.getFullYear()+"-"+T.getFullYear()),t.append("text").attr("transform","translate(20, 0)").attr("x",0).attr("y",14).attr("class","calendarYear").text(n)}(i),i.append("text").attr("transform","translate("+n+", 0)").attr("x",0).attr("y",14).attr("class","chevron").text("<").on("click",function(){return s(y,q)}),i.append("text").attr("transform","translate("+r+", 0)").attr("x",0).attr("y",14).attr("class","chevron").text(">").on("click",function(){return f(T,q)})},K=function(t,n,e){t.insert("rect").attr("class","row-green-bar").attr("x",n).attr("width",h).attr("y",e).attr("height",S).attr("fill",W)},Q=function(t,n,e){t.append("g").attr("class","axis").attr("transform","translate(0,"+(b.top+(S+I)*e)+")").attr(H.stroke,H.spacing).call(n.tickFormat("").tickSize(-(b.top+(S+I)*(e-1)+3),0,0))},U=function(t,n,e,r,i){var a=(S+I)*t[n]+b.top;e.selectAll("svg").data(r).enter().insert("rect").attr("class","row-green-bar").attr("x",E?0:b.left).attr("width",E?h:h-b.right-b.left).attr("y",a).attr("height",S).attr("fill",p instanceof Function?p(i,n):p)},V=function(t,n,e,r,i){var a=S+I,o=a+a*(n[e]||1);t.append("text").attr("class","timeline-label").attr("transform","translate("+_+","+o+")").text(r?u(i.label):i.id).on("click",function(t,n){c(t,e,i)})};function X(r){var u=r.append("g"),s=r[0][0].getBoundingClientRect(),f=d3.select(r[0][0]),v={},w=1,_=0,E=0;!function(){if(h||s.width){if(!h||!s.width)try{h=f.attr("width")}catch(t){console.log(t)}}else try{if(!(h=f.attr("width")))throw"width of the timeline is not set. As of Firefox 27, timeline().with(x) needs to be explicitly set in order to render"}catch(t){console.log(t)}}(),A&&u.each(function(t,n){t.forEach(function(t,n){t.times.forEach(function(t,e){0===n&&0===e?(originTime=t.starting_time,t.starting_time=0,t.ending_time=t.ending_time-originTime):(t.starting_time=t.starting_time-originTime,t.ending_time=t.ending_time-originTime)})})}),(F||0===T||0===y)&&(u.each(function(t,n){t.forEach(function(t,n){F&&-1==Object.keys(v).indexOf(n)&&(v[n]=w,w++),t.times.forEach(function(t,n){0===y&&(t.starting_time<_||0===_&&!1===A)&&(_=t.starting_time),0===T&&t.ending_time>E&&(E=t.ending_time)})})}),0===T&&(T=E),0===y&&(y=_));var Y=1/(T-y)*(h-b.left-b.right),H=d3.time.scale().domain([y,T]).range([b.left,h-b.right]),D=d3.svg.axis().scale(H).orient(g).tickFormat(x.format).ticks(x.numTicks||x.tickTime,x.tickInterval).tickSize(x.tickSize);u.each(function(l,s){q=l,l.forEach(function(l,s){var f=l.cached,g=l.index,d=l.times,x=void 0!==l.label;if(void 0!==l.id&&console.warn("d3Timeline Warning: Ids per dataset is deprecated in favor of a 'class' key. Ids are now per data element."),p&&U(v,s,u,d,l),u.selectAll("svg").data(d).enter().append(function(t,n){return document.createElementNS(d3.ns.prefix.svg,"display"in t?t.display:k)}).attr("x",K).attr("y",y).attr("width",function(t,n){return(t.ending_time-t.starting_time)*Y}).attr("cy",function(t,n){return y(t,n)+S/2}).attr("cx",K).attr("r",S/2).attr("height",S).style("fill",function(r,i){return 0==i?e:1==i?f?n:t[g%16]:e}).on("mousemove",function(t,n){i(t,s,l)}).on("mouseover",function(t,n){a(t,n,l)}).on("mouseout",function(t,n){o(t,n,l)}).on("click",function(t,n){c(t,s,l)}).attr("class",function(t,n){return l.class?"timelineSeries_"+l.class:"timelineSeries_"+s}).attr("id",function(t,n){return l.id&&!t.id?"timelineItem_"+l.id:t.id?t.id:"timelineItem_"+s+"_"+n}),u.selectAll("svg").data(d).enter().append("text").attr("x",X).attr("y",function(t,n){if(F)return b.top+(S+I)*v[s]+.75*S;return b.top+.75*S}).text(function(t){return t.label}),m){var w=S+I/2+b.top+(S+I)*v[s];r.append("svg:line").attr("class","row-seperator").attr("x1",0+b.left).attr("x2",h-b.right).attr("y1",w).attr("y2",w).attr("stroke-width",1).attr("stroke",m)}function y(t,n){return F?b.top+(S+I)*v[s]:b.top}x&&V(r,v,s,x,l),void 0!==l.icon&&r.append("image").attr("class","timeline-label").attr("transform","translate(0,"+(b.top+(S+I)*v[s])+")").attr("xlink:href",l.icon).Line truncated
|
||||
|
||||
|
||||
|
||||
|
||||
$(function() {
|
||||
// Generated by TimeObserver renderData
|
||||
var data = window.data.processes;
|
||||
var beginningMillis = window.data.beginningMillis;
|
||||
var endingMillis = window.data.endingMillis;
|
||||
var elapsed = window.data.elapsed;
|
||||
|
||||
var handler=null;
|
||||
|
||||
function getTickFormat() {
|
||||
var MIN = 1000 * 60
|
||||
var HOUR = MIN * 60
|
||||
var DAY = HOUR * 24
|
||||
var delta = (endingMillis - beginningMillis)
|
||||
|
||||
if( delta < 2 * MIN ) {
|
||||
return {
|
||||
format: d3.time.format("%S"),
|
||||
tickTime: d3.time.seconds,
|
||||
tickInterval: 5,
|
||||
tickSize: 6
|
||||
}
|
||||
}
|
||||
|
||||
if( delta < 2 * HOUR ) {
|
||||
return {
|
||||
format: d3.time.format("%M"),
|
||||
tickTime: d3.time.minutes,
|
||||
tickInterval: 5,
|
||||
tickSize: 6
|
||||
}
|
||||
}
|
||||
|
||||
if( delta < 2 * DAY ) {
|
||||
return {
|
||||
format: d3.time.format("%H:%M"),
|
||||
tickTime: d3.time.hours,
|
||||
tickInterval: 1,
|
||||
tickSize: 6
|
||||
}
|
||||
}
|
||||
|
||||
if( delta <= 7 * DAY ) {
|
||||
return {
|
||||
format: d3.time.format("%b %e %H:%M"),
|
||||
tickTime: d3.time.hours,
|
||||
tickInterval: 6,
|
||||
tickSize: 6
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
format: d3.time.format("%b %e"),
|
||||
tickTime: d3.time.days,
|
||||
tickInterval: 1,
|
||||
tickSize: 6
|
||||
}
|
||||
}
|
||||
|
||||
function getLabelMargin(scale) {
|
||||
$('<span class="labelSpan" style="display: none"></span>').appendTo('body');
|
||||
|
||||
var labelMargin = 0
|
||||
$.each(data, function (key, value) {
|
||||
labelMargin = Math.max(labelMargin, $('.labelSpan').html(value.label).width());
|
||||
});
|
||||
|
||||
$('.labelSpan').remove();
|
||||
|
||||
return (labelMargin * scale);
|
||||
}
|
||||
|
||||
function render() {
|
||||
handler=null;
|
||||
$("#timeline").empty()
|
||||
$('#label_elapsed').text(elapsed)
|
||||
$('#label_launch').text( d3.time.format('%d %b %Y %H:%M')(new Date(beginningMillis)) )
|
||||
|
||||
var width = $(window).width();
|
||||
var chart = d3.timeline()
|
||||
.stack() // toggles graph stacking
|
||||
.margin({left:getLabelMargin(0.85), right:100, top:0, bottom:0})
|
||||
.tickFormat( getTickFormat() )
|
||||
.rowSeperators('#f5f5f5')
|
||||
.showTimeAxisTick()
|
||||
;
|
||||
var svg = d3.select("#timeline").append("svg").attr("width", width).datum(data).call(chart);
|
||||
}
|
||||
|
||||
function hrz() {
|
||||
if( handler != null ) clearTimeout(handler)
|
||||
handler = setTimeout(render, 150);
|
||||
}
|
||||
|
||||
$(document).ready(render)
|
||||
$(window).resize(hrz); // resize the applet on window resize
|
||||
|
||||
});
|
||||
|
||||
// Nextflow report data
|
||||
window.data = {
|
||||
"elapsed": "1.1s",
|
||||
"beginningMillis": 1753092431057,
|
||||
"endingMillis": 1753092432150,
|
||||
"processes": [
|
||||
{"label": "METABOLITE_SCREEN", "cached": false, "index": 0, "times": [{"starting_time": 1753092431554, "ending_time": 1753092431571}, {"starting_time": 1753092431571, "ending_time": 1753092431589, "label": "35ms \/ -"}]}
|
||||
]
|
||||
}
|
||||
;
|
||||
|
||||
var prot = (("https:" == document.location.protocol) ? "https://" : "http://");
|
||||
document.write(unescape("%3Clink href='" + prot + "fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css' %3E%3C/link%3E"));
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,2 @@
|
||||
task_id hash native_id name status exit submit duration realtime %cpu peak_rss peak_vmem rchar wchar
|
||||
1 f9/21c381 3902375 METABOLITE_SCREEN FAILED 127 2025-07-21 03:07:11.554 35ms 18ms - - - - -
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env nextflow
|
||||
|
||||
process METABOLITE_SCREEN {
|
||||
|
||||
memory '10 GB'
|
||||
|
||||
container "harbor.cluster.omic.ai/omic/metabolite-screen:adaptive"
|
||||
// containerOptions "--rm --gpus all"
|
||||
|
||||
// errorStrategy 'ignore'
|
||||
|
||||
input:
|
||||
path input_tsv // TSV file with the smiles
|
||||
path input_zarr // ZARR DB holding all the protein vectors and their names
|
||||
|
||||
output:
|
||||
path "*_result.tsv"
|
||||
|
||||
script:
|
||||
"""
|
||||
set -e
|
||||
python /app/screen.py -i ${input_tsv} -z ${input_zarr}
|
||||
"""
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
// Nextflow configuration file
|
||||
|
||||
// Execution report
|
||||
report {
|
||||
enabled = true
|
||||
file = "execution_report.html"
|
||||
overwrite = true}
|
||||
|
||||
|
||||
// Resource usage tracking
|
||||
trace {
|
||||
enabled = true
|
||||
file = "execution_trace.txt"
|
||||
overwrite = true
|
||||
}
|
||||
|
||||
// Error reporting
|
||||
timeline {
|
||||
enabled = true
|
||||
file = "execution_timeline.html"
|
||||
overwrite = true
|
||||
}
|
||||
|
||||
// // Max resources
|
||||
// executor {
|
||||
// $local {
|
||||
// memory = '80 GB'
|
||||
// cpus = 2
|
||||
// }
|
||||
// }
|
||||
|
||||
// Default parameters (overridden by test.nf)
|
||||
params {
|
||||
// Set defaults here
|
||||
// input = '/mnt/ZINC-22/conplex/total.zarr'
|
||||
nshards = 12
|
||||
outdir = "$launchDir"
|
||||
}
|
||||
|
||||
profiles {
|
||||
k8s {
|
||||
process.executor = 'k8s'
|
||||
process.namespace = 'bioinformatics'
|
||||
process.debug = true
|
||||
|
||||
workDir = "/workdir/work"
|
||||
|
||||
k8s {
|
||||
serviceAccount = 'nextflow-sa'
|
||||
namespace = 'bioinformatics'
|
||||
storageClaimName = 'conplex-data'
|
||||
storageMountPath = '/workdir'
|
||||
|
||||
pullPolicy = 'IfNotPresent'
|
||||
cleanup = true // delete pods after Ctrl+C or finished?
|
||||
|
||||
|
||||
// RUN AS DIFFERENT USERS
|
||||
// securityContext = [fsGroup: 1000]
|
||||
// securityContext = [
|
||||
// runAsUser: 1000,
|
||||
// fsGroup: 1000,
|
||||
// runAsNonRoot: true
|
||||
// ]
|
||||
}
|
||||
|
||||
// Use container image
|
||||
// process.container = 'harbor.cluster.omic.ai/omic/faiss-indexer:latest'
|
||||
|
||||
// Pod-level customization
|
||||
process.pod = [
|
||||
[env: 'NXF_DEBUG', value: '0'],
|
||||
[label: 'omic-app', value: 'conplex'],
|
||||
[imagePullSecret: 'gitlab-registry-secret'],
|
||||
[volumeClaim: 'fingerprint-data', mountPath: '/fingerprint-data']
|
||||
//[nodeSelector: [gpu: 'yes', 'kubernetes.io/hostname': 'k8s-node25']],
|
||||
// [privileged: true],
|
||||
]
|
||||
|
||||
// process {
|
||||
// withName: 'trainIndex' {
|
||||
// container = 'harbor.cluster.omic.ai/omic/conplex-faiss-train:latest'
|
||||
// accelerator = 1
|
||||
// memory = '75 GB'
|
||||
// cpus = 1
|
||||
|
||||
// // GPU-specific pod settings
|
||||
// pod = [
|
||||
// [nodeSelector: [gpu: 'yes']]
|
||||
// ]
|
||||
// }
|
||||
|
||||
// // Specific settings for addToIndex process (CPU only)
|
||||
// withName: 'addToIndex' {
|
||||
// container = 'harbor.cluster.omic.ai/omic/conplex-faiss-add:latest'
|
||||
// memory = '75 GB'
|
||||
// cpus = 1
|
||||
|
||||
// // Explicitly ensure no GPU requirements
|
||||
// // No accelerator property set, and no GPU nodeSelector
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
docker {
|
||||
// Docker/Singularity configuration
|
||||
docker {
|
||||
enabled = true
|
||||
runOptions = '--rm'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env nextflow
|
||||
|
||||
// params.input_tsv = '../sample/in-molecule/test_known_drugs.tsv' //metabolites.tsv'
|
||||
params.input_tsv = '../sample/in-molecule/metabolites-rev.tsv' //metabolites.tsv'
|
||||
params.input_zarr = '../data/protein_seq.zarr' //mane_all.zarr'
|
||||
|
||||
// Include the buildFaissIndex workflow from main.nf
|
||||
include { METABOLITE_SCREEN } from './main.nf'
|
||||
|
||||
workflow {
|
||||
|
||||
input_tsv = file(params.input_tsv)
|
||||
input_zarr = file(params.input_zarr)
|
||||
|
||||
// Call the combined workflow with both inputs
|
||||
protein_scores = METABOLITE_SCREEN(input_tsv, input_zarr)
|
||||
}
|
||||
Reference in new issue
Block a user