Coder Social home page Coder Social logo

montpellierressourcesimagerie / imagej_macros_and_scripts Goto Github PK

View Code? Open in Web Editor NEW
27.0 10.0 15.0 7.2 MB

ImageJ macros and scripts written at the imaging facility MRI

License: MIT License

Python 28.27% Java 19.46% Groovy 0.05% Jupyter Notebook 3.79% ImageJ Macro 48.43% Shell 0.01%
imagej-macros imagej fiji-macro fiji bioimage-analysis image-analysis-workflows jython toolsets imagej-macro imagej-plugins

imagej_macros_and_scripts's Introduction

Imagej macros and scripts

ImageJ macros and scripts written at the imaging facility MRI. Have a look at the project's wiki to get more information about the image analysis tools.

Analyze the clustering behavior of nuclei in 3D images. The centers of the nuclei are detected. The nuclei are filtered by the presence of a signal in a different channel. The clustering is done with the density based algorithm DBSCAN. The nearest neighbor distances between all nuclei and those outside and inside of the clusters are calculated.

The Adipocytes Tools help to analyze fat cells in images from histological section.

The tool uses the Directionality plugin to measure the main direction of the structures in the image and the dispersion. It is used in this context to analyze to which degree the muscles in the image are vertically aligned. The tool allows to run the Directionality plugin in batch-mode on a series of images. The direction-histograms and the measurements are exported as csv-files.

Analyze calcium signals in dendritic spines. The images consist of time-series of calcium signals. Each image contains a selection that marks the point of stimulation. The tool finds the region to analyze close to the point of stimulation. It measures the intensity of the calcium signal in the whole region of interest and in the segmented spots.

Analyze images from second harmonics microscopy of cardiac muscle cells (cardiomyocytes). The tool measures the length of the sarcomeres using the FFT of the image and the degree of organization of the sarcomeres by using the dispersion provided by the Directonality command of FIJI. Although the input images can be stacks only the middle slice is used for the analysis.

The tool measures the areal number density of comets in cells.

This tool allows to analyze morphological characteristics of complex roots. While for young roots the root system architecture can be analyzed automatically, this is often not possible for more developed roots. The tool is inspired by the Sholl analysis used in neuronal studies. The tool creates a binary mask and the Euclidean Distance Transform from the input image. It then allows to draw concentric circles around a base point and to extract measures on or within the circles. Instead of circles, which present the distance from the base point, horizontal lines can be used, which present the distance in the soil from the base-line.

The tool allows to measure the area of the invading spheroïd in a 3D cell invasion assay. It can also count and measure the area of the nuclei within the speroïd.

The tool counts the spots per protoplast. If a third channel is provided it is used to filter out detected protoplasts that do not have exactly one nucleus.

The Arabidopsis Seedlings Tool allows to measure the surface of green pixels per well in images containing multiple wells. It can be run in batch mode on a series of images. It writes a spreadsheet file with the measured area per well and saves a control image showing the green surface that has been detected per well.

Analyze the clustering behavior of nuclei in DAPI stained images. The nuclei are detected as the maxima in the image. Using a threshold intensity value, maxima below the threshold are eliminated. The resulting points are clustered using the DBSCAN algorithm. The nearest neighbor distances between all nuclei, and those outside and inside of the clusters are calculated.

The aim of this tool is to count the hair cells in sections of 200µm from the apex of the cochlear to its base. The tool needs two types of input images: the 3d stack of the hair cells and a binary mask created from this stack by using the spot detection algorithm of Imaris (Bitplane). After the detection of the spots the background has been set to 0 and the volumes of the spots to 255 and the image has been exported as a tif-series. The tool allows to make the MIP-projections of the two kinds of input images in batch mode.

Count the number of axonal projections that cross a given line. The tool detects and counts the maxima along a line-selection, for example a segmented line.

The tool detects and counts the neurons and the neurons with satellite cells.

The tool detects and and counts the spots (or blobs) in an image. It has been created for the counting of bacteria colonies in in Petri-dishes. It separates the spots into two populations and counts each population individually. The populations are separated by the area of the spots. The tool uses expectation maximisation clustering from the weka software.

The tool creates images of 2D-spots for the evaluation and benchmarking of spot detection tools. Two populations of spots with different means and variations of the size can be created in the same image.

Find and segment zones in which the intensity changes over time. Classify the zones into zones with increasing, decreasing, constant, u-shaped and n-shapes intensity profiles.

Measure the relative area of sirius red stained fibrosis. The tool uses the colour deconvolution plugin from Gabriel Landini.

The tool count filaments and measure their areas and forms. It specially measures the geodesic diameter of the objects and its curvature, counts the branches and measures their lengths.

Calculate the area-fraction of the image filled with (septin) filaments.

The tool measures in FLIM-FRET images, for each cell, the total volume of the cell and the volume occupied by values in a given range. It displays the positions of the values in the range in a result image.

The tool detects, counts and measures the foci per nucleus. It reports the number of small, medium sized and big fosci per nucleus. It also measures the area and mean intensity of the nuclei.

In images from transmission electron microscopy of the optic nerve, calculate the g-ratio of the axons. The pg-factor and the ag-factor will be measured. The pg-factor is the inner perimeter of the neuron divided by the outer perimeter including the myelin. The ag-factor is the square-root of the area of the inner surface divided by the area of the outer surface including the myelin.

The Growth Cone Visualizer Software is an imageJ-marco toolset that visualizes the morphological variability of neuronal growth cones.

The tools help to compare the height in the z-dimension of the signals in different channels. It calculates the heights normalized by the maximum height in a reference channel. Only places where the signal is not zero and the reference channel maximal are taken into account.

The tool segments the nuclei in the dapi or hoechst channel of the image and measures the mean intensity per nuclei in the other channels of the image. The macro can be applied recursively to all images in a folder and its subfolders.

The tool calculates the ratio of the intensity in the nuclei and the cytoplasm. It needs two images as input: the cytoplasm channel and the nuclei channel. The nuclei channel is used to segment the nuclei. The measurements are made in the cytoplasm channel after the background intensity has been corrected.

The tool counts the number of spots (foci) per nucleus and measures the intensity, form, size and position of the spots. It also optionally measures the intensity in the membrane of the nucleus.

Measure the signal in a channel in areas defined by the stained nuclei in another channel. Remove the bright spots when measuring the signal.

The toolset helps to segment neurites, measure the distances on the neurites to the closest soma, assign each neurite to a soma and to measure the FISH-signal on the neurites.

The tool measures the membranes and nuclei, of cells segmented with cellpose, in all channels but the nuclei-channel.

The tool allows to segment cells in non fluorescent microscopy images using the trainable WEKA segmentation. It allows to run a preprocessing that crops and converts images, to apply a classifier created with the Trainable Weka Segmentation plugin to a folder containing images and to open the images in a folder as a stack in the "Trainable Weka Segmentation plugin" to create a classifier.

Calculate the first derivative of a plot and the zero-crossings of the derivate.

The tool takes a results table of tracking data (as created by Trackmate) and calculates the difference of the distances between the start point of the track and a given point c and the end point of the track and c, i.e. how much the particle has moved away from c (negative if it moved towards c).

The tool allows to measure the diameter of the root and the density of the root hair.

The Skin Tools allow to analyze masks of skin tissue that touch the right and left border of the image. The length of the lower border line is measured. For each extremum on the lower border line of the mask the length of a vertical line across the mask is measured. The advanced analysis allows to measure the interdigitation index and the filaggrin thickness. The filaggrin thickness is calculated using a number of random lines perpendicular to the border across the mask.

The tools allow to semi-automatically segment dendritic spines in 3D+t images and to measure their volumes and the intensities of the signal within in different channels over time.

The tool counts the number of co-localized spots in two channels over time. It also exports the intensity of each spot over time.

The tool detects spots and measures the nearest neighbour distances between the spots in the image.

The tool allows to simulate particles moving away from a center, moving towards a center or particles diffusing around a center.

The tool allows to track the ends of fluorescently labelled microtubules, which are becoming shorter and to measure the speed of the movement of each end. It also creates kymograms and plots distance-per-time.

The tool helps to measure the transfection efficiency. It reports the percentage of transfected cells in the image. It has tools to manually correct the segmented nuclei (merge and split).

Tools to estimate the width-profile of an object given as a binary mask image. Calculate the width profile of the object as local thickness, as voronoi distance between two parts of the contour-line, perpendicular to the axis of inertia or at regular distances using rays perpendicular to a centerline segment.

The tool corrects a constant drift in a time-series. When the objects in the images move, drift-correction can be difficult. Here a second channel is provided, in which there are no moving objects, however in order to be able to acquire images fast enough, for the second channel only the images of the first and the last frame are taken.

The Wound Healing Coherency Tool can be used to analyze scratch assays. It measures the area of a wound in a cellular tissue on a stack of images representing a time-series.

The MRI Wound Healing Tool can be used to analyze scratch assays. It measures the area of a wound in a cellular tissue on a stack of images representing a time-series.

Workflow and Conversion Toolsets

Because of the big size of the images the microscope cuts images along the time dimension into multiple files each with a number of frames. This tool will for each position and wavelength convert the image. It will do a z-projection, concatenate all time-chunks and save the resulting image. The user has to provide the number of slices in the z-dimension. The pixel size and time interval can automatically be set when provided by the user.

The tool converts images taken with the Opera into hyperstacks. The image names are in the form r02c04f01p01-ch1sk1fk1fl1.tiff where r is the row, c the column, f the field, p the z-position and ch the channel. The tool converts all images in the input folder.

The tools allow to convert .lei or .lif and .lsm files to tif-files. It works on a folder containing the input images. Results are written into a sub-folder tif. Each channel of a multi-channel file is saved separately. Besides this an rgb-snapshot of the image is saved. A z-projection can optionally be applied to the images.

The tool allows to open for each image a second image with the same name from another folder. It displays the two images next to each other. It provides navigation through the list of images.

Randomly copy files from a number of input folders to create a test dataset.

The Muvi-SPIM-Convert_Tools help to convert your hdF5 files comming from a MuVi-SPIM setup.

The tools converts images in the .nd format to ImageJ hyperstacks. The user selects an .nd file. An image can consist of multiple positions, frames, z-slices and channels. Each position is converted into an ImageJ hyperstack and written into a subfolder of the folder containing the input image.

The tool exports rectangular regions, defined with the NDP.view 2 software from the highest resolution version of the image and saves them as tif-files.

The tool stitches images from the Opera Phenix HCS System. It reads the Index.idx.xml file to pre-arrange the images and then stitches and fuses them using the Grid/Collection stitching-plugin. Images are stitched by plane and channel. Z-stacks and multi-channel images can optionally be created. Projections can also be create.

Single Plugin Tools

The tool calculates the discrete histogram entropy H(X), where w is the width of the i-th histogram bin and f the frequency of the value xi.

The tool measures the mean distance between the minima in the profile plot.

The DoG-filter is a bandpass filter. It is calculated as: Gauss_s1(img) - Gauss_s2(img) where img is the input image, Gauss_s1 is a Gaussian-filter with sigma s1 and Gauss_s2 is a Gaussian-filter with sigma s2 (s2>s1).

The tool finds the background intensity value and subtract it from the current image. It searches for the maximum intensity value around pixels that are below or equal to the minimum intensity in the image plus an offset.

The tool allows to create a sub-population of your data by randomly copying a configurable portion of lines from the active table to a new table.

The tool reverses the order of the frames in a hyperstack.

Scripts

Allows to segment a batch of mitotic spindles and extract measurements from a microtubules staining.

The tool copies the images in a stack into a new image and places them in a spiral order, i.e. the first image is in the middle, the second right of the first, the third above the second, the fourth left of the third, and so on.

Macros

The macro calls the Measure Roi plugin for each selected ROI in the roi-manager or for all the ROIs in the roi-manager, if none are selected.

imagej_macros_and_scripts's People

Contributors

c-h-benedetti avatar jublanc avatar l-tellez avatar lesliebancel avatar nnafati avatar renaud-lebrun avatar sylvainderossi avatar virginiegeorget avatar volker-baecker avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

imagej_macros_and_scripts's Issues

Intensity_Ratio_Nuclei_Cytoplasm.ijm

Thank you for your work. I followed your instructment to install Intensity_Ratio_Nuclei_Cytoplasm.ijm, and saved it under macros/toolsets. But when I chose the tool, the buttons of "C", "N", "B" did not show, so I can not continue the analysis...

Detection of myelin

Hi Volker,

I ran your g-ratio macro on a few of my images, and I have been surprised by the results of the myelin detection: the area that is displayed in my images seem quite far from the myelin I actually see around the axons. At first I thought my image might be the problem so I tried with one with fewer axons that are more appart from each other, but I still have that issue (axon selections in green and myelin selection in blue):
Gratio plugin tentative1b
image

Would there be a parameter I could modify to correct that issue? Or should I only use the macro on images with round, very well defined axons?

Thanks a lot for your help.

Best regards

JD

Intensity_Ratio_Nuclei_Cytoplasm.ijm

Hello,

I wanted to try your tool to automate some of my image analysis, however I am unable to download the toolset from the link on your page.

Thanks

Having trouble opening up macro

For some reason, after I save the intensity_ratio_nuclei_cytoplasm.ijm macro into my imageJ, the toolset does not change to the ones that is shown on the instruction page. Do you know what I may be doing wrong? Thank you!

MRI_Root_Hair_Tools

Dear Volker,

I am currently experimenting with the MRI_Root_Hair_Tools.
I have however trouble running it with the test pictures:

While using the first picture (the second one is just black) with the recommended values I get the error:

Unbenannt
Unbenannt1
Unbenannt2

I understand that the application is from 2018, but maybe you can still help me.

Thank you for your time and best wishes

Undefined variable

Hello,
I'm trying to run the MRI_g_ratio_Tools and when using the"f" button I have the following error message:
Error: Undefined variable in line 153:

. create ( title ) ;

image

I didn't modify the original macro.
Would you know how I could correct that issue?

Many thanks.

Best regards

Unrecognized Command: "Connected Components Labeling"

I am trying to run the MRI_g_ratio_Tools and I continue to get this error code when running the outer boarder recognition step ("f"). I haven't edited the source code for the plug-in but I have tried saving the plugin (grow-regions) and macro (MRI...) in different folders, assuming Fiji isn't reading the files correctly. I don't fully understand the error so I am unsure how to solve. Any recommendations are greatly appreciated. Debug window attached here.

Debug_Connected Components Labeling.csv

Thanks!

issue

Hello Volker
To access the segmentation quality, I need to do the NNA (nearest neighborhood analysis) for each cell type.
I did clustering with R package Seurat, QPath, and Polylux plugin for ImageJ2.
And now I know where my cells are.
It is the first approach.

Or I can do the clustering with your tool and then access the NN distance.

I receive it when I start clustering (the "c" button on the plugin).

image

image

And after clustering with Seurat, QPath, and Polylux I received it
image

These are, for example, Metastasis cells defined by their transcripts.

Error Message for 'f' function

Hello,

This tool is super helpful but I have a few issues with it. I am wondering 1) how can I edit the individual axon diameters, as they are accurate about 70% of the time but many require small adjustments. I tried using the brush tool but it's not working for me, I think I'm missing something. And 2) the 'f' function in the macro (to measure myelin diameter /outer diameter) is not working for me at all. Each time I try to use it I get the same error message, attached here. I followed the installation instructions exactly. Is there some updated version of the macro?

Thanks so much for your help,
Taylor
wt sciatic error

can not recognize the nuclei of image

hi, Volker, thanks for your work! I have some issues when using the Intensity Ratio Nuclei Cytoplasm Tool. following your guide, I loaded the two images of 8 bit, and then set the names, as you could see.
image
image
but when I run 'S' button, it can not recognize the nuclei of the image like your guide, and the result of intensity, area of cytoplasm and nuclei do not make sense. Do you know how I could resolve it? thanks a lot.
image

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.