<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Jessie,<div><br></div><div>If you wish to take a FieldTrip dataset back to the native 4D format, then it will not be trivial, but if you have the original data in 4D format, there is a potential solution in Eugene Kronberg's pdf4D matlab object code:</div><div><br></div><div><a href="http://biomag.wikidot.com/msi-matlab">http://biomag.wikidot.com/msi-matlab</a></div><div><br></div><div>If you do not have the native 4D data, this will not work. Look at the duplicate and write_data_block methods. However, note that if you do duplicate the dataset, it will expect there to be as many channels in the new dataset as in the original. You would then have to delete those channels in the 4D MSI software using the deleter command. Or, alternatively, if you have a working copy of the MSI software, you can delete the channels in the original dataset within 4D, then use the duplicate method on that file, then write your data back to it using the write_data_block method.</div><div><br></div><div>Feel free to contact me off list if you have questions.</div><div><br></div><div>Best,</div><div><br></div><div>Don</div><div><br><div><div>On Sep 26, 2011, at 8:26 AM, jan-mathijs schoffelen wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Jessie,<div><br></div><div>FieldTrip is not able to write back into the native 4D neuroimaging format. If you want to create a new dataset, you need to have a look at the software which is provided by the 4D neuroimaging company. Your requested functionality may either be a feature of one of the applications, or may be implemented in one of the command line utilities. You may want to look in the software documentation for this.</div><div><br></div><div>Best wishes,</div><div><br></div><div>Jan-Mathijs</div><div><br><div><div>On Sep 26, 2011, at 4:11 PM, Luo, Jessie (NIH/NIMH) [V] wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Thanks for your answer Jörn . Yes I can use those functions to 'exlucde', but these definitions cannot be read by other software. What is why I intended to create a new dataset. Looks like fieldtrip does not allow that...<br><br>Jessie<br>________________________________________<br>From: "Jörn M. Horschig" [<a href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a>]<br>Sent: Sunday, September 25, 2011 4:09 AM<br>To: Email discussion list for the FieldTrip project<br>Subject: Re: [FieldTrip] creating new dataset<br><br>Hi Jessie,<br><br>not quite sure what you are up to by saying that you do not want to use ft_ functions for that (maybe I misunderstood that part). Of course you could write your own loop, but the easier option would be to call ft_channelselection on your data and then call ft_preprocessing (this will return a new data-structure). See the help of these ft_channelselection:<br><br>You can also exclude channels or channel groups using the following syntax<br> {'all', '-POz', '-Fp1', -EOG'}<br><br><br><br><br><blockquote type="cite">From ft_preprocessing:<br></blockquote><br>If you are calling FT_PREPROCESSING<<a href="http://fieldtrip.fcdonders.nl/reference/ft_preprocessing">http://fieldtrip.fcdonders.nl/reference/ft_preprocessing</a>> with also the second input argument<br> "data", then that should contain data that was already read from file in<br> a previous call to FT_PREPROCESSING<<a href="http://fieldtrip.fcdonders.nl/reference/ft_preprocessing">http://fieldtrip.fcdonders.nl/reference/ft_preprocessing</a>>. In that case only the configuration<br> options below apply.<br><br> The channels that will be read and/or preprocessed are specified with<br> cfg.channel = Nx1 cell-array with selection of channels (default = 'all'),<br> see FT_CHANNELSELECTION<<a href="http://fieldtrip.fcdonders.nl/reference/ft_channelselection">http://fieldtrip.fcdonders.nl/reference/ft_channelselection</a>> for details<br><br><br>You could also use ft_selectdata instead of ft_preprocessing in case you are handling already processed data (e.g. tfr-data ). Alternatively, you can check ft_channelrepair for interpolating the bad channels.<br><br>Hope this all helps to what you are up to!<br>Best,<br>Jörn<br><br>On 9/24/2011 10:12 PM, Luo, Jessie (NIH/NIMH) [V] wrote:<br><br>Hi,<br><br>If there are bad channels (e.g. for a 4D system) in a dataset, Is it possible to create a new dataset by excluding them? I meant creating a NEW dataset without those channels (not by defining them using the ft_... in fieldtrip).<br><br>Thanks,<br><br>Jessie<br>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><<a href="mailto:fieldtrip@donders.ru.nl">mailto:fieldtrip@donders.ru.nl</a>><br><a href="http://mailman.science.ru.nl/mailman/listinfo/fieldtrip">http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</a><br><br><br><br><br>--<br>Jörn M. Horschig<br>PhD Student<br>Donders Institute for Brain, Cognition and Behaviour<br>Centre for Cognitive Neuroimaging<br>Radboud University Nijmegen<br>Neuronal Oscillations Group<br><br>P.O. Box 9101<br>NL-6500 HB Nijmegen<br>The Netherlands<br><br>Contact:<br>E-Mail: <a href="mailto:jm.horschig@donders.ru.nl">jm.horschig@donders.ru.nl</a><<a href="mailto:jm.horschig@donders.ru.nl">mailto:jm.horschig@donders.ru.nl</a>><br>Tel: +31-(0)24-36-68493<br>Web: <a href="http://www.ru.nl/donders">http://www.ru.nl/donders</a><br><br>Visiting address:<br>Trigon, room 2.30<br>Kapittelweg 29<br>NL-6525 EN Nijmegen<br>The Netherlands<br><br><br>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip<br></div></blockquote></div><br><div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Jan-Mathijs Schoffelen, MD PhD </div><div>Donders Institute for Brain, Cognition and Behaviour, <br>Centre for Cognitive Neuroimaging,<br>Radboud University Nijmegen, The Netherlands</div><div><a href="mailto:J.Schoffelen@donders.ru.nl">J.Schoffelen@donders.ru.nl</a></div><div>Telephone: +31-24-3614793</div></div></span></div></span></div>
</div>
<br></div></div>_______________________________________________<br>fieldtrip mailing list<br><a href="mailto:fieldtrip@donders.ru.nl">fieldtrip@donders.ru.nl</a><br>http://mailman.science.ru.nl/mailman/listinfo/fieldtrip</blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">-----------------------<br>Don Rojas, Ph.D.<br>Associate Professor of Psychiatry<br>U. of Colorado Denver Anschutz Medical Campus<br>Director, UCD Magnetoencephalography Lab<br>13001 E. 17th Pl F546<br>Aurora, CO 80045<br>303-724-4994</div></span></span>
</div>
<br></div></body></html>