I’ve been outputting the 3dclusterize results using ‘>’ in order bring them to a text file. I was wondering if there is a way to output only the cluster numbers and not all of the extra text or format the text file differently? We are performing individual subject ROI analysis across multiple different regions which means we have many text files corresponding to a variety of motor areas and subjects. We are organizing all of the values in the excel and we are trying to find an easier way to transfer the values.
Consider the -quiet option. That will still come with progress text (lines starting with ‘++’), but such text is sent to stderr, and will not be captured by a basic ‘>’ redirect.
You can add either of these options to suppress the commented text descriptions, and only output numbers (from the 3dClusterize help):
-nosum :Suppress printout of the totals
-quiet :Suppress all non-essential output
Note that even if you don’t use the -quiet option, you can use 1dcat to dump the text from a file excluding the commented stuff-- this might be my vote, because you can have an output text file with commented description, file info, etc., but still get just the numbers out from, rather than losing all that lovely descriptive info.
Summary:
To just get numbers, you could do:
3dClusterize -quiet ... > Cluster_numbers_only.1D
or, you could do this and have the best of both worlds:
The
National Institute of Mental Health (NIMH) is part of the National Institutes of
Health (NIH), a component of the U.S. Department of Health and Human
Services.