Skip to content

Commit

Permalink
Merge pull request #17 from Hyedryn/tracking_fix
Browse files Browse the repository at this point in the history
Tracking fix
  • Loading branch information
DelinteNicolas authored Apr 21, 2023
2 parents 0c4404c + b98d6ae commit 4bc7011
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion elikopy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ def odf_msmtcsd(self, folder_path=None, num_peaks = 2, peaks_threshold=0.25, mas
f.close()


def tracking(self, folder_path=None, streamline_number:int=100000, max_angle:int=15, cutoff:float=0.1, msmtCSD:bool=True, output_filename:str=None,
def tracking(self, folder_path=None, streamline_number:int=100000, max_angle:int=15, cutoff:float=0.1, msmtCSD:bool=True, output_filename:str="tractogram",
slurm=None, patient_list_m=None, slurm_email=None, slurm_timeout=None, cpus=None, slurm_mem=None):
"""Computes the odf using MSMT-CSD for each subject. The outputs are available in the directories <folder_path>/subjects/<subjects_ID>/dMRI/tractography/.
Expand Down
5 changes: 1 addition & 4 deletions elikopy/individual_subject_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -3463,7 +3463,7 @@ def print_page(self, images):

def tracking_solo(folder_path:str, p:str, streamline_number:int=100000,
max_angle:int=15, cutoff:float=0.1, msmtCSD:bool=True,
output_filename:str=None,core_count:int=1):
output_filename:str='tractogram',core_count:int=1):
""" Computes the whole brain tractogram of a single patient based on the fod obtained from msmt-CSD.
:param folder_path: the path to the root directory.
Expand Down Expand Up @@ -3503,9 +3503,6 @@ def tracking_solo(folder_path:str, p:str, streamline_number:int=100000,
mask_path = folder_path + '/subjects/' + patient_path + '/masks/' + patient_path + "_brain_mask_dilated.nii.gz"
dwi_path = folder_path + '/subjects/' + patient_path + '/dMRI/preproc/' + patient_path + '_dmri_preproc.nii.gz'

if not output_filename:
output_filename='tractogram'

output_file = tracking_path+patient_path+'_'+output_filename+'.tck'

if not os.path.isdir(tracking_path):
Expand Down

0 comments on commit 4bc7011

Please sign in to comment.