pycofbuilder

A package for Covalent Organic Frameworks structure assembly based on specific building block, topology and functional groups based on the reticular approach

https://github.com/lipelopesoliveira/pycofbuilder

Science Score: 67.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 6 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (17.7%) to scientific vocabulary

Keywords

computational-chemistry covalent-organic-frameworks machine-learning reticular-chemistry
Last synced: 6 months ago · JSON representation ·

Repository

A package for Covalent Organic Frameworks structure assembly based on specific building block, topology and functional groups based on the reticular approach

Basic Info
Statistics
  • Stars: 55
  • Watchers: 1
  • Forks: 5
  • Open Issues: 6
  • Releases: 6
Topics
computational-chemistry covalent-organic-frameworks machine-learning reticular-chemistry
Created over 4 years ago · Last pushed 7 months ago
Metadata Files
Readme Changelog License Code of conduct Citation

README.md

pyCOFBuilder

puCOFBuilder

image Pyversions PyPI Downloads GitHub release Paper Paper GitHub license

What is pyCOFBuilder?

pyCOFBuilder is a simple and powerful python package to automatically assembly COF structures with specifics building blocks, topologies, and functionalizations following the reticular approach to build and represent COF structures. The project was developed to address the need for the generation of COFs structures in a high-throughput style, based on a nomenclature tha allows direct sctructural feature interpretation from a simple name. The package uses pymatgen to create the structures.

This package is still under development, but it is already possible to create a large number of COF structures.

Learn more at the Documentation

[!TIP]

Simple usage

In case you want to use pyCOFBuilder without installing it, you can use the Google Colab notebook available here.

Requirements

  1. Python >= 3.10
  2. pymatgen >= 2022.0.0
  3. numpy >= 1.2
  4. scipy >= 1.6.3
  5. simplejson
  6. ase
  7. gemmi

The Python dependencies are most easily satisfied using a conda (anaconda/miniconda) installation by running

Shell conda env create --file environment.yml

Installation

You can install pyCOFBuilder using pip:

Shell pip install pycofbuilder

Alternatively, you can use pyCOFBuilder by manually importing it using the sys module, as exemplified below:

```python

importing module

import sys

appending a path

sys.path.append('{PATHTOPYCOFBUILDER}/pyCOFBuilder/src')

import pycofbuilder as pcb ```

Just remember to change the {PATH_TO_PYCOFBUILDER} to the directory where you downloaded the pyCOFBuilder package.

Basic Usage

To create a specific COF, such as T3_BENZ_NH2_OH-L2_BENZ_CHO_H-HCB_A-AA:

```python

importing module

import sys

appending a path

sys.path.append('{PATHTOPYCOFBUILDER}/pyCOFBuilder/src')

import pycofbuilder as pcb

cof = pcb.Framework('T3BENZCHOOH-L2BENZNH2H-HCBA-AA') cof.save(fmt='cif', supercell = [1, 1, 2], savedir = '.') ```

You should see an output such as:

python T3_BENZ_NH2_OH-L2_BENZ_CHO_H_H-HCB_A-AA hexagonal P P6/m # 175 12 sym. op.

A .cif file (the default save format is CIF, but it can be easily changed by setting another value on the fmt option) will be created in the out folder. The code will print out some information about the structure created.

Currently, it is possible to select the following formats:

  • cif
  • xsf
  • pdb
  • cjson
  • vasp
  • turbomole
  • pqr
  • qe
  • gjf
  • xyz

Besides, the variable structure is now a Framework object. This object has some attributes that can be accessed:

```python

cof.name 'T3BENZNH2OH-L2BENZCHOH-HCBA-AA' cof.smiles '(N)C1=C(O)C((N))=C(O)C((N))=C1O.(C([H])=O)C1=C([H])C([H])=C((C([H])=O))C([H])=C1[H]' cof.lattice array([[ 22.49540055, 0. , 0. ], [-11.24770028, 19.48158835, 0. ], [ 0. , 0. , 3.6 ]]) cof.natoms 72 cof.space_group 'P6/m' ```

COFs and Building Blocks nomenclature

To ensure greater reproducibility as well as quick and easy access to relevant information from the COFs, I've developed a simple nomenclature to name the structure. Generally speaking, a COF can be described as

Building_Block_1-Building_Block_2-Net-Stacking

where:

  • Building_Block_1: The building block with the greater connectivity.
  • Building_Block_2: The building block with the smaller connectivity.
  • Net: The net describing the reticular structure.
  • Stacking: The stacking (for 2D structures) or interpenetrating degree (for 3D structures)

To name the building blocks, I also developed a set of rules. The building block can be described as

Symmetry_Core_Connector_RadicalGroupR1_RadicalGroupR2_RadicalGroupR3_...

where:

  • Symmetry: The general symmetry of the building block. Also represents the connectivity of the building block. For 2D building blocks can be L2, T3, or S4, and for 3D building blocks can be D4.
  • Core: The 4-letter code referring to the building block core.
  • Connector: The type of functional group that will be used to assembly the COF structure. Ex.: NH2, CHO, CONHNH2, etc.
  • RadicalGroupRN: The Nth radical group in the structure. The number of Radical groups will change according to the availability of the core.

Note that every "card" for the building block name is separated by an underline (_) and every "card" for the COF name is separated by a dash (-). This makes it easy to split the COF name into useful information.

Current available Building Blocks

Ditopic Ditopic Tritopic Tetratopic Hexatopic

Current available Connector Groups

Connection groups

Current available R Groups

Functional Groups

Citation

If you find pyCOFBuilder useful in your research, please consider citing the following paper:

F. L. Oliveira and P. M. Esteves, pyCOFBuilder: A Python package for automated creation of Covalent Organic Framework models based on the reticular approach J. Chem. Inf. Model. 2024, 64, 8, 3278–3289 10.1021/acs.jcim.3c01918 DOI

Owner

  • Name: Felipe Lopes de Oliveira
  • Login: lipelopesoliveira
  • Kind: user
  • Location: Rio de Janeiro, BR
  • Company: IBM

PhD Student in chemistry at Federal University of Rio de Janeiro and Research intern at IBM

Citation (CITATION.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
- family-names: "Lopes Oliveira"
  given-names: "Felipe"
  orcid: "https://orcid.org/0000-0002-2231-4567"
- family-names: "Mothé Esteves"
  given-names: "Pierre"
  orcid: "https://orcid.org/0000-0001-6048-4690"
title: "pyCOFBuilder: A python package for automated assembly of Covalent Organic Framework structures"
version: 0.0.9.3
doi: 10.1021/acs.jcim.3c01918
date-released: 2024-03-30
url: "https://doi.org/10.1021/acs.jcim.3c01918"
preferred-citation:
  type: article
  authors:
  - family-names: "Lopes Oliveira"
    given-names: "Felipe"
    orcid: "https://orcid.org/0000-0002-2231-4567"
  - family-names: "Mothé Esteves"
    given-names: "Pierre"
    orcid: "https://orcid.org/0000-0001-6048-4690"
  doi: 10.1021/acs.jcim.3c01918
  journal: "J. Chem. Inf. Model."
  title: "pyCOFBuilder: A python package for automated assembly of Covalent Organic Framework structures"
  year: 2024
  volume: 64
  number: 8
  pages: 3278-3289

GitHub Events

Total
  • Issues event: 18
  • Watch event: 8
  • Delete event: 3
  • Issue comment event: 11
  • Push event: 42
  • Pull request event: 4
  • Fork event: 3
  • Create event: 3
Last Year
  • Issues event: 18
  • Watch event: 8
  • Delete event: 3
  • Issue comment event: 11
  • Push event: 42
  • Pull request event: 4
  • Fork event: 3
  • Create event: 3

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 16
  • Total pull requests: 8
  • Average time to close issues: 5 months
  • Average time to close pull requests: 19 days
  • Total issue authors: 6
  • Total pull request authors: 1
  • Average comments per issue: 0.56
  • Average comments per pull request: 0.0
  • Merged pull requests: 4
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 7
  • Pull requests: 2
  • Average time to close issues: 16 days
  • Average time to close pull requests: 30 days
  • Issue authors: 3
  • Pull request authors: 1
  • Average comments per issue: 0.43
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • lipelopesoliveira (10)
  • JONATHANMAGNO (5)
  • white1102hue (3)
  • Rider99 (1)
  • BurnerJ (1)
  • Yong-Q (1)
  • pgmblc (1)
  • yiziyoki (1)
  • Jubesk (1)
  • KStrutynski (1)
Pull Request Authors
  • lipelopesoliveira (10)
Top Labels
Issue Labels
:signal_strength: enhancement (8) :star2: new feature (3) :bug: bug (1) :bookmark_tabs: documentation (1) :grey_question: question (1)
Pull Request Labels
:signal_strength: enhancement (6) :sunglasses: minor fix (2) :bookmark_tabs: documentation (2) :star2: new feature (1)

Packages

  • Total packages: 1
  • Total downloads:
    • pypi 118 last-month
  • Total dependent packages: 0
  • Total dependent repositories: 0
  • Total versions: 21
  • Total maintainers: 1
pypi.org: pycofbuilder

A package for Covalent Organic Frameworks sturcture creation based on the reticular approach.

  • Homepage: https://github.com/lipelopesoliveira/pyCOFBuilder
  • Documentation: https://lipelopesoliveira.github.io/pyCOFBuilder/docs/_build/html/index.html
  • License: MIT License Copyright (c) 2023, Felipe Lopes de Oliveira Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 0.0.9
    published 11 months ago
  • Versions: 21
  • Dependent Packages: 0
  • Dependent Repositories: 0
  • Downloads: 118 Last month
Rankings
Dependent packages count: 9.8%
Average: 37.1%
Dependent repos count: 64.4%
Maintainers (1)
Last synced: 7 months ago