I have my own data which is composed of XYZ values and the atom types. I would like to load and use it in the matminer library, but I do not know how should I format this data for feature extraction task. There is some code that I can use as an example?
You should consult the pymatgen Structure and Lattice classes documentation (http://pymatgen.org/_modules/pymatgen/core/structure.html) to get your XYZ + atom type values into pymatgen Structure objects. Exactly how you do this depends on how your data is right now, but I would guess you should either (a) first make a Lattice object based on your XYZ values and then use that as input to a Structure, or (b) just use the Structure.from_sites method to make your structures (you can input the coordinates directly I believe).
On Friday, March 22, 2019 at 1:13:59 PM UTC-7, OvTuto Riais wrote:
Hello,
I have my own data which is composed of XYZ values and the atom types. I would like to load and use it in the matminer library, but I do not know how should I format this data for feature extraction task. There is some code that I can use as an example?
On Sunday, March 24, 2019 at 6:05:34 PM UTC-7, [email protected] wrote:
Hi OvTuto,
You should consult the pymatgen Structure and Lattice classes documentation (http://pymatgen.org/_modules/pymatgen/core/structure.html) to get your XYZ + atom type values into pymatgen Structure objects. Exactly how you do this depends on how your data is right now, but I would guess you should either (a) first make a Lattice object based on your XYZ values and then use that as input to a Structure, or (b) just use the Structure.from_sites method to make your structures (you can input the coordinates directly I believe).
On Friday, March 22, 2019 at 1:13:59 PM UTC-7, OvTuto Riais wrote:
Hello,
I have my own data which is composed of XYZ values and the atom types. I would like to load and use it in the matminer library, but I do not know how should I format this data for feature extraction task. There is some code that I can use as an example?