You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param sourcefile: The full filepath of the data source for which to get a run-item
1274
-
:param dataformat: The dataformat section in the bidsmap in which a matching run is searched for, e.g. 'DICOM'
1274
+
:param dataformat: The dataformat section in the bidsmap in which a matching run is searched for, e.g. 'DICOM'. Leave empty to recursively search through all dataformats
1275
1275
:param runtime: Dynamic <<values>> are expanded if True
1276
1276
:return: (run, provenance) A vanilla run that has all its attributes populated with the source file attributes.
1277
1277
If there is a match, the provenance of the bidsmap entry is returned, otherwise it will be ''
1278
1278
"""
1279
1279
1280
+
# Iterate over all dataformats if dataformat is not given
LOGGER.warning(f"The pluginslisted in your bidsmap['Options'] did not have a usable `bidsmapper_plugin` function, nothing to do")
106
+
LOGGER.warning(f"The {bidsmap_new.plugins.keys()} plugins listed in your bidsmap['Options'] did not have a usable `bidsmapper` interface, nothing to do")
parser.add_argument('-t', '--test', help='Test the bidscoin installation and template bidsmap', nargs='?', metavar='TEMPLATE', const=bidsmap_template)
55
55
parser.add_argument('-b', '--bidsmaptest', help='Test the run-items and their bidsnames of all normal runs in the study bidsmap. Provide the bids-folder or the bidsmap filepath', metavar='BIDSMAP')
56
56
parser.add_argument('-c', '--credits', help='Show duecredit citations for your BIDS repository. You can also add duecredit summary arguments (without dashes), e.g. `style {apa,harvard1}` or `format {text,bibtex}`.', metavar='OPTIONS', nargs='+')
57
+
parser.add_argument('-r', '--reset', help='Restore the settings, plugins and template bidsmaps in your home directory to their default values', action='store_true')
57
58
parser.add_argument( '--tracking', help='Show the usage tracking info {show}, or set usage tracking to {yes} or {no}', choices=['yes','no','show'])
58
59
parser.add_argument('-v', '--version', help='Show the installed version and check for updates', action='version', version=f"BIDS-version:\t\t{bidsversion()}\nBIDScoin-version:\t{__version__}, {versionmessage}")
parser.add_argument('sourcefolder', help='The root folder containing the [sub/][ses/] dicomfiles or the DICOMDIR file')
27
27
parser.add_argument('-i','--subprefix', help='Provide a prefix string to recursively sort sourcefolder/subject subfolders (e.g. "sub-" or "S_")', metavar='PREFIX')
28
28
parser.add_argument('-j','--sesprefix', help='Provide a prefix string to recursively sort sourcefolder/subject/session subfolders (e.g. "ses-" or "T_")', metavar='PREFIX')
Copy file name to clipboardExpand all lines: bidscoin/cli/_rawmapper.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ class CustomFormatter(argparse.ArgumentDefaultsHelpFormatter, argparse.RawDescri
29
29
parser.add_argument('sourcefolder', help='The source folder with the raw data in sub-#/ses-#/series organization', metavar='FOLDER')
30
30
parser.add_argument('-s','--sessions', help='Space separated list of selected sub-#/ses-# names/folders to be processed. Otherwise all sessions in the bidsfolder will be processed', nargs='+', metavar='SESSION')
31
31
parser.add_argument('-f','--field', help='The fieldname(s) of the DICOM attribute(s) used to rename or map the subid/sesid foldernames', default=['PatientComments', 'ImageComments'], nargs='+', metavar='NAME')
32
-
parser.add_argument('-w','--wildcard', help='The Unix style pathname pattern expansion that is used to select the series from which the dicomfield is being mapped (can contain wildcards)', default='*', metavar='PATTERN')
32
+
parser.add_argument('-w','--wildcard', help='The Unix style pathname pattern expansion that is used to select the series folders from which the dicomfield is being mapped (can contain wildcards)', default='*', metavar='PATTERN')
33
33
parser.add_argument('-o','--outfolder', help='The mapper-file is normally saved in sourcefolder or, when using this option, in outfolder', metavar='FOLDER')
34
34
parser.add_argument('-r','--rename', help='Rename sub-subid/ses-sesid directories in the sourcefolder to sub-dcmval/ses-dcmval', action='store_true')
35
35
parser.add_argument('-c','--clobber', help='Rename the sub/ses directories, even if the target-directory already exists', action='store_true')
0 commit comments