Git Product home page Git Product logo

huyuhuster / fullrmc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bachiraoun/fullrmc

0.0 0.0 0.0 148.4 MB

It's a Reverse Monte Carlo (RMC) package, designed with Artificial intelligence and Reinforcement Machine Learning algorithms to solve atomic/molecular model structure by moving its atoms positions until they have the greatest consistency with a set of experimental data and definitions.

License: GNU Affero General Public License v3.0

Python 86.37% Cython 13.63%

fullrmc's Introduction

This git repository is only updated with new releases of fullrmc. A private repository is used for development.

fullrmc

FUndamental Library Language for Reverse Monte Carlo or fullrmc is a molecular/atomic stochastic fitting platform to reverse modeling experimental data. fullrmc is not a standard RMC software but exceeds in its capabilities and functionalities traditional RMC and Metropolis-Hastings algoritm. Therefore RMC appellation in fullrmc, is not accurate but it’s retained to respecting the community terminology. RMC is probably best known for its applications in condensed matter physics and solid state chemistry. RMC is used to solve an inverse problem whereby an atomic model is adjusted until its atoms position have the greatest consistency with a set of experimental data. fullrmc is a python package with its core and calculation modules optimized and compiled in Cython/c. fullrmc’s Engine sub-module is the main module that contains the definition of ‘Engine’ which is the main and only class used to launch the stochastic calculation. fullrmc is a fully object-oriented package where everything can be overloaded allowing easy development, implementation and maintenance of the code. It's core sub-package and modules are fully optimized written in cython/C. fullrmc is unique in its approach, among other functionalities:

  1. Atomic and molecular systems are supported.
  2. All types (not limited to cubic) of periodic boundary conditions systems are supported.
  3. Atoms can be grouped into groups so the system can evolve atomically, clusterly, molecularly or any combination of those.
  4. Every group can be assigned a different move generator (translation, rotation, a combination of moves generators, etc).
  5. Selection of groups to perform moves can be done manually OR automatically, randomly OR NOT !!
  6. Supports Artificial Intelligence and Reinforcement Machine Learning algorithms.

fullrmc on the cloud

  • Reserve your virtual machine(s) with the needed requirements (cpus, memory, storage) and run fullrmc using its advanced user interface.
  • Features such as multiframe computing including all of the statistical, mesoscopic and nanoscopic computations are only available in the cloud version of fullrmc.
  • A fullrmc virtual machines are multi-users and multi-sessions ready. The owner of the machine can allow users to sign up and run their dersired calculations.

News

  • fullrmc is now available on the cloud with an advanced user interface
  • fullrmc cloud version provides additional features that are not open sourced
    • Mixture models: Using multiframe meta-structure, fullrmc cloud allows to model complex systems such as multi-phase systems, distribution of nanoparticles in solution, etc.
    • Statistical calculation: using the concept of multiframe, fullrmc enrichs the single box approach with the statistical approach where multiple frames can be fit simulatenously using the same or different stochastic approach
    • Mesoscopic: a mesoscopic system is a fullrmc multiframe atomic system where atoms from different subframes are considered far enough from each other to have any cross correlation showing in the experimental data.
    • Nanoscopic: a nanoscopic system is like a mesoscopic one but correlation between atoms from different subframes is not negligeable.
    • Coarse grains: multiframe coarse grain computation is enabled in the nanoscopic meta-structure conditions.

Ask your questions

https://groups.google.com/forum/#!forum/fullrmc

Installation

fullrmc requires:
  • Python (>= 2.7 and < 3) Starting from fullrmc 4.x.y python 3 is supported
  • NumPy (lowest version tested is 1.7.1)
  • cython (lowest version tested is 0.21.1)
  • matplotlib (lowest version tested is 1.4)
  • pdbparser (lowest version tested is 0.1.2 - 0.1.3 is used starting from fullrmc 0.3.0 - 0.1.4 is used starting from fullrmc 1.0.0 - 0.1.5 is used starting from fullrmc 1.0.1 - 0.1.7 is used starting from fullrmc 4.0.0 - 0.1.8 is used starting from fullrmc 4.0.2)
  • pysimplelog (lowest version tested is 0.1.7 - 0.1.4 is used starting from fullrmc 1.2.0 - 2.0.0 is used starting from fullrmc 4.0.0)
  • pyrep (lowest version tested is 1.0.2 is used starting from fullrmc 2.0.0 - 1.0.3 is used starting from fullrmc 3.0.0 - 1.0.4 is used starting from fullrmc 3.1.0 - 3.1.0 is used starting from fullrmc 4.0.1 - 3.2.0 is used starting from fullrmc 4.0.2)
  • pylocker (3.0.0 is used starting from fullrmc 4.0.2)
Installation using pip:

numpy and cython must be installed and updated manually.

pip install -U "numpy>=1.17.4"
pip install -U "cython>=0.29.14"
pip install fullrmc
Installation by cloning github repository

Ensure all fullrmc required packages are installed and up to data by executing the following python script:

# check whether all packages are already installed
from __future__ import print_function
from pkg_resources import parse_version as PV
for name, ver in [('numpy'      ,'1.17.4') ,
                  ('cython'     ,'0.29.14'),
                  ('pyrep'      ,'3.2.0') ,
                  ('pdbparser'  ,'0.1.8') ,
                  ('pysimplelog','2.0.0') ,
                  ('pylocker'   ,'3.0.0') ,
                  ('matplotlib' ,'3.1.2'  )]:
    try:
        lib = __import__(name)
    except:
        print('%s must be installed for fullrmc to run properly.'%(name))
    else:
        if PV(lib.__version__) < PV(ver):
            print('%s installed version %s is below minimum suggested version %s. Updating %s is highly) recommended.'%(name, lib.__version__, ver, name)
        else:
            print('%s is installed properly and minimum version requirement is met.'%(name))

Locate python's site-packages by executing the following python script:

import os
os.path.join(os.path.dirname(os.__file__), 'site_packages')

Navigate to site_packages folder and clone git repository from command line:

cd .../site_packages
git clone https://github.com/bachiraoun/fullrmc.git  

Change directory to .../site_packages/fullrmc/Extensions. Then compile fullrmc extensions from command line as the following:

cd .../site_packages/fullrmc/Extensions
python setup.py build_ext --inplace

Online documentation

http://bachiraoun.github.io/fullrmc/

Citing fullrmc

  • Bachir Aoun; Fullrmc, a Rigid Body Reverse Monte Carlo Modeling Package Enabled with Machine Learning and Artificial Intelligence; J. Comput. Chem. (2016), 37, 1102–1111

  • Bachir Aoun; Stochastic atomic modeling and optimization with fullrmc; J. Appl. Cryst. (2022). 55, 1664-1676

Authors and developers

fullrmc's People

Contributors

bachiraoun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.