https://www.biostars.org/p/298847/