doped is a Python software for the generation, pre-/post-processing and analysis of defect supercell calculations, implementing the defect simulation workflow in an efficient, reproducible, user-friendly yet powerful and fully-customisable manner.
doped is open-source, developed by members of the Simulation of Advanced Materials lab at
Cambridge, the Scanlon group at Birmingham, the Walsh group at Imperial College and contributors from across the globe.
Thermodynamic Analysis: Compute (non-)equilibrium Fermi levels, defect/carrier concentrations etc. as functions of annealing/cooling temperature, chemical potentials etc.
Plotting: Generate publication-quality plots of defect formation energies, chemical potential limits, defect/carrier concentrations, Fermi levels, charge corrections, etc.
(a) Optimal supercell generation comparison. (b) Charge state estimation comparison. Example (c) Kumagai-Oba (eFNV) finite-size correction plot, (d) defect formation energy diagram, (e) chemical potential / stability region, (f) Fermi level vs. annealing temperature, (g) defect/carrier concentrations vs. annealing temperature and (h) Fermi level / carrier concentration heatmap plots from doped. Automated plots of (i,j) single-particle eigenvalues and (k) site
displacements from DFT supercell calculations. See the JOSS paper for more details.
Installation
pip install doped # install doped and dependencies
If you want to install the latest development version of doped, this can be done following the
Developer Installation instructions,
or with:
Alternatively if desired, doped can also be installed from conda with:
conda install -c conda-forge doped
pip install pydefect # pydefect not available on conda, so needs to be installed with pip or otherwise, if using the eFNV correction
See the Installation docs if you encounter any issues (e.g. known issue with phonopyCMake build).
If you haven't done so already, you will need to set up your VASP POTCAR files and Materials Project API with pymatgen using the .pmgrc.yaml file, in order for doped to automatically generate VASP input files for defect calculations and determine competing phases for chemical potentials.
See the docs Installation page for details on this.
As shown in the doped tutorials, it is highly recommended to use the ShakeNBreak approach when calculating point defects in solids, to ensure you have identified the groundstate structures of your defects. As detailed in the theory paper, skipping this step can result in drastically incorrect formation energies, transition levels, carrier capture (basically any property associated with defects). This approach is followed in the doped defect generation tutorial, with a more in-depth explanation and tutorial given on the ShakeNBreak website.
Studies using doped, so far
A. G. Squires, S. R. Kavanagh, A. Walsh and D. O. Scanlon Guidelines for robust and reproducible point defect simulations in crystalsNature Reviews Materials 2026
G. Arora et al. Development of interatomic potential and effect of ordering on defect properties in CrMnVJournal of Applied Physics 2025
A. Abudulimu et al. Radiative Defects in Chloride-Activated CdSe Thin FilmsACS Energy Letters 2026
H. Ma, J. E. McLeod and C. Stampfl Toward tunable carrier polarity in monolayer ZrS2: A hybrid functional study of intrinsic and extrinsic defectsPhysical Review B 2026
E. I. Jaffal et al. Investigating mechanical properties through defect chemistry in hard binary phosphide material Ta3PSolid State Communications 2026
A. Lannerd et al. Thermodynamics of proton insertion across the perovskite-brownmillerite transition in La0.5Sr0.5CoO3-δPhysical Review Materials 2026
L. Tian et al. Optical Spectroscopic Determination of Photoexcited Small-Polaron Hopping in Transition Metal Oxide PhotocatalystsChemical Science 2026
S. R. Kavanagh Identifying Split Vacancy Defects with Machine-Learned Foundation Models and ElectrostaticsJPhys Energy 2025
R. Claes, A. G. Squires and D. O. Scanlon Establishing Doping Limits for ZnGa2O4 for Ultra Wide Bandgap Semiconductor ApplicationsACS Applied Materials & Interfaces 2025
T. Oikawa et al. Semi-automated estimation of hydrogenic initial states for localized Wannier functionsarXiv 2025
J. Zhou et al. Breaking the 800 mV open-circuit voltage barrier in antimony sulfide photovoltaicsarXiv 2025
K. Talit et al. Structural and electronic properties of Ti- and Ca-doped hexagonal TbInO3Physical Review Materials 2025
I. Mosquera-Lois and A. Walsh Dynamic Vacancy Levels in CsPbCl3 Obey Equilibrium Defect ThermodynamicsPRX Energy 2025
B. I. J. Johnston et al. Enhanced cycling stability of LiNiO2 cathodes through a Mg/W dual-cation modification strategyJournal of Materials Chemistry A 2025
Z. Li and A. Walsh Thermodynamics of Sulfur Vacancy Formation in the Chalcogenide Perovskite BaZrS3Journal of Physical Chemistry C 2025
P. Russell et al. Computational prediction of Y-doped Cd2Sb2O7 as a competitive Sb-based n-type Transparent Conducting OxideChemRxiv 2025
V. Watson et al. Enhanced Oxide Ion Diffusion by Lanthanum Substitution in the Palmierite Sr3–3xLa2xV2O8 via Increased Tetrahedral Distortion and Cation VacanciesChemistry of Materials 2025
P. Deng et al. Temperature and Doping Dependence of Carbon Interstitial Diffusion in 4H-SiC from First PrinciplesAdvanced Electronic Materials 2025
P. Deng et al. Carbon Interstitial Diffusion in 3C-SiC: Role of Charge-State Transitions and EntropyAdvanced Theory and Simulations 2025
P. Panagis Filippatos et al. Ab initio investigation of the Cr substitutional defect in α-quartz for quantum applicationsJournal of Applied Physics 2025
P. Panagis Filippatos, T. J. P. Irons and K. Inzani Revisiting intrinsic spin defects in hexagonal boron nitride with r2SCANarXiv 2025
P. Panagis Filippatos, A. Chroneos and N. Kelaidis A first-principles investigation of halogen doped diamond and its application to quantum technologiesJournal of Applied Physics 2025
M. A. Fadla et al. Tailoring the Electronic Properties of Monoclinic (InxAl1-x)2O3 Alloys via Substitutional Donors and AcceptorsPhysical Review Materials 2025
M. E. Turiansky et al. Machine Learning Phonon Spectra for Fast and Accurate Optical Lineshapes of DefectsarXiv 2025
C. López et al. Chalcogen Vacancies Rule Charge Recombination in Pnictogen Chalcohalide Solar-Cell AbsorbersACS Energy Letters 2025
M. S. Islam et al. Diffusion Characteristics of Ru and Oxygen Vacancies in Ta2O5 for Resistive Random Access Memory Devices: A Density Functional Theory InvestigationAdvanced Electronic Materials 2025
J. Tu et al. Giant switchable ferroelectric photovoltage in double-perovskite epitaxial films through chemical negative strainScience Advances 2025
Y. Fu & H. Lohan et al. Factors Enabling Delocalized Charge-Carriers in Pnictogen-Based Solar Absorbers: In-depth Investigation into CuSbSe2Nature Communications 2025
S. R. Kavanagh et al. Intrinsic point defect tolerance in selenium for indoor and tandem photovoltaicsEnergy & Environmental Science 2025
N. T. Taylor et al. Instability of oxide perovskite surfaces induced by vacancy formationPhysical Review B 2025
X. Jiang et al. Carrier lifetime killer in 4H-SiC: carrier capture path via carbon vacanciesJournal of Materials Chemistry C 2025
G. Kalemai et al. Flexible Inorganic/Organic Memristor Based on W-Doped MoOx/Poly(methyl methacrylate) HeterostructureNanomaterials 2025
M. R. Khan et al. Interplay between intrinsic defects and optoelectronic properties of semi-Heusler gapped metalsPhysical Chemistry Chemical Physics 2025
R. Chinnappan First-principles study of defect energetics and magnetic properties of Cr, Ru and Rh doped AlNPhysica Scripta 2025
R. Desai et al. Exploring the Defect Landscape and Dopability of Chalcogenide Perovskite BaZrS3Journal of Physical Chemistry C 2025
C. Kaewmeechai, J. Strand & A. Shluger Structure and Migration Mechanisms of Oxygen Interstitial Defects in β-Ga2O3Physica Status Solidi B 2025
Y. Gong Wang et al. Influence of Vanadium and Chromium Doping on the Thermoelectric Performance of AgSbTe2Physica Scripta 2025
W. Gierlotka et al. Thermodynamics of point defects in the AlSb phase and its influence on phase equilibriumComputational Materials Science 2025
X. Wang et al. Sulfur Vacancies Limit the Open-circuit Voltage of Sb2S3 Solar CellsACS Energy Letters 2024
A. Zhang et al. Optimizing the n-type carrier concentration of an InVO4 photocatalyst by codoing with donors and intrinsic defectsPhysical Review Applied 2024
M-L. Wang et al. Impact of sulfur doping on copper-substituted lead apatitePhysical Review B 2024
S. Quadir et al. Low-Temperature Synthesis of Stable CaZn2P2 Zintl Phosphide Thin Films as Candidate Top AbsorbersAdvanced Energy Materials 2024
M. Elgaml et al. Controlling the Superconductivity of Nb2PdxS5 via Reversible Li IntercalationInorganic Chemistry 2024
Z. Yuan & G. Hautier First-principles study of defects and doping limits in CaOApplied Physics Letters 2024
B. E. Murdock et al. Li-Site Defects Induce Formation of Li-Rich Impurity Phases: Implications for Charge Distribution and Performance of LiNi0.5-xMxMn1.5O4 Cathodes (M = Fe and Mg; x = 0.05–0.2)Advanced Materials 2024
A. G. Squires et al. Oxygen dimerization as a defect-driven process in bulk LiNiO22ACS Energy Letters 2024
X. Wang et al. Upper efficiency limit of Sb2Se3 solar cellsJoule 2024
I. Mosquera-Lois et al. Machine-learning structural reconstructions for accelerated point defect calculationsnpj Computational Materials 2024
K. Li et al. Computational Prediction of an Antimony-based n-type Transparent Conducting Oxide: F-doped Sb2O5Chemistry of Materials 2024
S. Hachmioune et al. Exploring the Thermoelectric Potential of MgB4: Electronic Band Structure, Transport Properties, and Defect ChemistryChemistry of Materials 2024
Y. Zeng et al. Role of carbon in α-Al2O3:C crystals investigated with first-principles calculations and experimentCeramics International 2024
X. Wang et al. Four-electron negative-U vacancy defects in antimony selenidePhysical Review B 2023
Y. Kumagai et al. Alkali Mono-Pnictides: A New Class of Photovoltaic Materials by Element MutationPRX Energy 2023
S. M. Liga & S. R. Kavanagh, A. Walsh, D. O. Scanlon, G. Konstantatos Mixed-Cation Vacancy-Ordered Perovskites (Cs2Ti1–xSnxX6; X = I or Br): Low-Temperature Miscibility, Additivity, and Tunable StabilityJournal of Physical Chemistry C 2023
A. T. J. Nicolson et al. Cu2SiSe3 as a promising solar absorber: harnessing cation dissimilarity to avoid killer antisitesJournal of Materials Chemistry A 2023
Y. W. Woo, Z. Li, Y-K. Jung, J-S. Park, A. Walsh Inhomogeneous Defect Distribution in Mixed-Polytype Metal Halide PerovskitesACS Energy Letters 2023
P. A. Hyde et al. Lithium Intercalation into the Excitonic Insulator Candidate Ta2NiSe5Inorganic Chemistry 2023
J. Willis, K. B. Spooner, D. O. Scanlon On the possibility of p-type doping in barium stannateApplied Physics Letters 2023
J. Cen et al. Cation disorder dominates the defect chemistry of high-voltage LiMn1.5Ni0.5O4 (LMNO) spinel cathodesJournal of Materials Chemistry A 2023
J. Willis & R. Claes et al. Limits to Hole Mobility and Doping in Copper IodideChemistry of Materials 2023
I. Mosquera-Lois & S. R. Kavanagh, A. Walsh, D. O. Scanlon Identifying the ground state structures of point defects in solidsnpj Computational Materials 2023
Y. T. Huang & S. R. Kavanagh et al. Strong absorption and ultrafast localisation in NaBiS2 nanocrystals with slow charge-carrier recombinationNature Communications 2022
S. R. Kavanagh, D. O. Scanlon, A. Walsh, C. Freysoldt Impact of metastable defect structures on carrier recombination in solar cellsFaraday Discussions 2022
Y-S. Choi et al. Intrinsic Defects and Their Role in the Phase Transition of Na-Ion Anode Na2Ti3O7ACS Applied Energy Materials 2022
S. R. Kavanagh, D. O. Scanlon, A. Walsh Rapid Recombination by Cadmium Vacancies in CdTeACS Energy Letters 2021
C. J. Krajewska et al. Enhanced visible light absorption in layered Cs3Bi2Br9 through mixed-valence Sn(II)/Sn(IV) dopingChemical Science 2021
doped has been built to aid robustness and reproducibility for computational defect studies.
We highly recommend that the doped/ShakeNBreak class objects, which store key metadata and can be directly
output to lightweight json(.gz) files be shared in open-access repositories upon publication, along with relevant raw
computational data. It is also helpful to use the doped summary functions to tabulate key quantities in Supplementary
Information files. See the Open Science
section of the docs Tips page for details.
Acknowledgments
doped (née DefectsWithTheBoys) has benefitted from feedback from many users, in particular members of the
Scanlon and Walsh research groups who have used / are using it in their work. Direct contributors are
listed in the Contributors sidebar above; including Seán Kavanagh, Alex Squires, Irea Mosquera-Lois, Sefer Bora
Lisesivdin, Sheharyar Pervez, Atharva Anturkar, Adair Nicolson, Alex Ganose, Bonan Zhu, Katarina Brlec, Sabrine
Hachmioune and Savya Aggarwal.
doped was originally based on the excellent PyCDT (no longer maintained), but transformed and morphed over time as more and more functionality was added. After breaking changes in pymatgen, the package was entirely refactored and rewritten, to work with the new
pymatgen-analysis-defects package.
Use together with doped: extensions, drivers, servers and companion tools.
pymatgenPythie’s Index: 80Python Materials Genomics is a robust materials analysis code that defines core object representations for structures and molecules with support for many electronic structure codes. It is currently the core analysis code powering the Materials Project (https://materialsproject.org).1.2M downloads/mo