Coder Social home page Coder Social logo

toppe's Introduction

TOPPE Matlab toolbox

TOPPE is a modular framework for rapid prototyping of pulse sequences on General Electric MRI scanners. For an overview, see https://toppemri.github.io/.

TOPPE can be used on its own, or as the GE interpreter for Pulseq; the latter allows MR sequences to be ported across vendor platforms (currently, Siemens and GE are supported). For more information on converting to/from Pulseq, see https://github.com/toppeMRI/PulseGEq.

This repository contains various basic functions for writing and reading TOPPE scan files, that are then simply copied to the scanner host computer and loaded by the TOPPE interpreter for execution. The interpreter (EPIC source code) is hosted in a separate repository -- for access, contact [email protected].

Example sequence: 3D GRE

The examples/3DGRE folder contains the Matlab function gre.m, that creates a set of TOPPE files that together define a 3D RF-spoiled gradient-echo sequence.

For a detailed explanation of these files, see Files.md.

Note: In TOPPE, raster time (sample dwell time) is 4us for both RF and gradient waveforms.

Create the sequence files

  1. Get this toolbox and enter the example directory
$ git clone [email protected]:toppeMRI/toppe.git
>> cd examples/3DGRE
  1. (optional) Edit gre.m to set the desired FOV and matrix size, and scanner hardware specs.
  2. Create the GRE scan files. In Matlab:
>> addpath ../..   % folder containing the +toppe package
>> gre;

This creates the files modules.txt, scanloop.txt, seqstamp.txt, and two .mod files (tipdown.mod and readout.mod). The return value is a struct containing hardware parameters, that is needed for plotting.

Plot the sequence

>> iStart = 1; iStop = 2;  % row numbers in scanloop.txt
>> toppe.plotseq(iStart, iStop, sys);

GRE

Plot the individual .mod files

The .mod file format is a custom format that is used for both RF excitation, readout, and gradient-only modules. To plot the contents of these files, do:

>> toppe.plotseq('tipdown.mod');
>> toppe.plotseq('readout.mod', 'gradcoil', 'xrm');

excitation module readout module

Preview the scan

>> nModulesPerTR = 2;
>> toppe.playseq(nModulesPerTR, sys, 'tpause', 0.2, 'nTRskip', 10);

You should observe that the phase- and partition-encoding gradient amplitudes, and the RF phase, are changing.

Execute this sequence on the scanner

  1. Place modules.txt, scanloop.txt, seqstamp.txt, and the two .mod files in /usr/g/research/pulseq/gre/ on the scanner host computer.
  2. Copy the file toppe0.entry to /usr/g/research/pulseq/ on scanner host. This is the entry point for the interpreter.
  3. Run the interpreter. For details, see the README file in the interpreter source code repository




toppe's People

Contributors

jfnielsen avatar mwhaskell avatar moedn 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.