openmolecules.org

 
Home » DataWarrior » Functionality » Category Filter logic
Re: Category Filter logic [message #1124 is a reply to message #1123] Wed, 18 November 2020 21:55 Go to previous messageGo to previous message
nbehrnd is currently offline  nbehrnd
Messages: 224
Registered: June 2019
Senior Member
Hello Greg,

once the properties are stored in DW's main table, both Boolean .or. and .and. may be used for further analysis. In the example below, I extended the initial query for molecular weights greater than 110 (yielding mesitylene) to one that would accept molecules with a molecular weight of either less than 80 .or. greater than 110 by the instruction

if((TotalMolweight<80) || (TotalMolweight>110), "True", "False")

in an additional column (Data -> Add Calculated Values). As expected, the second query yields both benzene and mesitylene now.

index.php?t=getfile&id=290&private=0

It is possible to use multiple properties of different columns, too. DW's mathematics, including logic expressions, which may be used are presented on

http://www.openmolecules.org/help/jep.html

Norwid

[Updated on: Wed, 18 November 2020 21:58]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: thresholds and weights of toxicity risk
Next Topic: Tab delimited txt / open special
Goto Forum:
  


Current Time: Fri Nov 22 08:47:22 CET 2024

Total time taken to generate the page: 0.03804 seconds