How to indicate to nextlow where takes output?
up vote
0
down vote
favorite
I have a script in python which save a file in a specific directory.
For example this code named "write.py":
with open("project/results/txt/output.txt", "w") as f:
f.write("this is a txt file")
So I execute my script in "project/src" and the output of this script is in "project/results/txt/".
Here an example of a script Nextflow in "project/":
process writeTxt{
output:
file "output.txt"
"""
python3 ../../../src/write.py
"""
}
"../../../" ==> to go out of work directory
But nextflow return that it didn't find "projet/results/txt/output.txt".
So how indicates to Nextflow where is the output of a script?
nextflow
add a comment |
up vote
0
down vote
favorite
I have a script in python which save a file in a specific directory.
For example this code named "write.py":
with open("project/results/txt/output.txt", "w") as f:
f.write("this is a txt file")
So I execute my script in "project/src" and the output of this script is in "project/results/txt/".
Here an example of a script Nextflow in "project/":
process writeTxt{
output:
file "output.txt"
"""
python3 ../../../src/write.py
"""
}
"../../../" ==> to go out of work directory
But nextflow return that it didn't find "projet/results/txt/output.txt".
So how indicates to Nextflow where is the output of a script?
nextflow
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a script in python which save a file in a specific directory.
For example this code named "write.py":
with open("project/results/txt/output.txt", "w") as f:
f.write("this is a txt file")
So I execute my script in "project/src" and the output of this script is in "project/results/txt/".
Here an example of a script Nextflow in "project/":
process writeTxt{
output:
file "output.txt"
"""
python3 ../../../src/write.py
"""
}
"../../../" ==> to go out of work directory
But nextflow return that it didn't find "projet/results/txt/output.txt".
So how indicates to Nextflow where is the output of a script?
nextflow
I have a script in python which save a file in a specific directory.
For example this code named "write.py":
with open("project/results/txt/output.txt", "w") as f:
f.write("this is a txt file")
So I execute my script in "project/src" and the output of this script is in "project/results/txt/".
Here an example of a script Nextflow in "project/":
process writeTxt{
output:
file "output.txt"
"""
python3 ../../../src/write.py
"""
}
"../../../" ==> to go out of work directory
But nextflow return that it didn't find "projet/results/txt/output.txt".
So how indicates to Nextflow where is the output of a script?
nextflow
nextflow
asked Nov 21 at 16:33
Adam Bellaïche
105
105
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
This is an anti-pattern. Nextflow tasks are expected to produce and consume files in task execution directory. If such output file is produced by a upstream task, that must be declared as task output to make it accessible in the task work directory.
How Can I declare this? I don't know the way to do that.
– Adam Bellaïche
Nov 21 at 17:12
because I started Nextflow last week.
– Adam Bellaïche
Nov 22 at 8:21
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
This is an anti-pattern. Nextflow tasks are expected to produce and consume files in task execution directory. If such output file is produced by a upstream task, that must be declared as task output to make it accessible in the task work directory.
How Can I declare this? I don't know the way to do that.
– Adam Bellaïche
Nov 21 at 17:12
because I started Nextflow last week.
– Adam Bellaïche
Nov 22 at 8:21
add a comment |
up vote
0
down vote
accepted
This is an anti-pattern. Nextflow tasks are expected to produce and consume files in task execution directory. If such output file is produced by a upstream task, that must be declared as task output to make it accessible in the task work directory.
How Can I declare this? I don't know the way to do that.
– Adam Bellaïche
Nov 21 at 17:12
because I started Nextflow last week.
– Adam Bellaïche
Nov 22 at 8:21
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
This is an anti-pattern. Nextflow tasks are expected to produce and consume files in task execution directory. If such output file is produced by a upstream task, that must be declared as task output to make it accessible in the task work directory.
This is an anti-pattern. Nextflow tasks are expected to produce and consume files in task execution directory. If such output file is produced by a upstream task, that must be declared as task output to make it accessible in the task work directory.
answered Nov 21 at 16:56
pditommaso
1,01021429
1,01021429
How Can I declare this? I don't know the way to do that.
– Adam Bellaïche
Nov 21 at 17:12
because I started Nextflow last week.
– Adam Bellaïche
Nov 22 at 8:21
add a comment |
How Can I declare this? I don't know the way to do that.
– Adam Bellaïche
Nov 21 at 17:12
because I started Nextflow last week.
– Adam Bellaïche
Nov 22 at 8:21
How Can I declare this? I don't know the way to do that.
– Adam Bellaïche
Nov 21 at 17:12
How Can I declare this? I don't know the way to do that.
– Adam Bellaïche
Nov 21 at 17:12
because I started Nextflow last week.
– Adam Bellaïche
Nov 22 at 8:21
because I started Nextflow last week.
– Adam Bellaïche
Nov 22 at 8:21
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53416623%2fhow-to-indicate-to-nextlow-where-takes-output%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown