Giter Club home page Giter Club logo

Features

The Spin-Scenario is an intuitive, flexible and unique scripting environment for realistic MR simulations.

  • General, fast MR simulations
    It uses accelerated Liouville space computing model being compatible with MR imaging and MR spectroscopy.

  • Flexible scenario scripting
    The powerful Lua bindings offer users a flexible, intuitive and unique scripting environment for the creation of MR scenarios.

  • Elegant pulse sequence programming
    The specially designed programming syntax enables a clear, concise, and accurate description of pulse sequences.

  • Efficient pulse optimization
    The build-in optimal control module provides an easy way for optimization of shaped pulses as well as cooperative pulses.

Quick Start

  • Open the terminal and start the environment with spin-scenario.
  • To run a scenario script, simply use the command like load('fid.lua').
  • To switch to old script, use the up and down key.
  • To quit the program, use q.

Alternatively, users may also execute the scenario script in terminal like spin-scenario fid.lua, just make sure that the script file locates at the current path of the terminal.

As a start, we show a simple FID sequence as follow:

        -- scenario A: spin system generation.
        B0{"500 MHz"}
       local acrylic =spin_system{
                spin = "1H 1H 1H",
              zeeman = "2 scalar 88.42 Hz 3 scalar 214.9 Hz",
           jcoupling = "1 2 scalar 10.4 Hz 1 3 scalar 1.2 Hz 2 3 scalar 17.4 Hz"}
        -- scenario B: pulse sequence assembly.
        local rf45 =hardRF{beta =45}
        local adc =acq{np =1024, sw =500}

        local fid =seq{rf45, adc}
        -- scenario C: experimental study.
        result =run{exp =fid, spinsys =acrylic}

More scenario examples can be found in examples.

Documentation

Spin-Scenario Documentation http://spin-scenario.rtfd.io/.

Contributing to Spin-Scenario

Spin-Scenario is provided as an open-source project under the Apache License 2.0, and will be continuously developed for highly usability as well as high-performance.

Spin-Scenario is mainly written and maintained by Yan CHANG ([email protected]). To make it better, you are welcome to contribute in many ways to help: helping with bugs and feature requests, discussing the design and the API, uploading scenario scripts and writing low-level code.

To cite Spin-Scenario using a BibTeX entry:

    @article{CHANG2019,
    title = "Spin-Scenario: A flexible scripting environment for realistic MR simulations",
    journal = "Journal of Magnetic Resonance",
    volume = "301",
    pages = "1 - 9",
    year = "2019",
    issn = "1090-7807",
    doi = "https://doi.org/10.1016/j.jmr.2019.01.016",
    url = "http://www.sciencedirect.com/science/article/pii/S1090780719300229",
    author = "Yan Chang and Daxiu Wei and Huihui Jia and Cecilia Curreli and Zhenzhou Wu and Mao Sheng and Steffen J. Glaser and Xiaodong Yang"
    }

Acknowledgments

This work was supported by National Natural Science Foundation of China 11505281, 11675254.

Yan Chang's Projects

spin-scenario icon spin-scenario

a flexible scripting environment for realistic MR simulations

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.