Hello,
I developed a protocol for which I defined two parameters:
- An URLType parameter named 'Docked ligand library' and
2. A StringType parameter named 'Multiconformer library'.
The idea of these two parameters is to load an .sd/.sdf file in the 'Docked ligand library'. Once the library is loaded, then to autofill the 'Multiconformer library'. Since, the value of 'Docked ligand library' parameter is as \\\$(UserDir)/shapescr/Ec_NBTIs_neg_con_sols.sd, I tried to parse it within the 'Multiconformer library' parameter Legal Values Script window:
if (Parameter('Docked ligand library') ne '') then
SetLegalValues(RSubst(RMatch(RSubst(Parameter('Docked ligand library'),'_sols.sd','_4D.sdf'),'/([^/]+)\\\$','g'),'/',''));
end if;So, the expected value for the 'Multiconformer library' should be: Ec_NBTIs_neg_con_4D.sdf
However, it seems that the dollar sign of \\\$(UserDir) is the major problem, so when I manually remove it, the needed output is obtained. How to get rid of "\\\$" sign to achieve what I described?
Although, my attempt resulting (at least conceptually) in a selection list for the 'Multiconformer library' parameter, ideally I would like to be just a single string value containing the name 'Ec_NBTIs_neg_con_4D.sdf' (parsed as described above).
Many thanks to all of you for providing a solution to this issue.
Cheers,
Nikola
