Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create tool to extract scan description from pfile #5

Open
jcohenadad opened this issue Nov 22, 2024 · 3 comments
Open

Create tool to extract scan description from pfile #5

jcohenadad opened this issue Nov 22, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@jcohenadad
Copy link
Member

jcohenadad commented Nov 22, 2024

Based on the pfile.Help, here's what's available:

Pfile('P12345.7')
Pfile('P12345.7', ['No-Anonymize' | 'Partial-Anonymize' | 'Full-Anonymize'], ['Single-AcquisitionMode' | 'All-Acquisitions' | 'All-Available-Acquisitions' | 'Raw-Data' | 'No-Compression'])
    Load Pfile into memory. 'Full-Anonymize' is used by default for the Anonymization Mode.
    Load Pfile into memory. 'All-Available-Acquisitions' is used by default for the Read Mode.
    DICOM images can be created with 'Full - Anonymize' Pfile data.

header = pfile.Header()
    header is a python dictionary
    header informtaion contains the entire POOL_HEADER structures
    Once the header information is available, we can access any member of the header, example:
rev = header['rdb_hdr_rec']['rdb_hdr_rdbm_rev']
scan_date = header['rdb_hdr_rec']['rdb_hdr_scan_date']
coil_name = header['rdb_hdr_image']['GEcname']

metadata = pfile.MetaData()
    metadata is a python dictionary
    metadata informtaion: phases, slices, echoes, channels, acquiredYRes, acquiredXRes, imageXRes, imageYRes.

kSpace = pfile.KSpace(slice, echo)
kSpace = pfile.KSpace(slice, echo, channel, phase)

corners = pfile.Corners(slice)
   corners is a Python dictionary.

orientation = pfile.Orientation(slice)
   orientation is a Python dictionary.

info = pfile.Info(slice)
info = pfile.Info(slice, pass)
   info contents: slice number, frequency shift, phase shift, slice shift 
   frequency scale, phase scale, slice thickness scale
   info is a python dictionary

However, I was not able to find information about the scan description (a.k.a. "SeriesDescription" in the BIDS world), that is: the information that is manually entered at the console for the scan, such as "T2_axial".

@jcohenadad
Copy link
Member Author

@jcohenadad
Copy link
Member Author

Potentially relevant: https://ucsd-center-for-functional-mri-cfmri-web-rtd.readthedocs-hosted.com/en/latest/mb_recon_rtd.html

Maybe the info is in the files ref.dat & vrfg.dat?

@jcohenadad jcohenadad added the enhancement New feature or request label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant