Mahesh Binzer-Panchal
07/11/2024, 12:36 PMimport java.nio.file.Paths
import java.nio.file.Files
workflow {
RUN_NEXTFLOW().log
| view
}
process RUN_NEXTFLOW {
exec:
def cache = "nxf-cache"
Files.createDirectories(Paths.get(cache))
def builder = new ProcessBuilder(
'nextflow', 'run',
'nf-core/demo',
'-profile', 'test,singularity',
'-ansi-log', 'false',
'-resume',
'--outdir', "$task.workDir/results"
)
builder.directory(new File(cache))
def process = builder.start()
process.waitFor()
nflog = process.text
output:
path "results", emit: output
val nflog , emit: log
}Mahesh Binzer-Panchal
07/11/2024, 12:54 PMRike Hanssen
07/11/2024, 2:40 PMMahesh Binzer-Panchal
07/11/2024, 2:43 PMexec: process. It runs locally, i.e. this runs where the nextflow parent process is runningRike Hanssen
07/11/2024, 2:43 PMMahesh Binzer-Panchal
07/11/2024, 3:08 PMwget: unable to resolve host address '<http://ftp.sra.ebi.ac.uk|ftp.sra.ebi.ac.uk>' ), and I can pass it to the next process.Nicolas Vannieuwkerke
07/12/2024, 7:45 AMMaxime Garcia
07/12/2024, 7:46 AMMaxime Garcia
07/12/2024, 7:47 AMMahesh Binzer-Panchal
07/12/2024, 7:48 AMscript:?Nicolas Vannieuwkerke
07/12/2024, 7:55 AMscratch config option to tell the process to use that directory insteadNicolas Vannieuwkerke
07/12/2024, 7:55 AMMahesh Binzer-Panchal
07/12/2024, 7:56 AMMahesh Binzer-Panchal
07/12/2024, 7:56 AM.nextflow/ folder, etcNicolas Vannieuwkerke
07/12/2024, 7:57 AMNicolas Vannieuwkerke
07/12/2024, 7:57 AMMahesh Binzer-Panchal
07/12/2024, 7:58 AMJonathan Manning
07/12/2024, 8:13 AMMahesh Binzer-Panchal
07/12/2024, 8:17 AMnf-core tools.Jonathan Manning
07/12/2024, 8:18 AMRike Hanssen
07/12/2024, 8:18 AMMahesh Binzer-Panchal
07/12/2024, 8:22 AMtest profile data.Jonathan Manning
07/12/2024, 8:29 AMBen Sherman
07/12/2024, 1:23 PMMahesh Binzer-Panchal
07/12/2024, 1:40 PMMahesh Binzer-Panchal
07/12/2024, 6:15 PMMahesh Binzer-Panchal
07/18/2024, 7:38 AM-profile demo[,singularity/docker] and then propagate that via a params to the process, it's not straightforward for the average user. It requires exposing something not usually available, so you don't override params set by another profile. (The solution is on the with_profiles branch for the curious)