Nextflow: how to get the process work dir, within the process
1
0
Entering edit mode
10 days ago
ScottDansk ▴ 10

Hi, i am trying to get the process work dir (i.e work/ae/7162763812631/ ) path within the process that is using that work dir.

I can't find any information online, the only thing searches give me is to use $PWD however that is the root dir of the actual project. Surely this has to be possible?

proccess get_process_work_dir {

    script:
    """
    echo $PWD
    """

}

gives me /path/to/nextflow/project

proccess get_process_work_dir {

    script:
    """
    echo ${task.baseDir}
    """

}

gives me null

when i need:

/path/to/nextflow/project/work/1b/1e6d7dff679367be83f943b5dd2636

nextflow • 244 views
ADD COMMENT
2
Entering edit mode
10 days ago
écho \${PWD}
ADD COMMENT
0
Entering edit mode

legend thank you so much!

ADD REPLY
0
Entering edit mode

Don't forget to follow up on your threads. If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one answer if they all work. If an answer was not really helpful or did not work, provide detailed feedback so others know not to use that answer.

Upvote|Bookmark|Accept

ADD REPLY

Login before adding your answer.

Traffic: 2080 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6