Prediction of protein β-residue contacts by Markov logic networks with grounding-specific weights