def get_tagged_atoms_from_mol(mol):
    """Takes an RDKit molecule and returns list of tagged atoms and their
    corresponding numbers.

    Parameters
    ----------
    mol: rdkit.Chem.Mol
        RDKit molecule.

    Returns
    -------
    atoms: List[rdkit.Chem.Atom]
        List of tagged atoms
    atom_tags: List[str]
        List of atom-mapping numbers
    """

    atoms = []
    atom_tags = []
    for atom in mol.GetAtoms():
        if atom.HasProp("molAtomMapNumber"):
            atoms.append(atom)
            atom_tags.append(str(atom.GetProp("molAtomMapNumber")))
    return atoms, atom_tags