Path toString then split the string and convert to the path again #3333
Unanswered
zillurbmb51
asked this question in
Q&A
Replies: 1 comment 1 reply
-
@zillurbmb51 Hi, |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Hi, I have a process that output multiple files. Such as:
[chr1, /path/to/chr1_chunk1.csv.bed, /path/to/chr1_chunk1.csv.bim, /path/to/chr1_chunk1.csv.fam, /path/to/chr1_chunk1.csv.log]
and so on...I want to split the path such as I get:
[chr1, /path/to/chr1_chunk1]
Using the following command I can get such output:
out_ch_from_previous_process.map{chr,bfiles -> tuple(chr,bfiles[0].toString().split('\\.')[0])}.set{in_for_next_process}
In the next process:
It gives me error:
There is no such file chr1_chunk1.csv.fam
Did I explain my situation correctly? How could I get it right?
Beta Was this translation helpful? Give feedback.
All reactions