The attached file contains the relevant Python scripts for calculation of the formula difference and formula element filtration.
If you have any questions, please contact us sunxiaoshan2011@163.com.