{"id":26,"date":"2014-09-11T16:25:52","date_gmt":"2014-09-11T16:25:52","guid":{"rendered":"http:\/\/katpyxa.info\/feedbacks\/?p=26"},"modified":"2017-04-17T08:57:01","modified_gmt":"2017-04-17T08:57:01","slug":"why-another-kymograph-imagej-plugin","status":"publish","type":"post","link":"https:\/\/katpyxa.info\/feedbacks\/?p=26","title":{"rendered":"Why another kymograph ImageJ plugin?"},"content":{"rendered":"<p><a title=\"Kymographs\" href=\"http:\/\/fiji.sc\/Generate_and_exploit_Kymographs\" target=\"_blank\">Kymograph<\/a> is a useful tool to transform a\u00a0movie\u00a0containing\u00a0particles movement into\u00a0a single picture\/figure. It is convenient when analyzing vesicles movement in cells, axons\/dendrites of neurons, cars movement on roads. It shows particles&#8217;\u00a0speed, direction, intensity, etc. \u00a0What it does is just plotting how intensity is changing over time along some line or curve.\u00a0<!--more-->Ideally software that makes kymograph should provide following options:<\/p>\n<ol>\n<li>The line along which kymograph is generated can be straight, polyline, freehand curve, etc<\/li>\n<li>One should be able to change the width of the line.<\/li>\n<li>There should be an option to choose, whether you want to generate average of maximum intensity perpendicular to the line at one frame.<\/li>\n<li>It should handle transformation of length\/width correctly.<\/li>\n<\/ol>\n<p>Option number 3 is quite useful in applications, since it allows to highlight moving particles that are usually bright (see last picture below).<\/p>\n<p>There are multiple choices of how one can generate kymograph from a movie using ImageJ\/FIJI (being quite popular free scientific image analysis software), but there is no possibility to fulfill all four point in the list above.<\/p>\n<p>One\u00a0option is to use the native <em>Reslice<\/em> option of ImageJ (it is described <a title=\"here\" href=\"http:\/\/fiji.sc\/Generate_and_exploit_Kymographs\" target=\"_blank\">here<\/a>). \u00a0But the line can be only 1 pixel wide, so above points 2)-3) are not fulfilled.<\/p>\n<p>Most often used alternative\u00a0is great (free, open source and very well documented)\u00a0<a title=\"MultipleKymograph\" href=\"http:\/\/www.embl.de\/eamnet\/html\/body_kymograph.html\" target=\"_blank\">MultipleKymograph<\/a> plugin originally developed in EMBL. It is a very nice plugin, handling curves of different width.\u00a0 And second thing is that there is a minor bug in the way the width of the line\/curve is handled. To describe it, here is a drawing:<\/p>\n<p><a href=\"https:\/\/katpyxa.info\/feedbacks\/wp-content\/uploads\/2014\/09\/multiplekymo.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/katpyxa.info\/feedbacks\/wp-content\/uploads\/2014\/09\/multiplekymo.png\" alt=\"\" width=\"370\" height=\"304\" class=\"aligncenter size-full wp-image-27\" srcset=\"https:\/\/katpyxa.info\/feedbacks\/wp-content\/uploads\/2014\/09\/multiplekymo.png 370w, https:\/\/katpyxa.info\/feedbacks\/wp-content\/uploads\/2014\/09\/multiplekymo-300x246.png 300w\" sizes=\"auto, (max-width: 370px) 100vw, 370px\" \/><\/a><\/p>\n<p>If you draw a line (thick black line in <strong>A<\/strong>) of some width (represented by thin red lines), the scan along the line always happens in the direction of 135 (=90+45) degrees with respect to the\u00a0current movie\/picture orientation\u00a0(green and red lines). It is fine if the line is under 45 degrees (like in <strong>A<\/strong>), but if your line is at 90 degrees (like in <strong>B<\/strong>) or even 135 (case <strong>C<\/strong>), than the effective scanning width would be\u00a0less. That can lead to some artifacts. But it is a great plugin and actually, you can overcome this issue by just flipping your movie horizontally, in case you see that the overall direction of the line is close to 135 degrees.<\/p>\n<p><strong>Update:<\/strong> The third option is <a title=\"updated version\" href=\"http:\/\/biop.epfl.ch\/TOOL_KYMOGRAPH.html\" target=\"_blank\">updated version<\/a> of MultipleKymograph plugin, which can handle kymographs of various width and average, maximum, minimum or sum of intensity with straight or polylines. Also the 135 degree artifact is fixed there, so it is a great and ready to use tool!<\/p>\n<p>We decided to make\u00a0<a title=\"KymoResliceWide\" href=\"https:\/\/github.com\/ekatrukha\/KymoResliceWide\/wiki\" target=\"_blank\">KymoResliceWide<\/a> plugin for ImageJ, to handle these four requirements. Here are example kymos of vesicles moving along the axon of neuron made using different methods\u00a0for comparison\u00a0:<\/p>\n<p><a href=\"https:\/\/katpyxa.info\/feedbacks\/wp-content\/uploads\/2014\/09\/comparison.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/katpyxa.info\/feedbacks\/wp-content\/uploads\/2014\/09\/comparison.png\" alt=\"\" width=\"800\" height=\"470\" class=\"aligncenter size-full wp-image-28\" srcset=\"https:\/\/katpyxa.info\/feedbacks\/wp-content\/uploads\/2014\/09\/comparison.png 800w, https:\/\/katpyxa.info\/feedbacks\/wp-content\/uploads\/2014\/09\/comparison-300x176.png 300w, https:\/\/katpyxa.info\/feedbacks\/wp-content\/uploads\/2014\/09\/comparison-620x364.png 620w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/a><br \/>\nIt should be noted that in this case the line is indeed close to 135 degrees and artifacts\u00a0of\u00a0<a title=\"MultipleKymograph\" href=\"http:\/\/www.embl.de\/eamnet\/html\/body_kymograph.html\" target=\"_blank\">MultipleKymograph<\/a>\u00a0are\u00a0exaggerated. But also note the difference between the average and maximum intensity projections. Due to the wider line\u00a0and Maximum intensity projection a lot of background movements are visible.<\/p>\n<p>Also you can add line ROI to the overlay of original picture to mark an area which was already analyzed.<\/p>\n<p>So well, this is why <a title=\"another kymo plugin\" href=\"https:\/\/github.com\/ekatrukha\/KymoResliceWide\/wiki\" target=\"_blank\">another kymo plugin<\/a> with <a title=\"source code\" href=\"https:\/\/github.com\/ekatrukha\/KymoResliceWide\" target=\"_blank\">source code<\/a> available.<\/p>\n<p><strong>Upd:<\/strong> Thanks to Dr. Arne Seitz reply, there is the newer version of <a title=\"MultipleKymograph\" href=\"http:\/\/biop.epfl.ch\/TOOL_KYMOGRAPH.html\" target=\"_blank\">MultipleKymograph<\/a> plugin that I didn&#8217;t know about which generates kymos with average, maximum, minimum and sum intensity and lacks &#8216;135 degrees&#8217; artifact.<\/p>\n<p><strong>Upd2:<\/strong> Now Kymoreslicewide supports HyperStacks, RGB images, etc.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Kymograph is a useful tool to transform a\u00a0movie\u00a0containing\u00a0particles movement into\u00a0a single picture\/figure. It is convenient when analyzing vesicles movement in cells, axons\/dendrites of neurons, cars movement on roads. It shows particles&#8217;\u00a0speed, direction, intensity, etc. \u00a0What it does is just plotting how intensity is changing over time along some line or curve.\u00a0<\/p>\n","protected":false},"author":1,"featured_media":28,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,3,8],"tags":[],"class_list":["post-26","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-imagej","category-science","category-software"],"_links":{"self":[{"href":"https:\/\/katpyxa.info\/feedbacks\/index.php?rest_route=\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/katpyxa.info\/feedbacks\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/katpyxa.info\/feedbacks\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/katpyxa.info\/feedbacks\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/katpyxa.info\/feedbacks\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=26"}],"version-history":[{"count":10,"href":"https:\/\/katpyxa.info\/feedbacks\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":476,"href":"https:\/\/katpyxa.info\/feedbacks\/index.php?rest_route=\/wp\/v2\/posts\/26\/revisions\/476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/katpyxa.info\/feedbacks\/index.php?rest_route=\/wp\/v2\/media\/28"}],"wp:attachment":[{"href":"https:\/\/katpyxa.info\/feedbacks\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/katpyxa.info\/feedbacks\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/katpyxa.info\/feedbacks\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}