Skip to content

Commit

Permalink
fix typo in fslroi command
Browse files Browse the repository at this point in the history
  • Loading branch information
danielasay committed Jun 27, 2024
1 parent 9767c23 commit dab826d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dwiqc/__version__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
__title__ = 'dwiqc'
__description__ = 'Quality Assurance Pipeline for Diffusion MR Data'
__url__ = 'https://github.com/harvard-nrg/dwiqc'
__version__ = '1.6.5'
__version__ = '1.6.6'
__author__ = 'Neuroinformatics Research Group'
__author_email__ = 'info@neuroinfo.org'
4 changes: 2 additions & 2 deletions dwiqc/tasks/qsiprep.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def extract_vols(self, dwi_full_path, dwi_basename):

def run_fslroi(self, fmap, volume):
vol_index = int(volume) - 1
split_command = f'singularity exec /{self._fsl_sif} /APPS/fsl/bin/fslroi {fmap} {fmap} {volume} {str(vol_index)}'
split_command = f'singularity exec {self._fsl_sif} /APPS/fsl/bin/fslroi {fmap} {fmap} {str(vol_index)} 1'
logger.info(f'executing {split_command}')
proc1 = subprocess.check_output(split_command, shell=True, stderr=subprocess.STDOUT, text=True)

Expand Down Expand Up @@ -401,7 +401,7 @@ def run_extract(self, dwi_full_path, bval_path, epi_out_path):
os.makedirs(self._outdir, exist_ok=True)

try:
extract_command = f'singularity exec /{self._fsl_sif} /APPS/fsl/bin/fslselectvols -i {dwi_full_path} -o {epi_out_path} --vols={b0_string}'
extract_command = f'singularity exec {self._fsl_sif} /APPS/fsl/bin/fslselectvols -i {dwi_full_path} -o {epi_out_path} --vols={b0_string}'
logger.info(f'executing {extract_command}')
bindings = os.environ.get('SINGULARITY_BIND', None)
logger.info(f'SINGULARITY_BIND environment variable contains "{bindings}"')
Expand Down

0 comments on commit dab826d

Please sign in to comment.