Using variables within config.toml files

27 views
Skip to first unread message

phillip.a...@gmail.com

unread,
Feb 27, 2018, 1:15:38 AM2/27/18
to vcfanno
Hello,
I was wondering what the syntax is for using variables within TOML format config files. I first looked here (https://github.com/toml-lang/toml), but didn't find anything. 

The reason I'm looking, is that when I'm using multiple systems I'd like to be able to just change a single line in the config files. Something similar to bash scripting:


DATABASE_DIR=/some/perfect/location/


# FATHMM-XF Noncoding

[[annotation]]

file = "${DATABASE_DIR}/fathmm_xf_noncoding.vcf.gz"

columns = [5]

names = ["FATHMM-XF"]

ops = ["self"]

 
I guess it's not the end of the world if it isn't possible but I figured I'd ask before writing a wrapper.

Cheers,
Phil

Brent Pedersen

unread,
Feb 27, 2018, 9:44:54 AM2/27/18
to Phillip Richmond, vcfanno
Hi Phil,
this isn't possible right now. I guess I could expand user vars in
file paths, but they'd have to be specified outside of the file.

vcfanno does have the -d option so you can specify a base-path for all
the files.

that said, if you'd open an issue on the vcfanno repo, I'll consider
expanding user variables defined in the environment in the `file`
values.

-Brent
> --
> You received this message because you are subscribed to the Google Groups
> "vcfanno" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vcfanno+u...@googlegroups.com.
> To post to this group, send email to vcf...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vcfanno/814857fe-41ec-45d1-aa0b-6706633012b2%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages