JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for NEUROMEG Archives


NEUROMEG Archives

NEUROMEG Archives


NEUROMEG@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

NEUROMEG Home

NEUROMEG Home

NEUROMEG  November 2007

NEUROMEG November 2007

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: pre-set bad channels in Maxfilter

From:

Jukka Nenonen <[log in to unmask]>

Reply-To:

Jukka Nenonen <[log in to unmask]>

Date:

Tue, 20 Nov 2007 09:21:04 +0200

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (162 lines)

Hi Max,

1) MaxFilter 2.0 supports only 'neuromag-style' bad channel marking
provided by DACQ and utility program /neuro/bin/util/mark_bad_fiff.
Such bad channels are set permanently bad ones in maxfilter.

Using mark_bad_fiff requires that the file has a bad channel tag
generated during data acquisition.  You can check it by running
/neuro/bin/util/show_fiff -v <file.fif> | grep bad
which should report
220 = bad chs           315 ints

In this case, you can always re-run mark_bad_fiff to overwrite the
previous bad channel selection. For example, command
/neuro/bin/util/mark_bad_fiff -1 <file.fif>
removes all bad channels.

If the input file does not have the bad channel tag, mark_bad_fiff reports
an error and does not do the job. In such cases you have to give the
bad channels separately on maxfilter command-line or gui.

NOTE: the result file after maxfilter does not have the bad channels tag,
because the program reconstructs all MEG channels.

2) MNE software of Matti Hämäläinen uses a different bad channel
marking, /neuro/bin/util/show_fiff -v <file.fif> reports:
...
104 = {              	Cannot explain: 359
Cannot explain: 3507	MEG 2443:EEG 053
105 = }              	Cannot explain: 359

Unfortunately, MaxFilter 2.0 does not recognize this extension, and you
need to run mark_bad_fiff. In the above example:
/neuro/bin/util/mark_bad_fiff 53 2443 <file.fif>.
If it fails, you have to give the channnel 2443 as a bad one when starting
maxfilter.

MaxFilter 2.1 can handle both styles of bad channels (but I haven't decided
yet if style 1) is ignored when style 2) is present...)

Best regards, Jukka


Max Garagnani wrote:
> Hello,
> 
> Thanks for your reply.
> 
> After marking with "mark_bad_fiff", is it possible to "unmark" channels
> previously marked as bad on the fif file? If so, how?
> 
> Many thanks,
> Max
> 
> On Mon, November 19, 2007 12:08, Jukka Nenonen wrote:
>> Hello Yury,
>>
>> We are aiming to release maxfilter 2.1 during the spring, and the new
>> version can handle also bad channels marked by the MNE software.
>>
>> While waiting for it, the quickest 'workaround' would be to write down
>> the list of bad channels identified in the MNE software, and then apply
>> Neuromag utility program mark_bad_fiff, e.g.
>> /neuro/bin/util/mark_bad_fiff 632 741 2211 <filename.fif>
>>
>> Best regards, Jukka
>>
>>
>> Yury Shtyrov wrote:
>>> Hi Jukka -
>>>
>>> Thanks a lot for your quick reply! I think this explains it all: we
>>> did the marking in MNE - pretty much the only program where you can
>>> comfortably view and mark raw data in the same time - under the
>>> assumption that it uses native fiff-file format for everything
>>> (something I would expect from Matti). Too bad this is not the case -
>>> but good that you are  fixing this in the second version. Any chance
>>> to have it soon? (we are beta testers anyway)
>>>
>>> yury
>>>
>>> 2007/11/19, Jukka Nenonen <[log in to unmask]>:
>>>> Hi Yury,
>>>>
>>>> How did you mark the bad channel in the FIFF file?
>>>>
>>>> Pneuromag utility program 'mark_bad_fiff' generates a list
>>>> of logical channel numbers,  which maxfilter automatically
>>>> adds  to permanently bad channels:
>>>> show_fiff -v filename.fif
>>>> ...
>>>> 220 = bad chs           315 ints
>>>> ...
>>>>
>>>> On the other hand, some programs (e.g. MNE software by Matti
>>>> Hämäläinen) may use a different bad channel marking (such as
>>>> a list of bad channel names). In such cases maxfilter 2.0 does
>>>> not recognize the bad channel settings.
>>>>
>>>> I have added the latter list to the new maxfilter.
>>>>
>>>> Can you email me a short evoked-format example file where the bad
>>>> channel marking seems to fail?
>>>>
>>>> Best regards, Jukka
>>>>
>>>> Yury Shtyrov wrote:
>>>>> Hello -
>>>>>
>>>>> The maxfilter manual seems to imply that if the channel has been
>>>>> marked bad in the fif-file previously, it will be automatically
>>>>> recognised as bad by maxfilter, regardless of the -bad option.
>>>>> However, this does not seem to be the case, and the bad channels (if
>>>>> marked bad in fiff but not entered in -bad) seem to badly influence
>>>>> good channels after maxfiltering.
>>>>>
>>>>> Has anyone else encountered this problem and is there a remedy -
>>>>> except manually entering all channels using -bad (which is time
>>>>> consuming and error-prone, to say the least)?
>>>>>
>>>>> Thanks!
>>>>>
>>>>> -yury-
>>
>> --
>>
>> ===============================Dr. Jukka Nenonen
>> Manager, Method development
>> Elekta Neuromag Oy
>> Street address: Siltasaarenkatu 18-20A, Helsinki, Finland
>> Mailing address: P.O. Box 68, FIN-00511 HELSINKI, Finland
>> Tel: +358 9 756 240 85 (office), +358 400 249 557 (mobile),
>>       +358 9 756 240 11 (fax),    +358 9 756 2400 (operator)
>> E-mail: [log in to unmask]
>> http://www.neuromag.com
>>
> 
> 
> ------------------
> Max Garagnani, PhD.
> MRC - Cognition & Brain Sciences Unit
> 15 Chaucer Rd.
> Cambridge - CB2 7EF
> UK
> Tel. +44 1223 273730 (direct)
> Fax: +44 1223 359062
> 


-- 

================================
Dr. Jukka Nenonen
Manager, Method development
Elekta Neuromag Oy
Street address: Siltasaarenkatu 18-20A, Helsinki, Finland
Mailing address: P.O. Box 68, FIN-00511 HELSINKI, Finland
Tel: +358 9 756 240 85 (office), +358 400 249 557 (mobile),
      +358 9 756 240 11 (fax),    +358 9 756 2400 (operator)
E-mail: [log in to unmask]
http://www.neuromag.com

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

April 2024
May 2023
January 2023
March 2022
January 2022
December 2021
November 2021
May 2021
September 2020
August 2020
July 2020
May 2020
April 2020
January 2020
December 2019
June 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
May 2018
April 2018
March 2018
February 2018
January 2018
November 2017
October 2017
September 2017
August 2017
March 2017
December 2016
September 2016
July 2016
April 2016
January 2016
August 2015
July 2015
June 2015
March 2015
December 2014
August 2014
May 2014
April 2014
January 2014
December 2013
November 2013
October 2013
September 2013
June 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
July 2012
May 2012
March 2012
February 2012
September 2011
July 2011
June 2011
May 2011
April 2011
March 2011
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
February 2010
January 2010
December 2009
November 2009
October 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
March 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager