Skip to content

Does reproman support globstar for --outputs? #581

@jbwexler

Description

@jbwexler

I had a few failed subjects from an fmriprep run and tried to rerun from where they left off. However, I ran into a bunch of "permission denied" errors from the pre-existing outputs, despite the fact that I specified these as outputs in the reproman command using globstar to capture files recursively. Perhaps reproman doesn't support globstar yet? Or I'm making some error?

I'm using reproman v0.4.1, datalad v0.15.4 and git-annex v8.20210903-ga4d179c

Here's are a few example errors:

> PermissionError: [Errno 13] Permission denied: '/scratch1/03201/jbwexler/openneuro_derivatives/derivatives/fmriprep/ds000117-fmriprep/sub-16/ses-mri/func/sub-16_ses-mri_task-facerecognition_run-9_desc-preproc_bold.nii.gz'

> Standard error:
> cp: cannot create regular file '/scratch1/03201/jbwexler/openneuro_derivatives/derivatives/fmriprep/ds000117-fmriprep/sourcedata/freesurfer/sub-16/scripts/lastcall.build-stamp.txt': Permission denied
> /scratch1/03201/jbwexler/openneuro_derivatives/derivatives/fmriprep/ds000117-fmriprep/sourcedata/freesurfer/sub-16/scripts/recon-all.cmd: Permission denied.
> Return code: 1
Here's the spec.yaml:
> (main) login1.frontera(1038)$ cat .reproman/jobs/local/20220106-161435-2d54/spec.yaml
> _command_array:
> - code/containers/scripts/singularity_cmd run code/containers/images/bids/bids-fmriprep--21.0.0.sing
>   sourcedata/raw /scratch1/03201/jbwexler/openneuro_derivatives/derivatives/fmriprep/ds000117-fmriprep
>   participant --participant-label '02' -w '/scratch1/03201/jbwexler/work_dir/fmriprep//ds000117_sub-02'
>   -vv --output-spaces MNI152NLin2009cAsym:res-2 anat func fsaverage5 --nthreads 14
>   --omp-nthreads 7 --skip-bids-validation --notrack --fs-license-file /home1/03201/jbwexler/.freesurfer.txt
>   --use-aroma --ignore slicetiming --output-layout bids --cifti-output --resource-monitor
>   --skull-strip-t1w force --mem_mb 37500 --bids-database-dir /tmp --use-syn-sdc
> - code/containers/scripts/singularity_cmd run code/containers/images/bids/bids-fmriprep--21.0.0.sing
>   sourcedata/raw /scratch1/03201/jbwexler/openneuro_derivatives/derivatives/fmriprep/ds000117-fmriprep
>   participant --participant-label '16' -w '/scratch1/03201/jbwexler/work_dir/fmriprep//ds000117_sub-16'
>   -vv --output-spaces MNI152NLin2009cAsym:res-2 anat func fsaverage5 --nthreads 14
>   --omp-nthreads 7 --skip-bids-validation --notrack --fs-license-file /home1/03201/jbwexler/.freesurfer.txt
>   --use-aroma --ignore slicetiming --output-layout bids --cifti-output --resource-monitor
>   --skull-strip-t1w force --mem_mb 37500 --bids-database-dir /tmp --use-syn-sdc
> _container_command_str: code/containers/scripts/singularity_cmd run code/containers/images/bids/bids-fmriprep--21.0.0.sing
>   sourcedata/raw /scratch1/03201/jbwexler/openneuro_derivatives/derivatives/fmriprep/ds000117-fmriprep
>   participant --participant-label '{p[sub]}' -w '/scratch1/03201/jbwexler/work_dir/fmriprep//ds000117_sub-{p[sub]}'
>   -vv --output-spaces MNI152NLin2009cAsym:res-2 anat func fsaverage5 --nthreads 14
>   --omp-nthreads 7 --skip-bids-validation --notrack --fs-license-file /home1/03201/jbwexler/.freesurfer.txt
>   --use-aroma --ignore slicetiming --output-layout bids --cifti-output --resource-monitor
>   --skull-strip-t1w force --mem_mb 37500 --bids-database-dir /tmp --use-syn-sdc
> _dataset_id: 6c997266-c091-49c7-845a-ebd84e38c046
> _extra_inputs: &id001
> - code/containers/images/bids/bids-fmriprep--21.0.0.sing
> _extra_inputs_array:
> - *id001
> - *id001
> _head: 7a04dfa852ea2a57d740db3a1d2f31160f3babfc
> _inputs_array: []
> _jobid: 20220106-161435-2d54
> _meta_directory: /scratch1/03201/jbwexler/openneuro_derivatives/derivatives/fmriprep/ds000117-fmriprep/.reproman/jobs/local/20220106-161435-2d54
> _meta_directory_rel: .reproman/jobs/local/20220106-161435-2d54
> _num_subjobs: 2
> _outputs_array:
> - - sub-01
>   - sub-01.html
>   - sub-02
>   - sub-02.html
>   - sub-03
>   - sub-03.html
>   - sub-04
>   - sub-04.html
>   - sub-05
>   - sub-05.html
>   - sub-06
>   - sub-06.html
>   - sub-07
>   - sub-07.html
>   - sub-08
>   - sub-08.html
>   - sub-09
>   - sub-09.html
>   - sub-10
>   - sub-10.html
>   - sub-11
>   - sub-11.html
>   - sub-12
>   - sub-12.html
>   - sub-13
>   - sub-13.html
>   - sub-14
>   - sub-14.html
>   - sub-15
>   - sub-15.html
>   - sub-16
>   - sub-16.html
>   - sourcedata/freesurfer/fsaverage
>   - sourcedata/freesurfer/fsaverage5
>   - sourcedata/freesurfer/sub-01
>   - sourcedata/freesurfer/sub-02
>   - sourcedata/freesurfer/sub-03
>   - sourcedata/freesurfer/sub-04
>   - sourcedata/freesurfer/sub-05
>   - sourcedata/freesurfer/sub-06
>   - sourcedata/freesurfer/sub-07
>   - sourcedata/freesurfer/sub-08
>   - sourcedata/freesurfer/sub-09
>   - sourcedata/freesurfer/sub-10
>   - sourcedata/freesurfer/sub-11
>   - sourcedata/freesurfer/sub-12
>   - sourcedata/freesurfer/sub-13
>   - sourcedata/freesurfer/sub-14
>   - sourcedata/freesurfer/sub-15
>   - sourcedata/freesurfer/sub-16
> - - sub-01
>   - sub-01.html
>   - sub-02
>   - sub-02.html
>   - sub-03
>   - sub-03.html
>   - sub-04
>   - sub-04.html
>   - sub-05
>   - sub-05.html
>   - sub-06
>   - sub-06.html
>   - sub-07
>   - sub-07.html
>   - sub-08
>   - sub-08.html
>   - sub-09
>   - sub-09.html
>   - sub-10
>   - sub-10.html
>   - sub-11
>   - sub-11.html
>   - sub-12
>   - sub-12.html
>   - sub-13
>   - sub-13.html
>   - sub-14
>   - sub-14.html
>   - sub-15
>   - sub-15.html
>   - sub-16
>   - sub-16.html
>   - sourcedata/freesurfer/fsaverage
>   - sourcedata/freesurfer/fsaverage5
>   - sourcedata/freesurfer/sub-01
>   - sourcedata/freesurfer/sub-02
>   - sourcedata/freesurfer/sub-03
>   - sourcedata/freesurfer/sub-04
>   - sourcedata/freesurfer/sub-05
>   - sourcedata/freesurfer/sub-06
>   - sourcedata/freesurfer/sub-07
>   - sourcedata/freesurfer/sub-08
>   - sourcedata/freesurfer/sub-09
>   - sourcedata/freesurfer/sub-10
>   - sourcedata/freesurfer/sub-11
>   - sourcedata/freesurfer/sub-12
>   - sourcedata/freesurfer/sub-13
>   - sourcedata/freesurfer/sub-14
>   - sourcedata/freesurfer/sub-15
>   - sourcedata/freesurfer/sub-16
> _reproman_version: 0.4.1
> _resolved_batch_parameters:
> - sub: '02'
> - sub: '16'
> _resolved_command_str: sourcedata/raw /scratch1/03201/jbwexler/openneuro_derivatives/derivatives/fmriprep/ds000117-fmriprep
>   participant --participant-label '{p[sub]}' -w '/scratch1/03201/jbwexler/work_dir/fmriprep//ds000117_sub-{p[sub]}'
>   -vv --output-spaces MNI152NLin2009cAsym:res-2 anat func fsaverage5 --nthreads 14
>   --omp-nthreads 7 --skip-bids-validation --notrack --fs-license-file /home1/03201/jbwexler/.freesurfer.txt
>   --use-aroma --ignore slicetiming --output-layout bids --cifti-output --resource-monitor
>   --skull-strip-t1w force --mem_mb 37500 --bids-database-dir /tmp --use-syn-sdc
> _spec_version: '1.0'
> _submission_id: null
> batch_parameters:
> - sub=02,16
> command:
> - sourcedata/raw
> - /scratch1/03201/jbwexler/openneuro_derivatives/derivatives/fmriprep/ds000117-fmriprep
> - participant
> - --participant-label
> - '{p[sub]}'
> - -w
> - /scratch1/03201/jbwexler/work_dir/fmriprep//ds000117_sub-{p[sub]}
> - -vv
> - --output-spaces
> - MNI152NLin2009cAsym:res-2
> - anat
> - func
> - fsaverage5
> - --nthreads
> - '14'
> - --omp-nthreads
> - '7'
> - --skip-bids-validation
> - --notrack
> - --fs-license-file
> - /home1/03201/jbwexler/.freesurfer.txt
> - --use-aroma
> - --ignore
> - slicetiming
> - --output-layout
> - bids
> - --cifti-output
> - --resource-monitor
> - --skull-strip-t1w
> - force
> - --mem_mb
> - '37500'
> - --bids-database-dir
> - /tmp
> - --use-syn-sdc
> container: code/containers/bids-fmriprep
> job_name: ds000117-fmriprep
> killjob_factors: .75,.15
> launcher: 'true'
> local_directory: /scratch1/03201/jbwexler/openneuro_derivatives/derivatives/fmriprep/ds000117-fmriprep
> mail_type: END
> mail_user: jbwexler@tutanota.com
> num_nodes: '1'
> num_processes: '2'
> orchestrator: datalad-no-remote
> outputs:
> - sub**
> - sourcedata/freesurfer/**
> queue: small
> resource_id: bc1235e8-b28c-11eb-bce1-e4434b618f52
> resource_name: local
> root_directory: /home1/03201/jbwexler/.reproman/run-root
> submitter: slurm
> walltime: '48:00:00'
> working_directory: /scratch1/03201/jbwexler/openneuro_derivatives/derivatives/fmriprep/ds000117-fmriprep

edit 1 by @yarikoptic: some formatting and added collapsing details around long paste

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions