The present invention provides a method of screening transgenic plants containing a DNA construct encoding a polypeptide that when expressed in the plant results in the production of fatty acid compounds for anthelmintic activity by contacting the plants with a plurality of nematodes.