Closed tashrifbillah closed 4 years ago
Could you run the following command in your terminal and try again export PATH="/rfanfs/pnl-zorro/software/mrtrix3/release/bin:/rfanfs/pnl-zorro/software/mrtrix3/scripts:$PATH"
Okay that worked.
What's the function of this maskfilter? Since this is coming from mrtrix3
, we need to find something similar in Python or FSL in order to replace that.
We need to document somewhere that the mask is saved in the same directory with name dwib0_{PREFIX}-multi_BrainMask.nii.gz
.
I see an HTML file pulling up on my browser. Who is triggering that? This may not be an option when we are generating masks on a remote terminal without GUI support.
1) maskfilter does filtering operations ( https://mrtrix.readthedocs.io/en/latest/reference/commands/maskfilter.html ) 2) Yeah, I guess we have to write to a log file 3) FSL slicesdir takes snapshots and creates the HTML file , and opens the file "index.html" in browser
FSL slicesdir takes snapshots and creates the HTML file , and opens the file "index.html" in browser
Can you refer to the code?
maskfilter does filtering operations
I know, what filter do you apply there? @SenthilCaesar
FSL slicesdir takes snapshots and creates the HTML file , and opens the file "index.html" in browser
Can you refer to the code?
def quality_control(mask_list, shuffled_list, tmp_path, view='default'):
'''The slicesdir command takes the list of images and creates a simple web-page containing snapshots for each of the images.
Once it has finished running it tells you the name of the web page to open in your web browser, to view the snapshots'''
slices = " "
for i in range(0, len(mask_list)):
str1 = shuffled_list[i]
str2 = mask_list[i]
slices += str1 + " " + str2 + " "
final = "slicesdir -o" + slices
os.chdir(tmp_path)
subprocess.check_output(final, shell=True)
mask_folder = os.path.join(tmp_path, 'slicesdir')
mask_newfolder = os.path.join(tmp_path, 'slicesdir_' + view)
bashCommand = 'mv --force ' + mask_folder + " " + mask_newfolder
process = subprocess.Popen(bashCommand.split(), stdout=subprocess.PIPE)
output, error = process.communicate()
webbrowser.open(os.path.join(tmp_path, 'slicesdir_multi/index.html'))
quality_control()
is called from here:
https://github.com/pnlbwh/CNN-Diffusion-MRIBrain-Segmentation/blob/70a4832a2ebc6e34d341703819016f362bde7659/pipeline/postprocessing.py#L432
We need a -qc
flag to suppress it.
quality_control()
is called from here: https://github.com/pnlbwh/CNN-Diffusion-MRIBrain-Segmentation/blob/70a4832a2ebc6e34d341703819016f362bde7659/pipeline/postprocessing.py#L432We need a
-qc
flag to suppress it.
Sure, I will add the -qc
flag in the code.
Yeah, I guess we have to write to a log file
No you don't. You have to put it in the README or in the help message. We can do it together.
@tashrifbillah added maskfilter: https://github.com/pnlbwh/CNN-Diffusion-MRIBrain-Segmentation/commit/b3deb00c27cb55727394e69e9e53b6cdfdd0a292