<div dir="ltr">Hi Amanda,<div><br></div><div style>OK, I think I have an idea what's going on. First of all, can I confirm that all other relevant entries match, particularly the series number? You can check what MRtrix thinks all these are on a per-file basis using the MRtrix read_dicom tool - without any other options, this will print a terse dump of the entries that MRtrix uses to sort and group the images (use the -a option for a full dump of all entries). </div>
<div style><br></div><div style>Next, the (0018,1030) entry that you've modified (Protocol Name according to the DICOM specs) is completely ignored by MRtrix. The one you're interested in is (0008,1030) (Study Description) - you need to make sure this also matches. </div>
<div style><br></div><div style>The reason for the non-reproducible behaviour is probably down to MRtrix scanning the files in a different order for the two folders - it doesn't go through them alphabetically, just as they're listed in the directory entry, and that's in no way guaranteed to be the same for the two folders. I'm a little surprised that it would lead to such differences, but that's the only reasonable explanation for this that I can think of - other than a nasty bug causing memory corruption... Might still turn out to be the latter, in which case the simplest thing would be for you to send me the data so I can hunt it down.</div>
<div><br></div><div style>Hope this helps.</div><div style>Cheers,</div><div style><br></div><div style>Donald.</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 14 June 2013 15:41, Amanda Ng <span dir="ltr"><<a href="mailto:amanda.ng@monash.edu" target="_blank">amanda.ng@monash.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>I'm trying to convert DICOMs coming off our Agilent scanner using mrconvert. It's recognising two series, when I know it should only be one. I'm very sure this is a problem with the script creating the DICOMs.<div>
<br></div><div>So here's my mrtrix problem/question: I'm trying to modify the DICOM headers (using dcmtk) so mrconvert recognises it as a single series. I've tried it on the same data twice: </div><div><br></div>
<div>cp -r orig_data tmp1</div><div>dcmodify -i "(0008,103e)=30dirs_b3000_0.38" -i "(0018,1030)=DTI-epip" tmp1/*.dcm<br></div><div>cp -r orig_data tmp2</div><div>dcmodify -i "(0008,103e)=30dirs_b3000_0.38" -i "(0018,1030)=DTI-epip" tmp2/*.dcm<br>
</div><div><br></div><div>The first time it worked (ie recognises only one series), the second time it didn't. I used dcmdump to read the dicom headers and used diff to see where the differences were, and there are none. Ie:</div>
<div><br></div><div>dcmdump tmp1/*.dcm > tmp1.txt</div><div>dcmdump tmp2/*.dcm > tmp2.txt</div><div>diff tmp1.txt tmp2.txt</div><div><br></div><div>and no differences. :(</div><div><br></div><div>Any idea what's going on, ie why it worked the first time and every subsequent time it doesn't? I'm assuming that mrtrix uses DICOM headers to work out if there's multiple series.<br>
<br>Thanks in advance for any insight you can give me!</div><div>Amanda</div><div><br>--<br>Amanda Ng<br>Computational Biomedical Imaging Scientist<br><br> Monash Biomedical Imaging<br>
Monash e-Research Centre<br> Life Sciences Computation Centre, VLSCI<br><br> Email: <a href="mailto:amanda.ng@monash.edu" target="_blank">amanda.ng@monash.edu</a> Tel: <a href="tel:%2B61%20%280%293%209902%209804" value="+61399029804" target="_blank">+61 (0)3 9902 9804</a><br>
Bldg 220, 770 Blackburn Rd, Monash University, Melbourne VIC 3800</div></div>
<br>_______________________________________________<br>
Mrtrix-discussion mailing list<br>
<a href="mailto:Mrtrix-discussion@www.nitrc.org">Mrtrix-discussion@www.nitrc.org</a><br>
<a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">http://www.nitrc.org/mailman/listinfo/mrtrix-discussion</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><font color="#ff6600" size="1"><b>Dr Jacques-Donald Tournier<br></b></font><div><font color="#ff6600" size="1">Research Fellow</font></div><div><font size="1"><br>
</font></div><div><font size="1">The Florey Institute of Neuroscience and Mental Health</font></div><div><font size="1">Melbourne Brain Centre - Austin Campus</font></div><div><font size="1">245 Burgundy Street</font></div>
<div><font size="1">Heidelberg Vic 3084</font></div><div><font size="1">Ph: +61 3 9035 7033</font></div><div><font size="1">Fax: +61 3 9035 7307</font></div><div><font size="1"><a href="http://www.florey.edu.au" target="_blank">www.florey.edu.au</a></font></div>
<br>
</div>