# Materials genomics methods for high-throughput construction of COFs and targeted synthesis

## Abstract

Materials genomics represents a research mode for materials development, for which reliable methods for efficient materials construction are essential. Here we present a methodology for high-throughput construction of covalent organic frameworks (COFs) based on materials genomics strategy, in which a gene partition method of genetic structural units (GSUs) with reactive sites and quasi-reactive assembly algorithms (QReaxAA) for structure generation were proposed by mimicking the natural growth processes of COFs, leading to a library of 130 GSUs and a database of ~470,000 materials containing structures with 10 unreported topologies as well as the existing COFs. As a proof-of-concept example, two generated 3D-COFs with ffc topology and two 2D-COFs with existing topologies were successfully synthesized. This work not only presents useful genomics methods for developing COFs and largely extended the COF structures, but also will stimulate the switch of materials development mode from trial-and-error to theoretical prediction-experimental validation.

## Introduction

Advanced nanoporous materials are of great importance in various fields. Nowadays, materials discovery is primarily based on scientific intuition and expensive trial-and-error experimentation1. Such traditional approaches often result in lengthy time from initial research to practical application. In recognition of this, the United States in 2011 announced the Materials Genome Initiative (MGI) to accelerate advanced materials innovation, one of the main issues is to develop high-throughput computational tools for materials design to construct large materials database1,2,3,4. The subsequent programs with same ambition of Horizon 2020 and Chinese-version MGI were launched simultaneously in Europe and China. In the MGI, one of the significant challenges is to computationally construct vast space of possible materials for identifying optimal candidates. In this aspect, several pioneering studies have been reported in the literature5,6. An excellent example is the contribution of Snurr and coworkers7 to metal-organic frameworks (MOFs) that consist of organic linkers connected via metal ions8,9. They generated an impressive database of over 130,000 hypothetical materials using recursive, geometry-based algorithms to recombine a set of building blocks compiled from known MOFs. Alternative topology-based approaches were also developed in a top-down manner to construct massive hypothetical structures using underlying nets10,11,12. In addition to these hypothetical compounds, large archives of experimental MOFs were also built from the crystal data deposited in the Cambridge Structural Database (CSD)13,14,15.

Covalent organic frameworks (COFs) represent another emerging class of nanoporous crystalline materials distinguished from MOFs, which are assembled from organic reactants via covalent bonds16,17. Depending on the structures of building units, COFs can be formed into those with either two- (2D) or three-dimensional (3D) structures18,19,20. In contrast to MOFs, the structures of COFs reported experimentally are very limited (~320), which is also the case in computational studies21,22,23. Apart from collection of experimental COFs24, a relatively large database was achieved by Martin et al.25, which contains 4147 hypothetical materials via framework interpenetration of 620 unique 3D-COFs assembled from their topology-based constructor. Recently, this method was further adopted by Smit and coworkers26 to greatly expand COF database. Since chemistry of COFs can be theoretically very rich, leading to these progresses still far from the need of computational screening from the viewpoint of the MGI. Furthermore, there is no large database available so far for 2D-COFs, although such materials have become a research hotspot in many areas27.

Therefore, in complement with the library of nanoporous materials containing MOFs, our idea in this work is to develop relevant construction methods for COFs, particularly for 2D-COFs using a self-adaption algorithm to determine interlayer spacing. A database of ~470,000 COFs is built, from which four COFs are targeted synthesized as a proof-of-concept example, demonstrating the applicability of our materials construction methods. This work not only presents useful methods and a large COF database, but also gives an example for developing advanced materials based on materials genomics strategy.

## Results

### Partition method for COF genes and their library

The idea of this work is shown in Fig. 1a, in which the first step is to build the library of COF genes for structure construction. Different from the synthesis of MOFs usually using organic ligands and metal salts, COFs are generally synthesized via polycondensation reactions of organic monomers (or molecules) and their original architectures are principally maintained in the resultant structures. Considering this, we proposed a gene partition method namely genetic structural units (GSUs), which are the structural units with reactive sites derived by mimicking COFs natural growth process, and thus have heredity (Fig. 1b). Such treatment enables a rapid collection of the GSUs from existing materials and rational design using chemical knowledge. In parallel, the partition method was constrained to follow three rules: retaining the reactive sites of GSUs as far as possible at reaction terminals of reactants occurring in specific reaction processes; keeping the GSUs as relatively-integral usual molecules to the greatest extent; conveniently defining connection sites on the final GSUs for subsequent structural construction. Starting from COF structures that could be potentially synthesized from common reaction types (such as Boron-, Triazine-, Imine-, Boron/Imine-based ones)17,18,19, our partition method results in a total of 130 GSUs in the gene library of COFs (the library of GSUs is available from the authors as well as on the website: https://figshare.com/s/f8377d33bb9e9a73935a), possessing a variety of geometries, numbers of reactive sites and chemical compositions. Owing to the organic nature of COFs, these GSUs are further categorized into three types: center, linker and functional group) (see the details in Supplementary Fig. 1).

### Materials genomics-based algorithms for COF construction

Besides the definition of materials genes, efficient computational tool for rapidly assembling COF structures on a large scale is another technical key in the viewpoints of materials genomics. Our genomic procedure shares much in spirit with the method of Wilmer et al.7 for MOF construction, but with distinct differences in consideration of the features of COFs as well as the efficiency of construction process, and a high-throughput construction method called quasi-reactive assembly algorithms (QReaxAA) was proposed. Firstly, to conveniently generate a variety of COFs, we adopted three different geometrical positioning methods to connect the reactive sites predefined on the GSUs, as shown in Supplementary Fig. 2. Secondly, our strategy is to directly explore the possibility of every combination of the GSUs, avoiding defining all possible arrangements with enumerable strings that are applied in their procedure. Thirdly, parent structures of COFs are generated in our procedure prior to chemical modifications. Compared with the procedure of attempting to assemble structures using three groups of building blocks simultaneously7, such post-functionalization operation in our QReaxAA on constructible parent frameworks can greatly increase the efficiency of high-throughput computational materials design. Finally, for large-scale construction of 2D-COFs with layered structures, special attention needs to be paid on how to appropriately arrange interlayer spacing. To address this issue, a self-adaption algorithm was proposed in this work. The general process of framework construction is given as follows.

Parent structures of COFs are generated by stepwise connecting center- and linker-type of GSUs. The so-assembled frameworks are only allowed to contain one center-kind and at most two linker-kinds of GSUs. Once a success is achieved, chemical modification will be performed by attempting all kinds of GSUs categorized as functional groups. For 3D-COFs, both our approach and the approach by Wilmer et al. are straightforward, as shown in Fig. 2. As for 2D-COFs, their interlayer spacing can be approximately arranged using our self-adaption algorithm. More specifically, by examining the structures of existing 2D-COFs, we empirically deduce the contributions of each center- and linker-kind of GSUs to interlayer spacing (see more detailed descriptions in the Methods section and Supplementary Fig. 5).

### Library of the generated COFs

To check the validity of our genomic approach, we compared the experimentally reported COF structures with our generated ones and their energetically-relaxed counterparts by molecular mechanics (MM) optimization. For this purpose, six 2D-COFs and four 3D-COFs were taken as examples and the comparison metrics are their structural features which include cell parameters, surface area and void fraction, etc. Supplementary Tables 2 and 3 show good agreement between these descriptors for each material and it is also the case for the generated structures composed of various GSUs (Supplementary Table 4), demonstrating our genomic construction methods are capable of effectively generating COFs on a large scale. A total of 471,990 structures (166,684 2D-COFs and 305,306 3D-COFs) were generated in our library; apart from covering the experimental COFs reported so far (319), the library contains 471,671 generated COFs in which 10 unreported topologies were identified; this enriches the COF topologies and structures largely. All the topologies contained in the library are given in Table 1 and Fig. 3 (also Supplementary Fig. 6). Our COF database can play a great role in complementary to that recently reported by Mercado et al.26, which contains 61,199 3D- and 8,641 2D-COFs. It should be pointed out that our database at the moment only contains the structures featuring no mutually interdigitated frameworks.

The topologies identified for both 2D- and 3D-COFs are summarized as follows. For 2D-COFs, the mcm one is achieved by applying an existing (4,4) linkage to build structures, and the tth topology with two types of pores is realized via (6,4) linkage (Fig. 3a). For 3D-COFs, a total of 8 topologies are constructed (Fig. 3b): applying (6,2), (8,2) and (12,3) linkages results in topologies of pcu, acs, bcu and ttt, while using the known (4,2) and (4,3) linkages respectively leads to the sod and ffc topologies. In addition, the self-periodic extensions of the (4,2) and (4,4) linkages respectively generate structures with cds and cda topologies that possess continuous chains of center-type GSUs.

Some representatives of the generated structures with above topologies and the Bio-COFs generated using biologically-compatible GSUs are shown in Supplementary Figs. 7 and 8, respectively. The generated COF database encompasses a large number of COFs with distinctive structures, and the associated structural properties span a wide range of values (Supplementary Fig. 9), ensuring a plentiful and useful reservoir complementary to the existing library of nanoporous materials. This database is available from the authors as well as on the website: https://figshare.com/s/c7e3b7610a71b9d64210.

### Targeted synthesis of COFs

As a proof-of-concept validation to our materials genomics methods, targeted experiments were performed to synthesize some generated COFs. Compared to the dominant activity on the synthesis of 2D-COFs, expansion of 3D-COFs remains a significantly challenging task, especially for those with topologies unreported so far. All the existing 3D-COFs were solely reported for the nets based on the GSUs with tetrahedral or octahedral geometry, leading to the materials only with six distinct 3D topologies (Table 1). In light of this, we demonstrated the targeted synthesis of two generated 3D-COFs with ffc topology which use the GSUs with tetragonal geometry as the core building units; such tetragonal GSUs exhibit a planar-like pattern with four connectivities, which could also be used to construct 2D-COFs28, in sharp contrast to those adopted for existing 3D-COFs. In addition, two 2D-COFs generated with existing hcb topology were also synthesized to enrich the chemistry of COFs. We noticed that among known linkages used for COFs, the most widely used one is imine bond due to its advantages such as high stability and more accessibility. More than two thirds of COFs reported in literature are fabricated through imine linkages and thus imine is more representative than other linkage models. Accordingly, imine was chosen as the linkage for the targeted materials synthesis.

### Synthesis of 3D-COFs

Starting from selecting monomers that can form C4 + C3 linkage, the synthesis of the two 3D-COFs with ffc topology, a topology which has never been experimentally achieved before, was carried out by solvothermal reactions of 4,4′,4′′,4′′′-(ethene-1,1,2,2-tetrayl)tetraaniline (ETTA) with 1,3,5-tri(4-formylphenyl)benzene (TFPB) or tris(4-formylphenyl)amine (TFPA), respectively, as shown in Fig. 4a, b. As revealed by their experimental powder X-ray diffraction (PXRD) patterns, the as-prepared 3D-COFs are highly crystalline materials. The experimentally observed PXRD pattern of 3D-ETTA-TFPB displays two intense peaks at 2.20° and 3.84°, along with three peaks of relatively low intensities at 4.46°, 6.61° and 7.74°, which are assignable to the (010), (110), (020), (300) and (220) facets, respectively (Fig. 4e, black curve). For 3D-ETTA-TFPA, strong PXRD peaks are observed at 2.46° (100) and 4.25° (110), accompanied by several lower peaks at 4.91° (2-20), 6.55° (210), and 8.58° (220) (Fig. 4f, black curve). In both cases, the simulated PXRD patterns (Fig. 4e, f, orange curves) of the non-interpenetrated models show good match with the experimental ones, confirming the successful synthesis of the targeted 3D-COFs with ffc topology. Pawley refinements (P112 space group) were performed (Fig. 4e, f, red curves), which yielded unit cell parameters of a = 46.1341 Å, b = 45.6374 Å, c = 20.8920 Å, α = β = 90°, γ = 120° (residuals Rp = 2.51%, Rwp = 3.53%) for 3D-ETTA-TFPB, and a = 41.8782 Å, b = 41.2827 Å, c = 17.8371 Å, α = β = 90°, γ = 120° (residuals Rp = 4.32%, Rwp = 5.49%) for 3D-ETTA-TFPA, nearly equivalent to those of the generated structures (Supplementary Tables 5 and 6). As indicated by the difference plots (Fig. 4e, f, gray curves), the refined PXRD patterns well reproduce the experimental data. Their FT-IR spectra showed the C=N stretching bands characteristic for imines at 1625 and 1200 cm-1 for the 3D-COFs, demonstrating the existence of imine units in the synthesized COFs (Supplementary Figs. 10 and 11). The solid-state 13C CP-MAS NMR spectra of both materials confirmed the presence of carbon atoms of the imine linkages by the appearance of the peaks around 156 ppm (Supplementary Figs. 12 and 13).

### Synthesis of 2D-COFs

To further verify the proposed genomic strategy for COF construction, we also prepared two 2D-COFs with hcb topology, which were generated using the GSUs both with C3-symmetric configuration. One material was synthesized by the reaction of 1,3,5-trimethyl-2,4,6-tris(4-formylphenyl)benzene (TTFB) and tris(4-aminophenyl)benzene (TAPB), while the other one was obtained by the condensation of TTFB and 1,3,5-tris(4-aminophenyl)amine (TAPA) (Fig. 4c, d). Similar to the above 3D-COFs, the targeted 2D-COFs were also produced as crystallites under solvothermal conditions. The experimental PXRD patterns of the as-prepared materials were collected and compared with the simulated ones, which confirmed the expected crystal structures of 2D-TTFB-TAPB and 2D-TTFB-TAPA in eclipsed stacking mode, as indicated by the good agreements between the experimental PXRD and simulated data (Fig. 4g, h). Refined PXRD patterns from Pawley refinements match the experimental data well (Fig. 4g, h, gray curves), which gave lattice parameters of a = 25.9255 Å, b = 25.3467 Å, c = 4.8289 Å, α = β = 90°, γ = 120° (residuals Rp = 4.54%, Rwp = 5.54%) for 2D-TTFB-TAPB, and a = 24.4371 Å, b= 23.1107 Å, c = 5.6147 Å, α = β = 90°, γ = 120° (residuals Rp = 3.50%, Rwp = 4.72%) for 2D-TTFB-TAPA (Supplementary Tables 7 and 8). The FT-IR and 13C NMR results also support successful synthesis of the COFs (Supplementary Figs. 1419).

The above proof-of-concept experiments reveal the reliability of the materials genomics-based algorithms proposed in this work as well as its powerfulness. In contrast to an easy understanding of the topology of 2D-COFs by manually plotting the structures on the paper, it is hard to intuitionally figure out what architecture will be formed for 3D-COFs from different GSUs, especially in the finding of materials with unreported topologies. The above successful synthesis of 3D-COFs demonstrates the feasibility of our computational strategy in guiding experimental efforts to develop nanoporous materials.

Nitrogen adsorption-desorption measurements were further carried out to assess the as-prepared COFs (Fig. 5a, b, and Supplementary Fig. 20a, b). Their BET surface areas were calculated based on the N2 adsorption data in the range of P/P0 between 0.05 and 0.2 (Supplementary Fig. 21). For the 3D-COFs, surface areas of 1174 and 1202 m2 g-1 were estimated for 3D-ETTA-TFPB and 3D-ETTA-TFPA, respectively, with total pore volumes (at P/P0 = 0.99) being 0.75 cm3 g−1 for the former and 0.77 cm3 g−1 for the latter. Their pore size distributions (PSDs) were estimated through nonlocal density functional theory (NLDFT), which display main distributions around 1.73 and 1.49 nm for 3D-ETTA-TFPB and 3D-ETTA-TFPA, respectively, indicating a good degree of crystallinity (Fig. 5c, d). In the case of the 2D-COFs, the same procedures afforded BET surface areas, pore volume (at P/P0 = 0.99) and pore size to be 1526 and 2448 m2 g-1, 1.38 and 1.56 cm3 g−1, and 2.05 and 1.48 nm for 2D-TTFB-TAPB and 2D-TTFB-TAPA, respectively (Supplementary Fig. 20c, d). The observed pore sizes well match the theoretically predicted ones.

## Discussion

In this work, a concept of the GSUs with reactive sites was proposed for the gene partition of COFs and a construction method of the QReaxAA was developed for structure generation by mimicking COFs natural growth processes. The genomic COF construction methods based on them can efficiently generate COFs to meet the requirement of high-throughput computational materials design, and the generation of structures with unreported topologies would facilitate greatly experimental endeavors on their synthesis. The targeted synthesis of two 3D-COFs and two 2D-COFs highlights the usefulness and the reliability of the methods. As a result, this work not only provides useful methods and tools for high-throughput materials construction, but also will contribute to the switch of materials development mode, making the materials development greener and more efficient.

## Methods

### Position method for the GSUs

To conveniently generate a variety of COFs, we adopted three different geometrical positioning methods for the connection of GSUs, as shown in Supplementary Fig. 2. Three non-colinear positioning atoms are derived for each reactive site on the GSUs. For structure construction, the choice of positioning method depends on the specific center-type GSUs. The first method (Supplementary Fig. 2a) is applicable to the situation that the three positioning atoms at each reactive site of the GSUs are self-determined. It means that the so-obtained structures have distinct boundaries between center and linker GSUs, just analogous to those between inorganic and organic building blocks defined for MOFs. The second method is used to deal with the center GSUs that two positioning pseudo-atoms at each reactive site need to be consulted with linker GSUs; i.e., it is linker-dependent. This method can be employed to design structures analogous to ZIF-8 with a sodalite topology29 and so on (Supplementary Fig. 2b). The last one is proposed to assemble structures with infinitely-extending chains that consist of the same center GSUs, for example, those analogous to the inorganic chains in the MOFs like MIL-479.

### Linkage principle between the GSUs

As described above, three positioning methods were used for the connection of the GSUs. No matter what kind of positioning method is used, our QReaxAA algorithm will eventually convert geometrical information of the three positioning atoms located at each reactive site into the unit vectors defined by three virtual points using the green stars shown in Supplementary Fig. 3, allowing to assemble COF structures conveniently using mathematical operations. To briefly demonstrate the linkage principle between the GSUs, we take the connection between the reactive site 1 of one center GSU (Supplementary Fig. 3a) and the reactive site 4 of one linker GSU (Supplementary Fig. 3b) as an example. Initially, the center GSU is placed anywhere in the space. The linker GSU is then added and its position is adjusted using a rotation matrix and a translation vector so that the reactive site 4 is oriented correctly to the reactive site 1. When the coordinates of stars 4 and 5 are respectively coincident with those of stars 1 and 2 and the vector 4→6 is in parallel with the vector 1→3, the two reactive sites are considered to connect successfully. The linking processes for other reactive sites as well as other GSUs are essentially the same. When all the reactive sites are linked and the periodic boundary conditions are found, overall framework of the crystal structure is generated.

### Procedure of structure generation

Supplementary Fig. 4 shows the general flowchart implemented in our method for enumerative generation of COFs. At the beginning, one kind of center GSUs and at most two kinds of linker GSUs are selected each time, which are stepwise combined together. If an atomic overlap occurs during the connection, our algorithm will go backwards and retry the rest of reactive sites or other kinds of GSUs. If repetitive connectivity emerges in one direction, a periodic boundary will be imposed along this direction to connect the GSUs, instead of adding more GSUs. For 3D-COFs, three periodic boundaries need to be found. For 2D-COFs, while two periodicities can be found from the connection of GSUs, an arrangement of interlayer spacing is required prior to imposing the third one. After successful generation of parent structures, chemical modification will be performed by attempting all kinds of functional groups. To accelerate the assembling process, some constraints are additionally specified in our algorithms to avoid very long time on attempting infeasible combinations of GSUs. Specifically, with a given selection of GSUs, if attempting to connect GSUs exceeds 5000 steps or the number of reactive sites need to be linked is larger than 300, current selection will be discarded and other GSUs will be chosen from the library to conduct next generation. We also perceived that the at least 95% of 2D-COF structures experimentally reported so far dominantly adopt eclipsed stacking mode, and interpenetration behaviors in 3D-COFs can be affected by many factors such as synthesis conditions30,31. Thus, the COF database presented in this work only contains the unique structures featuring no mutually interdigitated frameworks.

### Self-adaption algorithm for interlayer-spacing determination

The covalently-bonded framework of 2D-COFs is restricted to 2D sheets, which are stacked together via van der Waals forces to form a laminar structure. Thus, there is no connection between the GSUs in adjacent layers. By examining the structures of synthesized 2D-COFs, we found that the interlayer spacing of most materials essentially is in the range of 3.0–4.0 Å. However, for some materials like IL-COF-132 and TD-COF-533, the interlayer spacing can reach 6.6 and 7.5 Å respectively, which is due to the fact that their structures contain non-planar sheets. Thus, it is impossible to unitarily use a fixed mean value for high-throughput generation of 2D-COF structures. To address this issue, a self-adaption algorithm was adopted in our genomics-based method, in which the interlayer spacing (d) was set equal to the largest contribution between center and linker GSUs plus that of functional group, as given by

$$d = \max \left( {d_{{\mathrm{center}}},d_{{\mathrm{linker}}}} \right) + d_{{\rm{functional}}\,{\rm{group}}},$$
(1)

where dcenter, dlinker and dfunctional group are the interlayer-spacing contributions of the center, the linker, and the functional-group GSUs that constitute the targeted structure, respectively.

The contributions of existing center and linker GSUs were determined from the interlayer-spacing information of the synthesized COFs. For other center and linker GSUs, their contributions were inferred from these derived GSUs with similar configurations. Since the functionalized COFs reported experimentally are very scarce, it is hard to establish the contributions of functional groups to interlayer spacing. With respect to this issue, we approximately set the contributions of them equal to the differences between the interlayer spacing of functionalized and parent COFs on the basis of the structures optimized using molecular mechanics. For this purpose, five 2D-COFs reported experimentally (COF-534, COF-1035, COF-LZU136, CTF-137 and CTF-238) were selected and each of them was modified using the eight kinds of functional groups considered in this work. All the built structures were optimized using the Forcite module of Materials Studio. The final contribution of each functional group was averaged from its contributions to these five COFs, as listed in Supplementary Table 1. To gain an intuitive understanding on the self-adaption algorithm is realized in our method, we provided an example in Supplementary Fig. 5 to outlines the steps for the construction of a 2D-COF and its functionalized form. To computationally determine the specific stacking mode between the layers of 2D-COFs, it is necessary to conduct higher level of theoretical methods such as quantum mechanics calculations, which however are very time consuming to be applied to the large number of 2D structures in our database. Also, most of the 2D-COFs reported so far are presented with eclipsed structures, and the eclipsed and staggered modes do not have large difference in interlayer space. At the same time, both the stacking modes have no influence on the connections between monomers and the resulting topologies. Thus, as a primary step, contributions of various GSUs to interlayer spacing were determined on simplistic model of perfect eclipsed stacking structures, which were further adopted to perform high-throughput construction of 2D-COFs. Since there are some experimental 2D-COF structures with layers exhibiting slightly offset arrangements, in the future we will consider such effects during the improvement of our genomics method so as to make more reasonable 2D-COF structures.

### Molecular mechanics optimizations

To validate proposed computational protocol, we performed the geometry optimizations for some typical COFs using the Smart algorithm implemented in the Forcite module of Materials Studio software. This algorithm is a cascade of the steepest descent, adjusted basis set Newton-Raphson, and quasi-Newton methods. The DREIDING force field39 combined with the QEq charge equilibration method40 were used to describe the bonded and non-bonded interactions between atoms during the optimization processes. Both cell parameters and atomic positions were allowed to fully relax until the total energies of the structures were minimized.

### Geometric analysis of COF structures

Structural features of the generated COFs in our database were analysed using the Zeo + + code41. It is a powerful tool for performing high-throughput geometry-based analysis of porous materials, including the calculations of largest-cavity diameter (LCD), pore-limiting diameter (PLD), accessible surface area (Sacc) and free volume (Vfree). In this work, accessible surface area of each material was calculated by a probe molecule with a size equal to the kinetic diameter of N2 (3.68 Å), while a probe size of 0.0 Å was applied to calculate the free volume which is the absolute amount of volume not occupied by the framework atoms. The void fraction (ϕ) was determined from the ratio of free volume to the total volume of the cell. The program used for the topological analysis is the open source tool TOPOS42.

### Validation of the generated COF structures

To validate our genomic approach for the construction of COF structures, we compared some intrinsic structural features of 10 synthesized COFs (6 2D-COFs and 4 3D-COFs) with those of the built structures and the built structures after molecular mechanics optimization. Supplementary Table 2 shows a comparison of the cell parameters of these materials, together with Supplementary Table 3 for their crystal densities (ρcrys), pore-limiting-diameters (PLD), largest-cavity diameters (LCD), accessible surface areas (Sacc) and void fractions (ϕ). It can be found that these structural descriptors are in good agreement for each examined material. In addition, to validate the applicability of the interlayer-spacing contributions of functional groups used in our self-adaption algorithm, we arbitrarily selected 8 functionalized 2D-COFs that are not included in the training set and examined the variation of the cell parameters of each built structure after molecular mechanics optimization. As evidenced from the results shown in Supplementary Table 4, the cell length along c direction for each material changes only marginally, demonstrating that the contributions of the functional groups given in Supplementary Table 1 are suitable to determine the interlayer spacing of functionalized 2D-COFs.

Our method was mainly based on the monomers and the reaction types adopted in the synthesis of existing COFs, and thus all the structures were achieved through plausibly linking diverse monomers. In regard to examining whether certain COF structures that are likely to form, higher levels of theoretical approaches (such as quantum mechanics calculations) were usually used in literature to explore their thermodynamic feasibility. However, not only is there a great difficulty in applying them to hundreds of thousands of COF structures in our database, but whether one material can ultimately be formed is also affected by kinetic factors relevant to solvents and synthesis conditions, which are difficult to consider in calculations.26 Consequently, similar to the large databases computationally reported for MOFs and other materials, it cannot be guaranteed that all the constructed COF structures can be realized experimentally. However, apart from the offer of a theoretical guidance for the synthesis of COFs, the database also can provide a useful foundation for studying the structure-property relationships of COFs towards interested applications. Considering the issues described above, in the future we will manage to improve our algorithms to provide some useful insights into the synthetic conditions required to make COFs.

### Synthesis of 3D-ETTA-TFPB

This COF was prepared by adding 4,4′,4′′,4′′′-(ethene-1,1,2,2-tetrayl)tetraaniline (ETTA) (35.4 mg, 0.09 mmol), 1,3,5-tris(4-formylphenyl)benzene (TFPB) (46.8 mg, 0.12 mmol), chlorobenzene (3 mL) and acetic acid (aq., 9 M) (0.3 mL) into a glass ampoule. After being degassed through three freeze-pump-thaw cycles and then flame-sealed under vacuum, the ampoule was heated at 120 °C in an oven for three days. The resulting precipitate was collected through filtration, washed three times with anhydrous THF and 1, 4-dioxane, and immersed in anhydrous THF (10 mL) for 1 h during which the solvent was decanted and replenished with fresh THF three times. The product was filtrated and then dried under dynamic vacuum at 120 °C for 2 h to afford a yellow powder (60.8 mg, 80%).

### Synthesis of 3D-ETTA-TFPA

This COF was prepared as an orange powder (40 mg, 88%) using the same synthetic protocol of 3D-ETTA-TFPB from ETTA (23.6 mg, 0.06 mmol) and tris(4-formylphenyl)amine (TFPA) (26.4 mg, 0.08 mmol) in a mixture of chlorobenzene (2 mL) and acetic acid (aq., 9 M) (0.2 mL).

### Synthesis of 2D-TTFB-TAPB

This COF was prepared as a light yellow powder (50 mg, 76%) using the same synthetic protocol of 3D-ETTA-TFPB from 1,3,5-trimethyl-2,4,6-tris(4-formylphenyl)benzene (TTFB) (39 mg, 0.09 mmol) and tris(4-aminophenyl)benzene (TAPB) (31.5 mg, 0.09 mmol) in a mixture of chlorobenzene (3 mL) and acetic acid (aq., 9 M) (0.3 mL).

### Synthesis of 2D-TTFB-TAPA

This COF was prepared as a gold powder (27 mg, 67%) using the same synthetic protocol of 3D-ETTA-TFPB from TTFB (26 mg, 0.06 mmol) and 1,3,5-tris(4-aminophenyl)amine (TAPA) (17.4 mg, 0.06 mmol) in a mixture of 1,2-dichlorobenzene (2 mL) and acetic acid (aq., 9 M) (0.2 mL).

### Characterizations of COFs

Powder X-ray diffraction measurements were carried out with an X’Pert PROX system using monochromated Cu/Kα (λ = 0.1542 nm). Each sample was spread on the square recess of XRD sample holder as a thin layer. Solution-state 1H- and 13C NMR spectra were collected on a Bruker Fourier 500 M or a 400 M spectrometer. Solid-state 13C cross-polarization/magic angle spinning (CP/MAS) spectra were collected on an Agilent DD2 600 Solid system equipped with a 3.2 mm HFXY MAS probe. The Hartmann-Hahn conditions of the CP experiment were obtained at a15 kHz MAS spinning speed with a contact time of 2.0 ms. Recycle delay times are 5 s. Fourier transform infrared spectroscopy (FT-IR) were obtained by using a Nicolet iS10 spectrometer.

The measurements were carried out using a Quantachrome Autosorb-IQ instrument. Before gas adsorption measurements, the as-prepared samples (50 mg) were activated by being immersed in anhydrous dioxane for 12 h. The solvent was decanted and the samples were dried under dynamic vacuum at 160 °C for 8 h. The resulting samples were then used for gas adsorption measurements from 0 to 1 atm at 77 K. The Brunauer-Emmett-Teller (BET) method was utilized to calculate the specific surface areas. By using the non-local density functional theory model, the pore size distributions were derived from the adsorption data.

### Code availability

The code used to generate the COF structures are available from the corresponding authors upon reasonable request.

## Data availability

All relevant data that that support the findings of this study are available from the corresponding authors upon request.

## References

1. 1.

Jain, A. et al. Commentary: the materials project: a materials genome approach to accelerating materials innovation. APL Mater. 1, 011002 (2013).

2. 2.

Simon, C. M. et al. The materials genome in action: identifying the performance limits for methane storage. Energy Environ. Sci. 8, 1190–1199 (2015).

3. 3.

Chung, Y. G. et al. In silico discovery of metal-organic frameworks for precombustion CO2 capture using a genetic algorithm. Sci. Adv. 2, e1600909 (2016).

4. 4.

Collins, S. P., Daff, T. D., Piotrkowski, S. S. & Woo, T. K. Materials design by evolutionary optimization of functional groups in metal-organic frameworks. Sci. Adv. 2, e1600954 (2016).

5. 5.

Pophale, R., Cheeseman, P. A. & Deem, M. W. A database of new zeolite-like materials. Phys. Chem. Chem. Phys. 13, 12407–12412 (2011).

6. 6.

Martin, R. L., Simon, C. M., Smit, B. & Haranczyk, M. In silico design of porous polymer networks: high-throughput screening for methane storage materials. J. Am. Chem. Soc. 136, 5006–5022 (2014).

7. 7.

Wilmer, C. E. et al. Large-scale screening of hypothetical metal-organic frameworks. Nat. Chem. 4, 83–89 (2012).

8. 8.

Meek, S. T., Greathouse, J. A. & Allendorf, M. D. Metal-organic frameworks: a rapidly growing class of versatile nanoporous materials. Adv. Mater. 23, 249–267 (2011).

9. 9.

Horcajada, P. et al. Metal-organic frameworks in biomedicine. Chem. Rev. 112, 1232–1268 (2012).

10. 10.

Lin, L.-C. et al. In silico screening of carbon-capture materials. Nat. Mater. 11, 633–641 (2012).

11. 11.

Addicoat, M. A., Coupry, D. E. & Heine, T. AuToGraFS: automatic topological generator for framework structures. J. Phys. Chem. A 118, 9607–9614 (2014).

12. 12.

Gómez-Gualdrón, D. A. et al. Evaluating topologically diverse metal–organic frameworks for cryo-adsorbed hydrogen storage. Energy Environ. Sci. 9, 3279–3289 (2016).

13. 13.

Moghadam, P. Z. et al. Development of a Cambridge structural database subset: a collection of metal−organic frameworks for past, present, and future. Chem. Mater. 29, 2618–2625 (2017).

14. 14.

Zhang, C., Lan, Y., Guo, X., Yang, Q. & Zhong, C. Materials genomics-guided ab initio screening of MOFs with open copper sites for acetylene storage. AIChE J. 64, 1389–1398 (2018).

15. 15.

Chung, Y. G. et al. Computation-ready, experimental metal-organic frameworks: a tool to enable high-throughput screening of nanoporous crystals. Chem. Mater. 26, 6185–6192 (2014).

16. 16.

Diercks, C. S. & Yaghi, O. M. The atom, the molecule, and the covalent organic framework. Science 355, eaal1585 (2017).

17. 17.

Feng, X., Ding, X. & Jiang, D. Covalent organic frameworks. Chem. Soc. Rev. 41, 6010–6022 (2012).

18. 18.

Zeng, Y., Zou, R. & Zhao, Y. Covalent organic frameworks for CO2 capture. Adv. Mater. 28, 2855–2873 (2016).

19. 19.

Ding, S. & Wang, W. Covalent organic frameworks (COFs): from design to applications. Chem. Soc. Rev. 42, 548–568 (2013).

20. 20.

Kandambeth, S. et al. Selective molecular sieving in self-standing porous covalent-organic-framework membranes. Adv. Mater. 29, 1603945 (2017).

21. 21.

Babarao, R., Custelcean, R., Hay, B. P. & Jiang, D.-E. Computer-aided design of interpenetrated tetrahydrofuran-functionalized 3D covalent organic frameworks for CO2 capture. Cryst. Growth Des. 12, 5349–5356 (2012).

22. 22.

Trewin, A. & Cooper, A. I. Predicting microporous crystalline polyimides. CrystEngComm 11, 1819–1822 (2009).

23. 23.

Bureekaew, S. & Schmid, R. Hypothetical 3D-periodic covalent organic frameworks: exploring the possibilities by a first principles derived force field. CrystEngComm 15, 1551–1562 (2013).

24. 24.

Tong, M., Lan, Y., Yang, Q. & Zhong, C. Exploring the structure-property relationships of covalent organic frameworks for noble gas separations. Chem. Eng. Sci. 168, 456–464 (2017).

25. 25.

Martin, R. L. et al. In silico design of three-dimensional porous covalent organic frameworks via known synthesis routes and commercially available species. J. Phys. Chem. C. 118, 23790–23802 (2014).

26. 26.

Mercado, R. et al. In silico design of 2D and 3D covalent organic frameworks for methane storage applications. Chem. Mater. 30, 5069–5086 (2018).

27. 27.

Zhuang, X., Mai, Y., Wu, D., Zhang, F. & Feng, X. Two-dimensional soft nanomaterials: a fascinating world of materials. Adv. Mater. 27, 403–427 (2015).

28. 28.

Zhou, T., Xu, S., Wen, Q., Pang, Z. & Zhao, X. One-step construction of two different kinds of pores in a 2D covalent organic framework. J. Am. Chem. Soc. 136, 15885–15888 (2014).

29. 29.

Park, K. S. et al. Exceptional chemical and thermal stability of zeolitic imidazolate frameworks. Proc. Natl Acad. Sci. USA 103, 10186–10191 (2014).

30. 30.

Uribe-Romo, F. J. et al. A crystalline imine-linked 3-D porous covalent organic framework. J. Am. Chem. Soc. 131, 4570–4571 (2009).

31. 31.

Ma, T. et al. Observation of interpenetration isomerism in covalent organic frameworks. J. Am. Chem. Soc. 140, 6763–6766 (2018).

32. 32.

Rabbani, M. G. et al. A 2D mesoporous imine-linked covalent organic framework for high pressure gas storage applications. Chem. -Eur. J. 19, 3324–3328 (2013).

33. 33.

Kahveci, Z., Islamoglu, T., Shar, G. A., Ding, R. & El-Kaderi, H. M. Targeted synthesis of a mesoporous triptycene-derived covalent organic framework. CrystEngComm 15, 1524–1527 (2013).

34. 34.

Cóte, A. P. et al. Porous, crystalline, covalent organic frameworks. Science 310, 1166–1170 (2005).

35. 35.

Côté, A. P., El-Kaderi, H. M., Furukawa, H., Hunt, J. R. & Yaghi, O. M. Reticular synthesis of microporous and mesoporous 2D covalent organic frameworks. J. Am. Chem. Soc. 129, 12914–12915 (2007).

36. 36.

Ding, S.-Y. et al. Construction of covalent organic framework for catalysis: Pd/COF-LZU1 in suzuki-miyaura coupling reaction. J. Am. Chem. Soc. 133, 19816–19822 (2011).

37. 37.

Kuhn, P., Antonietti, M. & Thomas, A. Porous, covalent triazine-based frameworks prepared by ionothermal synthesis. Angew. Chem., Int. Ed. 47, 3450–3453 (2008).

38. 38.

Bojdys, M. J., Jeromenok, J., Thomas, A. & Antonietti, M. Rational extension of the family of layered, covalent, triazine-based frameworks with regular porosity. Adv. Mater. 22, 2202–2205 (2010).

39. 39.

Mayo, S. L., Olafson, B. D. & Goddard, W. A. III DREIDING: a generic force field for molecular simulations. J. Phys. Chem. 94, 8897–8909 (1990).

40. 40.

Rappé, A. K. & Goddard, W. A. III Charge equilibration for molecular dynamics simulations. J. Phys. Chem. 95, 3358–3363 (1991).

41. 41.

Willems, T. F., Rycroft, C. H., Kazi, M., Meza, J. C. & Haranczyk, M. Algorithms and tools for high-throughput geometry-based analysis of crystalline porous materials. Microporous Mesoporous Mater. 149, 134–141 (2012).

42. 42.

Blatov, V. A. Voronoi–dirichlet polyhedra in crystal chemistry: theory and applications. Crystallogr. Rev. 10, 249–318 (2004).

43. 43.

Spitler, E. L. & Dichtel, W. R. Lewis acid-catalysed formation of two-dimensional phthalocyanine covalent organic frameworks. Nat. Chem. 2, 672–677 (2010).

44. 44.

Ascherl, L. et al. Molecular docking sites designed for the generation of highly crystalline covalent organic frameworks. Nat. Chem. 8, 310–316 (2016).

45. 45.

Qian, C. et al. Toward covalent organic frameworks bearing three different kinds of pores: the strategy for construction and COF-to-COF transformation via heterogeneous linker exchange. J. Am. Chem. Soc. 139, 6736–6743 (2017).

46. 46.

Nath, B. et al. A new azodioxy-linked porphyrin-based semiconductive covalent organic framework with I2 doping-enhanced photoconductivity. CrystEngComm 18, 4259–4263 (2016).

47. 47.

Tian, Y. et al. Two-dimensional dual-pore covalent organic frameworks obtained from the combination of two D 2h symmetrical building blocks. Chem. Commun. 52, 11704–11707 (2016).

48. 48.

Du, Y. et al. Ionic covalent organic frameworks with spiroborate linkage. Angew. Chem. Int. Ed. 55, 1737–1741 (2016).

49. 49.

Dalapati, S. et al. Rational design of crystalline supermicroporous covalent organic frameworks with triangular topologies. Nat. Commun. 6, 7786 (2016).

50. 50.

Xu, S. Q., Liang, R. R., Zhan, T. G. & Zhao, X. Construction of 2D covalent organic frameworks by taking advantage of the variable orientation of imine bonds. Chem. Commun. 53, 2431–2434 (2017).

51. 51.

Yahiaoui, O. et al. 3D anionic silicate covalent organic framework with srs topology. J. Am. Chem. Soc. 140, 5330–5333 (2018).

52. 52.

El-Kaderi, H. M. et al. Designed synthesis of 3D covalent organic frameworks. Science 316, 268–272 (2007).

53. 53.

Lin, G., Ding, H., Yuan, D., Wang, B. & Wang, C. A pyrene-based, fluorescent three-dimensional covalent organic framework. J. Am. Chem. Soc. 138, 3302–3305 (2016).

54. 54.

Zhang, Y. et al. Three-dimensional anionic cyclodextrin-covalent organic frameworks. Angew. Chem. Int. Ed. 56, 16313–16317 (2017).

## Acknowledgements

This work was supported by the Natural Science Foundation of China (No. 21536001, 21706106 and 21878229) and the National Key Research Program of China (2016YFA0201701) and the Strategic Priority Research Program of the Chinese Academy of Sciences (Grant No. XDB20000000). The Fundamental Research Funds for the Central Universities (No. buctrc201727) was also appreciated.

## Author information

Q.Y. and C.Z. conceived the work and directed the theoretical part, X.Z. directed the experimental part, and they co-wrote the paper. Y.L. wrote the code for high-throughput materials construction. M.T., Y.L. and D.L. carried out all the computations and analyzed the data. X.H and H.H. carried out synthesis of the COFs. All authors participated in the discussion and modified the manuscript.

Correspondence to Qingyuan Yang or Xin Zhao or Chongli Zhong.

## Ethics declarations

### Competing interests

The authors declare no competing interests.

Publisher’s note: Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

Reprints and Permissions

Lan, Y., Han, X., Tong, M. et al. Materials genomics methods for high-throughput construction of COFs and targeted synthesis. Nat Commun 9, 5274 (2018). https://doi.org/10.1038/s41467-018-07720-x

• Accepted:

• Published:

• ### Impact of Chemical Features on Methane Adsorption by Porous Materials at Varying Pressures

• Maryam Pardakhti
• , Pariksheet Nanda
•  & Ranjan Srivastava

The Journal of Physical Chemistry C (2020)

• ### Covalent Organic Frameworks: Design, Synthesis, and Functions

• Keyu Geng
• , Ting He
• , Ruoyang Liu
• , Ke Tian Tan
• , Zhongping Li
• , Shanshan Tao
• , Yifan Gong
• , Qiuhong Jiang
•  & Donglin Jiang

Chemical Reviews (2020)

• ### Rational synthesis of interpenetrated 3D covalent organic frameworks for asymmetric photocatalysis

• Xing Kang
• , Xiaowei Wu
• , Xing Han
• , Chen Yuan
• , Yan Liu
•  & Yong Cui

Chemical Science (2020)

• ### Design and applications of three dimensional covalent organic frameworks

• Xinyu Guan
• , Fengqian Chen
• , Qianrong Fang
•  & Shilun Qiu

Chemical Society Reviews (2020)

• ### Modeling of multi-scale transport phenomena in shale gas production — A critical review

• Hui Wang
• , Li Chen
• , Zhiguo Qu
• , Ying Yin
• , Qinjun Kang
• , Bo Yu
•  & Wen-Quan Tao

Applied Energy (2020)