<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.na-mic.org/w/index.php?action=history&amp;feed=atom&amp;title=Mbirn%3A_Data_Provenance%3ADocumentation%3AParsing</id>
	<title>Mbirn: Data Provenance:Documentation:Parsing - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.na-mic.org/w/index.php?action=history&amp;feed=atom&amp;title=Mbirn%3A_Data_Provenance%3ADocumentation%3AParsing"/>
	<link rel="alternate" type="text/html" href="https://www.na-mic.org/w/index.php?title=Mbirn:_Data_Provenance:Documentation:Parsing&amp;action=history"/>
	<updated>2026-04-19T12:46:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://www.na-mic.org/w/index.php?title=Mbirn:_Data_Provenance:Documentation:Parsing&amp;diff=9732&amp;oldid=prev</id>
		<title>Naucoin at 22:08, 25 April 2007</title>
		<link rel="alternate" type="text/html" href="https://www.na-mic.org/w/index.php?title=Mbirn:_Data_Provenance:Documentation:Parsing&amp;diff=9732&amp;oldid=prev"/>
		<updated>2007-04-25T22:08:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 22:08, 25 April 2007&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;''[http://132.239.132.249:8080/xwiki/bin/view/Morphometry-BIRN/mBIRN_Provenance_Main This is version 1.0, see BIRN xwiki for 2.0+]''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Parsing of raw output'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;'''Parsing of raw output'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Naucoin</name></author>
		
	</entry>
	<entry>
		<id>https://www.na-mic.org/w/index.php?title=Mbirn:_Data_Provenance:Documentation:Parsing&amp;diff=4164&amp;oldid=prev</id>
		<title>Andy: Update from Wiki</title>
		<link rel="alternate" type="text/html" href="https://www.na-mic.org/w/index.php?title=Mbirn:_Data_Provenance:Documentation:Parsing&amp;diff=4164&amp;oldid=prev"/>
		<updated>2006-12-18T13:37:09Z</updated>

		<summary type="html">&lt;p&gt;Update from Wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;'''Parsing of raw output'''&lt;br /&gt;
&lt;br /&gt;
The script file dataprov.tcl will parse the output from the processing script and construct a tree of information as follows:&lt;br /&gt;
&lt;br /&gt;
* Processing Tool1&lt;br /&gt;
** field: value pairs&lt;br /&gt;
* Processing Tool2&lt;br /&gt;
** field: value pairs&lt;br /&gt;
&lt;br /&gt;
It is important that all processing tools start their data provenance output with the ProgramName flag. The rest of the flags can be in any order, but this one marks the beginning of a new tool's information.&lt;br /&gt;
&lt;br /&gt;
'''Processing Script'''&lt;br /&gt;
&lt;br /&gt;
The procesing script will call the processing steps with the --all-info flag, and the programs will print out their data provenance information to the standard output. The output of the processing script will be redirected to a file, and that file will be processed by dataprov.tcl. The following example uses a processing script that converts from a Freesurfer MGH volume to a Freesurfer COR voluem and displays it in Slicer.&lt;br /&gt;
&lt;br /&gt;
    # convertandshow.sh&lt;br /&gt;
    mri_convert -all-info&lt;br /&gt;
    rm -rf /home/nicole/data/flash40cor&lt;br /&gt;
    mkdir /home/nicole/data/flash40cor&lt;br /&gt;
    mri_convert  --out_type cor /home/nicole/data/flash40.mgh /home/nicole/data/flash40cor&lt;br /&gt;
    /extra/nicole/slicer2/slicer2-linux-x86 --no-tkcon --all-info --load-freesurfer-volume /home/nicole/data/flash40cor/COR-.info&lt;br /&gt;
    exit&lt;br /&gt;
&lt;br /&gt;
The script is called from another script that redirects and parses the output:&lt;br /&gt;
&lt;br /&gt;
    # dataprov.sh&lt;br /&gt;
    convertandshow.sh &amp;gt; /home/nicole/dataprov/convertandshow.txt&lt;br /&gt;
    dataprov.tcl /home/nicole/dataprov/convertandshow.txt&lt;br /&gt;
&lt;br /&gt;
Once you exit Slicer, the xml file appears on the standard output, and can be redirected to an xml file by calling the script like so:&lt;br /&gt;
&lt;br /&gt;
    dataprov.sh &amp;gt; dataprov.xml&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;[[Data_Provenance:Documentation|Back]]&lt;/div&gt;</summary>
		<author><name>Andy</name></author>
		
	</entry>
</feed>