String variable defined and used within a code block ? #3764
Unanswered
colindaven
asked this question in
Q&A
Replies: 1 comment
-
I don't think Nextflow is involved here, since you are piping the output of one command into another. I would test this script by itself, without Nextflow, and make sure it works there first. |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Edit - this method of saving to a file and reading from that file DOES actually work, I've tested it on different data now. It may not have worked on the first dataset as the algorithm is biased towards chromosome/seq ends, and the first data were only contigs. But - is there a better way to pass dynamic variables around a code block in nextflow. Perhaps environment variables ?
Short version- how should I define and use a string variable coming out of a bash command within a NF process code execution block ?
Long version -
I am trying to parse a string eg ATGAGAG from one output file (lines 1,2,3) and use it as input for another tool (command on the last line).
I have the following code, which works, but does not find the telomere (which should be present, as it was found in the same file) by the explore cmd on line 1.
Notes - the correct string is being parsed (line 2) and newline successfully removed on line 3.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions