def get_tuple(pndata, scdata, pnid):
    """Extract relevant SidechainNet and ProteinNet data from their respective dicts."""
    try:
        return pndata[pnid], scdata[pnid], pnid
    except KeyError:
        return None, scdata[pnid], pnid