RÓïÑÔÖÐÎÄÍø

 ÕÒ»ØÃÜÂë
 Á¢¼´×¢²á
²é¿´: 603|»Ø¸´: 0

RÓïÑÔ´¦Àí.zimÎļþ£¨ZooImageÔªÊý¾Ý/¶ÈÁ¿£©zimExtractAll()º¯Êý-ÖÐÓ¢ÎĶÔÕÕ°ïÖúÎĵµ

[¸´ÖÆÁ´½Ó]
·¢±íÓÚ 2020-10-6 07:30:52 | ÏÔʾȫ²¿Â¥²ã |ÔĶÁģʽ
        RÓïÑÔ´¦Àí.zimÎļþ£¨ZooImageÔªÊý¾Ý/¶ÈÁ¿£©zimExtractAll()º¯Êý-ÖÐÓ¢ÎĶÔÕÕ°ïÖúÎĵµ

                                         By MicroRbt Martinez PhD

RÓïÑÔº¯ÊýÃû£ºzimExtractAll()
RÓïÑÔº¯Êý¹¦ÄÜ£º´¦Àí.zimÎļþ£¨ZooImageÔªÊý¾Ý/¶ÈÁ¿£©
À´×Ô×ÊÔ´¿â£ºCRAN
zimExtractAll()º¯ÊýËùÊôRÓïÑÔ°ü£ºËùÔÚR°ü¾ßÌåÃû³Æ¡¢°ü¹¦ÄܵÄÖÐÓ¢ÎÄË«ÓïÃèÊö¼ûÕýÎĺóÃæ'--ËùÔÚRÓïÑÔ°üÐÅÏ¢--'²¿·Ö¡£

ÃèÊö-----Description-----

Various fonctions to manipulate ZooImage Metadata in .zim format (either '*.zim', or '*_datX.zim' files).
¶àÖÖ¹¦ÄÜÒÔ.zim¸ñʽ£¨¡° * .zim¡±»ò¡° * _datX.zim¡±Îļþ£©²Ù×÷ZooImageÔªÊý¾Ý¡£


ʹÓ÷½·¨-----Usage-----

zimCreate(zimfile, template = NULL, edit = TRUE, editor =
getOption("fileEditor"), wait = FALSE)
zimEdit(zimfile, editor = getOption("fileEditor"), wait = FALSE, ...)
zimMake(dir = ".", pattern = extensionPattern("tif"), images =
list.files(dir, pattern))
zimExtractAll(zipdir = ".", zipfiles = zipList(zipdir), path = NULL,
replace = FALSE)
zimUpdateAll(zipdir = ".", zipfiles = zipList(zipdir), zimdir = NULL,
check.zim = TRUE)
isZim(zimfile)
zimVerify(zimfile, is.dat1 = hasExtension(zimfile, "_dat1.zim"),
check.table = FALSE)
zimDatMakeFlowCAM(zimfile)
zimDatMakeFlowCAMAll(path = ".", zimfiles = NULL)

²ÎÊý-----Arguments-----

²ÎÊýzimfile½éÉÜ: a .zim file.
.zimÎļþ¡£

²ÎÊýzimfiles½éÉÜ: a list of .zim files to use.
ҪʹÓõÄ.zimÎļþÁÐ±í¡£

²ÎÊýtemplate½éÉÜ: a .zim template to start with, if the .zim file does not exist yet.
Èç¹û.zimÎļþÉв»´æÔÚ£¬ÔòÒÔ.zimÄ£°å¿ªÍ·¡£

²ÎÊýedit½éÉÜ: do we edit the .zim file that we just created?
ÎÒÃÇÈçºÎ±à¼­¸Õ¸Õ´´½¨µÄ.zimÎļþ£¿

²ÎÊýeditor½éÉÜ: a program to use for editing the .zim file.
ÓÃÓڱ༭.zimÎļþµÄ³ÌÐò¡£

²ÎÊýwait½éÉÜ: do we wait that the file is edited? In this case, R is frozen until the editor is closed.
ÎÒÃǵȴýÎļþ±»±à¼­Âð£¿ÔÚÕâÖÖÇé¿öÏ£¬R½«¶³½áÖ±µ½¹Ø±Õ±à¼­Æ÷¡£

²ÎÊýdir½éÉÜ: a directory where .zim files will be created.
½«ÔÚÆäÖд´½¨.zimÎļþµÄĿ¼¡£

²ÎÊýpattern½éÉÜ: the pattern matching for automatically listed images that require a .zim file.
×Ô¶¯ÁгöµÄÐèÒª.zimÎļþµÄͼÏñµÄģʽƥÅä¡£

²ÎÊýimages½éÉÜ: the list of images requiring a .zim file (either all image matching 'pattern' in 'dir', or provide your own listing here).
ÐèÒª.zimÎļþµÄͼÏñÁÐ±í£¨¡° dir¡±ÖÐËùÓÐÓë¡° pattern¡±Æ¥ÅäµÄͼÏñ£¬»òÔÚ´Ë´¦ÌṩÄú×Ô¼ºµÄÁÐ±í£©¡£

²ÎÊýzipdir½éÉÜ: a directory where to find .zip files.
²éÕÒ.zipÎļþµÄĿ¼¡£

²ÎÊýzipfiles½éÉÜ: a list of .zip files (by default, all .zip files in 'zipdir').
.zipÎļþÁÐ±í£¨Ä¬ÈÏÇé¿öÏ£¬¡° zipdir¡±ÖеÄËùÓÐ.zipÎļþ£©¡£

²ÎÊýpath½éÉÜ: the path where to extract zims. If NULL, it is computed from zipdir: it is either the same path, or the parent directory if last directory is named '_raw'.
ÌáÈ¡zimsµÄ·¾¶¡£Èç¹ûÊÇNULL£¬Ôò´Ózipdir¼ÆËãµÃ³ö£ºËüÊÇÏàͬ·¾¶£¬»òÕßÈç¹û×îºóÒ»¸öĿ¼ÃûΪ¡° _raw¡±£¬ÔòΪ¸¸Ä¿Â¼¡£

²ÎÊýreplace½éÉÜ: do we replace existing .zim files?
ÎÒÃÇÈçºÎÌæ»»ÏÖÓеÄ.zimÎļþ£¿

²ÎÊýzimdir½éÉÜ: the directory where the .zim files are located.
.zimÎļþËùÔÚµÄĿ¼¡£

²ÎÊýcheck.zim½éÉÜ: do we verify .zim files before refreshing metadata in .zip files?
ÔÚË¢ÐÂ.zipÎļþÖеÄÔªÊý¾Ý֮ǰ£¬ÎÒÃÇÈçºÎÑéÖ¤.zimÎļþ£¿

²ÎÊýis.dat1½éÉÜ: is it a '\_dat1.zim' file, that is a file collecting metadata AND objects measurements?
ÊÇ'\ _dat1.zim'Îļþ£¬¼´ÊÕ¼¯ÔªÊý¾ÝºÍ¶ÔÏó²âÁ¿ÖµµÄÎļþÂð£¿

²ÎÊýcheck.table½éÉÜ: try to read the table of measurements in the '[Data]' section. Ignored if is.dat1 = FALSE.
³¢ÊÔ¶ÁÈ¡¡° [Êý¾Ý]¡±²¿·ÖÖеIJâÁ¿±í¡£Èç¹ûis.dat1 = FALSE±»ºöÂÔ¡£

²ÎÊý...½éÉÜ: further arguments passed to the fileEdit().
½øÒ»²½µÄÂ۵㴫µÝ¸øÁËfileEdit()¡£


ÏêÇé-----Details-----

ZooImage Metadata/Measurements ('.zim' and '_dat1.zim' files, respectively) are text files containing metadata (that is, additional information required to process the images, like sample identification, information about collection and process of the sample, digitizing hardware and software, etc.). These metadata are represented as a pair 'key' = 'value' in ANSI encoding and are organized into sections written in square brackets on a separate line. For instance, '[Subsample]' defines a 'Subsample' section. The first line of .zim files must always be 'ZI1' in the case of ZooImage version 1, 'ZI2' for version 2, and 'ZI3' for current version. This identifiant allows for making incompatible changes in future versions without taking the risk to accidentally try processing these newer versions with an old, incompatible version of ZooImage in the future. Here are the first few lines of an example .zim file: for instance).
ZooImageÔªÊý¾Ý/¶ÈÁ¿£¨·Ö±ðΪ'.zim'ºÍ'_dat1.zim'Îļþ£©ÊÇ°üº¬ÔªÊý¾ÝµÄÎı¾Îļþ£¨¼´£¬´¦ÀíͼÏñËùÐèµÄÆäËûÐÅÏ¢£¬ÀýÈçÑùƷʶ±ð£¬ÓйØÑùÆ·ÊÕ¼¯ºÍ´¦ÀíµÄÐÅÏ¢£¬Êý×Ö»¯Ó²¼þºÍÈí¼þµÈ£©¡£ÕâЩԪÊý¾ÝÔÚANSI±àÂëÖбíʾΪһ¶Ô¡°¼ü¡± =¡°Öµ¡±£¬²¢×éÖ¯ÔÚÓ÷½À¨ºÅÀ¨ÆðÀ´µÄС½ÚÖС£ÀýÈ磬¡° [Subsample]¡±¶¨ÒåÁË¡° Subsample¡±²¿·Ö¡£¶ÔÓÚZooImage°æ±¾1£¬.zimÎļþµÄµÚÒ»ÐбØÐëʼÖÕΪ¡° ZI1¡±£¬¶ÔÓÚ°æ±¾2£¬¡° ZI2¡±£¬¶ÔÓÚµ±Ç°°æ±¾Îª¡° ZI3¡±¡£´Ë±êʶÔÊÐíÔÚ½«À´µÄ°æ±¾ÖнøÐв»¼æÈݵĸü¸Ä£¬¶ø²»±Øð½«À´Ã°ÓþɵIJ»¼æÈÝ°æ±¾µÄZooImageÒâÍâ´¦ÀíÕâЩ½Ïа汾µÄ·çÏÕ¡£ÕâÊÇʾÀý.zimÎļþµÄÇ°¼¸ÐУº

After 'ZI3' in the first line, there is a definition of an 'Image' section, with two keys: 'Hardware' with value 'EPSON 4870' and 'Software' with value 'VueScan 8.0.10', followed by a comment (everything after the '#' sign). Take care: since '#' defines a comment, do not use it, neither in keys, nor in values!
ÔÚµÚÒ»Ðеġ° ZI3¡±Ö®ºó£¬ÓÐÒ»¸ö¡°Í¼Ïñ¡±²¿·ÖµÄ¶¨Ò壬´øÓÐÁ½¸ö¼ü£ºÖµÎª¡° EPSON 4870¡±µÄ¡°Ó²¼þ¡±ºÍֵΪ¡° VueScan 8.0.10¡±µÄ¡°Èí¼þ¡±£¬ºó¸ú×¢ÊÍ£¨¡°££¡±·ûºÅºóµÄËùÓÐÄÚÈÝ£©¡£×¢Ò⣺ÓÉÓÚ¡°££¡±¶¨ÒåÁË×¢ÊÍ£¬Òò´ËÎÞÂÛÊÇÔÚ¼üÖл¹ÊÇÔÚÖµÖж¼²»ÒªÊ¹ÓÃËü£¡

Take care to define unique keys accross all sections! The section are just there to organize your metadata into logical subunits... but they are not considered in the process. If you define a key named 'mykey' both in '[Section1]' and in '[Section2]', only the first occurence of 'mykey' will be used by ZooImage!
×¢ÒâÔÚËùÓв¿·Ö¶¨ÒåΨһµÄ¼ü£¡¸Ã²¿·Ö½öÓÃÓÚ½«ÔªÊý¾Ý×é֯ΪÂß¼­×Óµ¥Ôª...µ«ÊÇÔڴ˹ý³ÌÖв»¿¼ÂÇËüÃÇ¡£Èç¹ûÔÚ¡° [Section1]¡±ºÍ¡° [Section2]¡±Öж¼¶¨ÒåÁËÒ»¸öÃûΪ¡° mykey¡±µÄ¼ü£¬ÔòZooImage½ö»áʹÓá° mykey¡±µÄÊ״γöÏÖ£¡

The ZooImage Measurements ('_dat1.zim' files) are structured the same way, but there is a special '[Data]' section at the end that contains a tab-delimited table with all measurements done on identified objects, during the image analysis (process of the images). This table starts with a header naming the colums, with two first columns being necessary '!Item' and 'Label'. 'Label' is the name of the image where the object is found and 'Item' is a unique identifier (usually a number) given to that object in the image (i.e., Label+Item is the unique identifier of each object in the whole series). The other columns define the measurements done on the objects (area, perimeter, length, distribution of gray levels, etc.). The amount and name of measurements are not fixed. It is the particular ImageJ plugin that you use to process your image that defines them (it means that adding new measurements is very easy to do and they are automatically considered by ZooImage).
ZooImage Measurements£¨¡° _ dat1.zim¡±Îļþ£©µÄ½á¹¹Ïàͬ£¬µ«ÊÇÔÚͼÏñ·ÖÎöÆڼ䣬ĩβÓÐÒ»¸öÌØÊâµÄ¡° [Data]¡±²¿·Ö£¬ÆäÖаüº¬ÖƱí·û·Ö¸ôµÄ±í£¬ÆäÖÐËùÓжÔÈ·¶¨µÄ¶ÔÏó½øÐеIJâÁ¿£¨Í¼Ïñ´¦Àí£©¡£¸Ã±íÒÔÃüÃûÁеıêÌ⿪ͷ£¬Ç°Á½ÁÐÊDZØÐèµÄ¡°£¡Item¡±ºÍ¡° Label¡±¡£ ¡°±êÇ©¡±ÊÇÔÚÆäÖÐÕÒµ½¶ÔÏóµÄͼÏñµÄÃû³Æ£¬¡°ÏîÄ¿¡±ÊÇÔÚͼÏñÖ
-----δÍ꣬´ýÐø-----£¬¡ý¡ý¡ýÕ¹¿ªÊ£Óà72%¡ý¡ý¡ý
¹ºÂòÖ÷Ìâ Ç°ÐÐÐèÒªÄúµÄÖ§³Ö£¬ÇëÔÞÖú×÷Õß ¡¾15 ½ðÇ®¡¿ ¾ÍÄÜä¯ÀÀÈ«²¿100%ÄÚÈÝÀ²£¡£¨±¾ÌùÒ»´ÎÔÞÖú¡¢ÓÀ¾Ã¿É¶Á£©
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | Á¢¼´×¢²á

±¾°æ»ý·Ö¹æÔò

ÊÖ»ú°æ|СºÚÎÝ|Archiver|RÓïÑÔÖÐÎÄÍø    

GMT+8, 2024-6-1 21:53 , Processed in 0.027165 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí