[Freesurfer] IOError: [Errno 13] Permission denied: 'aseg_stats.txt'

2013-06-19 Thread Varghese Chikku
Dear FS team,
I  tried to  run this  command

asegstats2table --subjects bert ernie fred margaret --meas volume
--tablefile aseg_stats.txt

But got this   error,permission denied,

SUBJECTS_DIR : /usr/local/freesurfer/subjects
Parsing the .stats files
Building the table..
Writing the table to aseg_stats.txt
Traceback (most recent call last):
  File /usr/local/freesurfer/bin/asegstats2table, line 517, in module
write_table(options, rows, columns, table)
  File /usr/local/freesurfer/bin/asegstats2table, line 462, in write_table
tw.write()
  File /usr/local/freesurfer/bin/datastruct_utils.py, line 58, in write
fp = open(self.filename, 'w')
IOError: [Errno 13] Permission denied: 'aseg_stats.txt'
freesurfer@freesurfer-VirtualBox:/usr/lib$

Many thanks

Chikku
___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.


Re: [Freesurfer] IOError: [Errno 13] Permission denied: 'aseg_stats.txt'

2013-06-19 Thread Louis Nicholas Vinke

Hi Chikku,
I think this is a permissions issue.  Check that you have write 
permissions to where you are trying to write the stats table.

-Louis

On Wed, 19 Jun 2013, Varghese Chikku wrote:


Dear FS team,
I  tried to  run this  command

asegstats2table --subjects bert ernie fred margaret --meas volume --tablefile 
aseg_stats.txt

But got this   error,permission denied,

SUBJECTS_DIR : /usr/local/freesurfer/subjects

Parsing the .stats files
Building the table..
Writing the table to aseg_stats.txt
Traceback (most recent call last):
  File /usr/local/freesurfer/bin/asegstats2table, line 517, in module

    write_table(options, rows, columns, table)
  File /usr/local/freesurfer/bin/asegstats2table, line 462, in write_table
    tw.write()
  File /usr/local/freesurfer/bin/datastruct_utils.py, line 58, in write

    fp = open(self.filename, 'w')
IOError: [Errno 13] Permission denied: 'aseg_stats.txt'
freesurfer@freesurfer-VirtualBox:/usr/lib$ 


Many thanks

Chikku

___
Freesurfer mailing list
Freesurfer@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer


The information in this e-mail is intended only for the person to whom it is
addressed. If you believe this e-mail was sent to you in error and the e-mail
contains patient information, please contact the Partners Compliance HelpLine at
http://www.partners.org/complianceline . If the e-mail was sent to you in error
but does not contain patient information, please contact the sender and properly
dispose of the e-mail.