Comments (12)
This is already possible in dcm2mnc, have a look at the -fname and -dname options. Here's python snippet showing what is possible.
cmd = ['dcm2mnc', '-usecoordinates', '-anon',
'-dname', '',
'-fname', '%N_%D-%T_' + str(SeriesNumber).zfill(2) + '' + StudyDescription + '' + SeriesDescription + '%s%e%t%p%c']
cmd.extend(flist)
cmd.append(outdir)
do_cmd(cmd, False)
(From here: https://github.com/NIF-au/imagetrove-python-uploader/blob/master/dicom/imgtr-uploader-dicom.py#L421)
a
from minc-tools.
Thanks @andrewjanke I was aware of -fname and -dname, but it didn't appear to me that any of the "%" formatting options actually contain the info I want inserted? It looks like you're getting that elsewhere in that snippet?
from minc-tools.
from minc-tools.
@gdevenyi There is a poorly-documented option, %P, that is available to insert the protocol name, as well as %A to insert the acquisition or series ID. Would either of these help?
from minc-tools.
%P is exactly what I'm looking for
Recasting request as a "update manpage"
from minc-tools.
@gdevenyi It is already in the man page, at least on the develop branch. Not sure the man page is getting installed however.
from minc-tools.
Ah, on develop I'm seeing a manpage without this option listed.
from minc-tools.
It should be listed as shown here:
https://github.com/BIC-MNI/minc-tools/blob/develop/conversion/dcm2mnc/dcm2mnc.man1#L214
from minc-tools.
Yup, my sources have that, but the installed version seem to be coming from somewhere else.
from minc-tools.
from minc-tools.
Thanks @vfonov but that man page also is missing "%P"
from minc-tools.
I guess this commit came after I split up man pages: 157d053
from minc-tools.
Related Issues (20)
- mnc2nii do not populate time_units header field in the NIfTI file HOT 5
- volume_stats: Assertion failed in CachedArray.cc AND seg fault in spline_smooth HOT 2
- dcm2mnc - phase encore direction information missing
- mnc2nii requires no transformation input? HOT 3
- Tempdir handling by various MINC tools HOT 1
- can't be built outside of toolkit due to missing cmake-modules/FindNIFTI.cmake HOT 2
- mnc2nii - Floating point exception (core dumped) error HOT 4
- nii2mnc doesn't seem to handle scl_slope and scl_inter properly
- Undefined behaviour in mincresample HOT 1
- 'Floating point exception' error using mnc2nii HOT 3
- Use min-tools on Win10 HOT 1
- mnc2nii not populating fields dim_info and slice_code in the NIfTI file HOT 2
- mnc2nii error - "floating point exception (core dumped)" HOT 5
- mincreshape modifies image-min when changing type HOT 1
- dcm2mnc binary versions HOT 4
- dcm2mnc issue with Siemens Prisma scanner (QSM and multi-echo fieldmap)
- dcm2mnc issue with GE MEDICAL SYSTEMS DISCOVERY MR750w HOT 2
- dcm2mnc issue with Philips Medical Systems Ingenia HOT 2
- mincstats does not honour order of command-line arguments
- mnc2nii label creates wrong affine matrix when direction_cosines is not specified HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from minc-tools.