• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

bercowskya/MastodonAnalysis: Read and analyse Mastodon (FIJI Plugin) .csv and .x ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

bercowskya/MastodonAnalysis

开源软件地址(OpenSource Url):

https://github.com/bercowskya/MastodonAnalysis

开源编程语言(OpenSource Language):

Jupyter Notebook 92.7%

开源软件介绍(OpenSource Introduction):

Paleontologist

Read and analyse Mastodon (FIJI Plugin) .csv and .xml data

Mastodon is a large-scale tracking and track-editing framework for large, multi-view images. It allows you to track cells' dynamics over time and has a very useful and easy to use GUI. In order to use Mastodon, since it works with Big Data Viewer, you need your data to be in HDF5/xml format.

As an output, Mastodon provides either a -mamut.xml or a .csv file which containes, among many features, the XYZ coordinates of each cell and the 3D average intensity of the cells. This package provides the tools to facilitate the organization of the data and enable the easy creation of figures for spatial, temporal and mitotic dynamics of the cells.

[1] Conversion to HDF5 and XML

Before using Mastodon, you need to convert your files in a format that BigData viewer can read. For this, using either Big Data Viewer, BigStitcher or Multiview Reconstruction from Fiji, you can convert your data into HDF5 and XML. HDF5 will save the raw data whereas the XML file will save the metadata and any transformation performed to the raw data.

[2] Using Mastodon

Mastodon is a very user-friendly Tracking plugin from Fiji. It allows interactive visualization and navigation of large images thanks to the BigDataViewer. Any file that can be opened in the BigDataViewer will work in Mastodon (BDV HDF5 file format, KLB, Keller-Lab Blocks file format, N5 file format, ...).

With Mastodon you will be able to track large amount of cells in a manual, semi-automatic or automatic way. The outputs from the tracking are two .csv files: name-edges.csv and name-vertices.csv . The first one contains the information obtained from the spots: mean, median and standard deviation of intensity of all the channels; x, y, z coordinates of the centroid of the spots; spots radius; detection quality for each spot; tags and sub-tags for the spots; the individual ID for each spot; the track ID to which each spot corresponds.

[3] Using MastodonAnalysis.py to analyze Mastodon data

MastodonAnalysis.py is a collection of classes that allows you to obtain tidy arrays with the tracks' and spots' features in an easy way.

Below you can find a description for each of these classes:

Class xml_features:

Gets as input the .xml file from the initial conversion using either BigdataViewer, Bigstitcher or Multiview reconstruction to convert the files into HDF5/XML. This class can be called by using the following line of code:

fts = xml_features(path_xml)

where path_xml has the directory where the path of the .xml and .hdf5 files are. This line of code saves the output of the class xml_features into the object fts. Therefore, if you write fts. and then press Tab you will get all possible outcomes from this class. The list of these outcomes are:

  • channels
  • dimensions
  • width
  • height
  • number of slices
  • x,y,z pixel size
  • coordinate units ($ \mu $ m, mm, etc.)

Class csv_features:

This class allows you to obtain all the information that comes in the .csv files (-vertices and -edges) that are generated with Mastodon once you have computed the features in Mastodon and saved the results in the .csv format. The file called name-vertices.csv contains all the information concerning each individual spot. The file called name-edges.csv contains all the information concerning the links of each spot.

To call this class use the following line of code:

spots = csv_features(path_csv, path_xml)

This line of code saves the output of the class xml_features into the object spots. Therefore, if you write spots. and then press Tab you will get all possible outcomes from this class.

The list of the outcomes are:

  • number of links per spot
  • ID for each individual spot
  • ID of the source spot
  • ID of the target spot
  • Frame
  • Spot gaussian-filtered intensity for each channel
  • Standard deviation for each channel
  • Median for each channel
  • X,Y,Z coordinate in the units from the .xml
  • Track ID
  • Total number of tracks
  • Total number of spots
  • Tags and subtags

Class ordering_tracks:

This class order tracks acoording to whether they divide or not

Class xml_reader:

Class peak_detection:

Class bulk_peak_analysis:

Dependencies

numpy

matplotlib.pylab

pandas

scipy

xml.etree.ElementTree

untangle




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
fvh-P/MastodonStats发布时间:2022-08-18
下一篇:
GlocalDesign/MastodonART: Mastodon.ART Information & Forked Code发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap