Hi Bob, a few months ago you expanded the 'getProperty()' SELECT function by SQL "drilling" in associative arrays:
x = [key_1:[type:"a"],key_2:[type:"b"],key_3:[type:"a"]] z = getProperty(x, "[SELECT ** WHERE type='a']"); show z; z = { "key_1":{ "type":"a" },"key_3":{ "type":"a" } } This works very well for single-value properties and helped me a lot. But sometimes a property can have multiple values coded in a hash (as keys) or in an array. As an example let's take a hash containing SAP (single amino acid polymorphism) data for protein residues (first key is residue number): sapData = [1: [wildtype: "ALA", mutant: [GLU: [sapID: 1], SER: [sapID: 2], VAL: [sapID: 3] ] ], 2: [wildtype: "GLY", mutant: ["ILE","SER"] ], 3: [wildtype: "ARG", mutant: "VAL" ] ]; The task would be for example to find all residues mutated to "VAL". Currently as result of 'x = getProperty(sapData, "SELECT ** WHERE mutant='VAL'");' only residue "3" will be found but not residue "1": x = { "3":{ "mutant":"VAL","wildtype":"ARG" } } Q: Would you consider to expand 'getProperty()' to cover also "multi-value" properties? Regards, Rolf -- Rolf Huehne Postdoc Leibniz Institute for Age Research - Fritz Lipmann Institute (FLI) Beutenbergstrasse 11 07745 Jena, Germany Phone: +49 3641 65 6205 Fax: +49 3641 65 6210 E-Mail: rhue...@fli-leibniz.de Website: http://www.fli-leibniz.de Scientific Director: Prof. Dr. K. Lenhard Rudolph Head of Administration: Dr. Daniele Barthel Chairman of Board of Trustees: Dennys Klein VAT No: DE 153 925 464 Register of Associations: No. 230296, Amtsgericht Jena Tax Number: 162/141/08228 ------------------------------------------------------------------------------ _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users