def printAtom( serial, molecule, atom, alchemicalTransformation):
    """Generate atom line   

    Parameters
    ----------
    serial : int
        Atom serial
    alchemicalTransformation : bool
        True if alchemical transformation

    Returns
    -------
    atomLine : str
        Atom line 
    """

    line = ''

    if alchemicalTransformation:
        line = ' %5d %10s %6d %6s %5s %6d %10.4f %10.4f%11s%11.4f%11.4f \n' % (serial, atom.type_gmx, 1, 
        molecule.residueName, atom.nameOriginal, 1, atom.charge, atom.mass, atom.type_gmx_B, atom.charge_B, atom.mass_B)
    else:
        line = ' %5d %10s %6d %6s %5s %6d %10.4f %10.4f \n' % (serial, atom.type_gmx, 1, 
        molecule.residueName, atom.nameOriginal, 1, atom.charge, atom.mass)

    return line