file paths in WDL json files.

Hi, I am trying to run a liftover of array genotypes according to

https://github.com/dnanexus/UKB_RAP/tree/main/end_to_end_gwas_phewas/liftover_plink_beds_tmp

 

In the import parameter json file I have to make an array of all 22 bed, bim and fam files. I could use the file IDs like "dx://project-xxxx:file-xxxx", but this is quite tedious and error prone to be done by copying from the platform and pasting into the json file for each of the 66 files. Is there a way to access these file IDs programatically?

 

My current approach is to use file paths, e.g.

 

"dx://project-xxxx:/Bulk/Genotype Results/Genotype calls/ukb22418_c2_b0_v2.bed"

but dxCompiler gives me an error:

 

java.lang.Exception: URI contains invalid character: dx://project-GBpqxg0JXPfF3kKG4j14k75k:/Bulk/Genotype Results/Genotype calls/ukb22418_c1_b0_v2.bed

 

I speculated that this might have something to do with the whitespace in directory names (!) and tried escaping them with '\', but to no avail, this time it says:

 

[error] Error translating inputs

spray.json.JsonParser$ParsingException: Unexpected character ' ' at input index 171 (line 5, position 56), expected JSON escape sequence:

?"dx://project-xxxx:/Bulk/Genotype\ Results/Genotype\ calls/ukb22418_c2_b0_v2.bed"

 

Any idea how to solve this?

 

Thanks!

Comments

5 comments

Please sign in to leave a comment.