The program is based on the converters by Andrew Janke; many thanks to him for the original programs and helpful suggestions.
See the pvconv help for pvconv features and usage. This help information is also available by running pvconv from the command line thus:
pvconv.pl -help (help summary) pvconv.pl -help -verbose (more extensive) pvconv.pl -man (full documentation)
pvconv needs these packages from CPAN: MathMatrix 0.4 and Getopt::Argvfile. See the CPAN module install instructions.
You install pvconv using the normal perl module distribution drill. You will need to decompress and unpack the archive file. Then, for Unix, build and install like this:
perl Makefile.PL make make test make install
This will require root permissions, and will write the script (program) files to a system directory such as /usr/bin; the various library files will end up on your perl system path. If you want to install a private copy of pvconv in your home directory, then you should try to produce the initial Makefile with something like this command:
perl Makefile.PL PREFIX=~/perl
This will put all the library modules in ~/perl/lib, and the scripts in ~/perl/bin. If you want to be more tricky you could try something like:
perl Makefile.PL LIB=~/perl INSTALLSCRIPT=~/binwill put the libraries into ~/perl/lib, and the scripts into ~/bin.
The Makefile.PL program will start out by checking your perl installation for a few packages that are recommended to be installed together with pvconv.
Windows users may need nmake instead of make to run the installation above.
You can set the default command line options for running pvconv using configuration files; see the help for configuration files.
pvconv creates a text file "image.brkhdr" which is the concatenation of all the Bruker text files for the image. You will need to create this file if pvconv has not done it for you, using something like this (3 is the run number you want, "brukerdirectory" is the Bruker data directory for this scanning session):
cd brukerdirectory/3 cat ../subject imnd acqp pdata/1/reco > image.brkhdr- or put all these files into the same file with a text editor.
Now, you can create a .mat file from this .brkhdr file, with:
brk2mat.pl image.brkhdrwhich results in a .mat file "image.mat".
pvshow.pl 000054-m04.ci1/ -all 000054-m04.ci1:1: GEFI_TOMO_TriPilot; byte order: bigEndian; nreps: 1; reconstructed: Yes 000054-m04.ci1:2: EPI_FID_100_fmri; byte order: bigEndian; nreps: 1; reconstructed: Yes 000054-m04.ci1:3: EPI_SE_100_template; byte order: bigEndian; nreps: 4; reconstructed: Yes 000054-m04.ci1:4: EPI_FID_100_fmri; byte order: littleEndian; nreps: 300; reconstructed: Yes 000054-m04.ci1:5: EPI_FID_100_fmri; byte order: littleEndian; nreps: 260; reconstructed: Yes 000054-m04.ci1:6: EPI_SE_100_template; byte order: bigEndian; nreps: 4; reconstructed: Yes 000054-m04.ci1:7: EPI_FID_200_fmri; byte order: bigEndian; nreps: 1; reconstructed: Yes 000054-m04.ci1:8: EPI_SE_200_template; byte order: bigEndian; nreps: 4; reconstructed: Yes 000054-m04.ci1:9: EPI_FID_200_fmri; byte order: littleEndian; nreps: 260; reconstructed: Yes 000054-m04.ci1:10: EPI_SE_100_template; byte order: bigEndian; nreps: 4; reconstructed: Yes 000054-m04.ci1:11: EPI_FID_100_fmri; byte order: littleEndian; nreps: 300; reconstructed: Yes 000054-m04.ci1:12: new 3d phase 1a; byte order: bigEndian; nreps: 1; reconstructed: Yes 000054-m04.ci1:13: new 3d phase 1b; byte order: bigEndian; nreps: 1; reconstructed: Yes 000054-m04.ci1:14: new 3d phase 1c; byte order: bigEndian; nreps: 1; reconstructed: Yes 000054-m04.ci1:15: PD-T2 FSE; byte order: bigEndian; nreps: 1; reconstructed: Yes 000054-m04.ci1:16: SPGR_1mm; byte order: bigEndian; nreps: 1; reconstructed: Yes
Matthew Brett 7 January 2002, 16 September 2002
Last Refreshed: Wed Oct 10 15:22:13 BST 2007