# Data for 'Symmetries of all lines in monolayer crystals' [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.13948517.svg)](https://doi.org/10.5281/zenodo.13948517) [![Paper](https://img.shields.io/badge/paper-10.1107%2FS205327332500422X-blue)](https://doi.org/10.1107/S205327332500422X) This repository contains the data and code for the paper "Symmetries of all lines in monolayer crystals" by Bernard Field and Sinéad M. Griffin. Specifically, these are scanning tables, which tabulate the symmetry of every crystallographic penetration line passing through every layer group (the symmetry group of monolayer crystals/2D materials). This repository also contains a few incidental functions useful for processing crystallographic symmetry groups. If you use the data or code in a publication, please cite: Bernard Field & Sinéad M. Griffin, "Symmetries of all lines in monolayer crystals", _Acta Cryst. A_ (2025). **81**, 339-349. [DOI:10.1107/S205327332500422X](https://doi.org/10.1107/S205327332500422X) The paper is also openly available at [arXiv:2410.18750](https://arxiv.org/abs/2410.18750). ## Layout The scanning tables are available in PDF format in `tex/tables.pdf` and in JSON format in `TableData/LayerScanningTablesProcessed.json`. ### `figures` Contains visualisations of the data in the table. Some of these figures were used in the paper. ### `gap` GAP scripts and functions used to generate the scanning tables. `Identify_Group.gap` and `RepresentativeSymmetryOps.gap` have broad applications for processing crystallographic groups and identifying layer and rod groups. `FindOrigin.gap` also has broad applications for layer and rod groups, although its scope is more restricted. `Scanning.gap` contains functions specific to generating the scanning tables. The `tst/` directory contains unit tests for these functions, if you want to test your installation. `Make*.gap` create the data files. `MakeAllScanningTables.gap` takes about 10 minutes to run on a personal computer. ### `TableData` Data generated by GAP scripts for the tables, and scripts to process it into a usable format. `make_all.sh` runs the processing scripts, generating the final data files `LayerScanningTablesProcessed.json` and `LayerScanningTables.tex`. The `README` details the format of the JSON files. ### `tex` Compiles the LaTeX version of the tables. See `paper.pdf` for the tables. ### `SubperiodicGroupData` Auxiliary data, used so Cryst would have access to a database of the rod, layer, and frieze groups. The generators `*_nosetting.gi` were obtained from the [Bilbao Crystallographic Server](https://www.cryst.ehu.es/), with some formatting to put it into a GAP format. The different settings were generated using `MakeSettings.gap`, using transformation matrices read from the Bilbao Crystallographic Server. The data files were combined using `MakeSubgrp.pl` to make `subgrp.grp`, which is a complete GAP source file. `subgrp.grp` is the database of subperiodic groups used in my [patched version of Cryst](https://github.com/bfield1/cryst/tree/subperiodic). ## Dependencies This project uses [GAP](https://www.gap-system.org/), a system for computational discrete algebra with a focus on groups. It makes substantial use of the [Cryst](https://www.math.uni-bielefeld.de/~gaehler/gap/packages.php) package. It specifically uses a version of Cryst patched by Bernard Field to extend functionality of subperiodic groups (https://github.com/bfield1/cryst/tree/subperiodic). You need that patch to run any of the code here. The patch may get merged upstream in future, although that is beyond our control. The plots in `figures` require the Python package Plotly to generate. ## Acknowledgements We thank Tess Smidt for providing access to her web scraper for the [Bilbao Crystallographic Server](https://www.cryst.ehu.es/). We thank Luis Elcoro from the Bilbao Crystallographic Server for providing useful insights into their algorithm for identifying crystallographic groups. ## Bibliography The GAP Group, GAP -- Groups, Algorithms, and Programming, Version 4.12.2; 2022. (https://www.gap-system.org) Bettina Eick, Franz Gähler, and Werner Nickel, Cryst -- a GAP package, Version 4.1.26-dev, 2023. (https://www.math.uni-bielefeld.de/~gaehler/gap/packages.php) M. I. Aroyo, J. M. Perez-Mato, D. Orobengoa, E. Tasci, G. de la Flor, A. Kirov "Crystallography online: Bilbao Crystallographic Server" Bulg. Chem. Commun. 43(2) 183-197 (2011). M. I. Aroyo, J. M. Perez-Mato, C. Capillas, E. Kroumova, S. Ivantchev, G. Madariaga, A. Kirov & H. Wondratschek "Bilbao Crystallographic Server I: Databases and crystallographic computing programs" Z. Krist. 221, 1, 15-27 (2006). doi:10.1524/zkri.2006.221.1.15 M. I. Aroyo, A. Kirov, C. Capillas, J. M. Perez-Mato & H. Wondratschek "Bilbao Crystallographic Server II: Representations of crystallographic point groups and space groups" Acta Cryst. A62, 115-128 (2006). doi:10.1107/S0108767305040286 V. Kopský and D. B. Litvin, "Scanning of Space Groups", in "Group Theoretical Methods in Physics", edited by Y. Saint-Aubin and L. Vinet (World Scientific, Singapore, 1989), pp. 263–266. V. Kopský and D. B. Litvin, editors, "International Tables for Crystallography: Subperiodic Groups", 2nd ed., Vol. E (International Union of Crystallography, Chester, England, 2010).