how do I enable nextflow to read scripts in bin folder? #4651
-
Hi there, I've a python script in a process test {
maxForks 3
debug true
errorStrategy 'retry'
maxRetries 2
publishDir path: "/data1/users/sanjeev/nextflow/learn_nextflow/", mode: 'copy'
output:
stdout
script:
"""
echo "hello"
python2 parse_cnvs_V2.py
"""
}
workflow {
test()
}
nextflow run test.nf I get error as:
How do I have nextflow pick script from the |
Beta Was this translation helpful? Give feedback.
Answered by
bentsherman
Jan 10, 2024
Replies: 2 comments
-
You have to add a shebang ( """
echo "hello"
parse_cnvs_V2.py
""" |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
complexgenome
-
ah, wonderful. Thank you for your reply. It worked. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have to add a shebang (
#!/user/bin/env python2
) to the first line of your python script, make it executable, and execute it directly in your process: