Beispiel #1
0
 def _generate_report(self):
     from niworkflows.viz.utils import plot_melodic_components
     plot_melodic_components(melodic_dir=self._melodic_dir,
                             in_file=self.inputs.in_files[0],
                             tr=self.inputs.tr_sec,
                             out_file=self._out_report,
                             compress=self.inputs.compress_report,
                             report_mask=self.inputs.report_mask)
 def _generate_report(self):
     from niworkflows.viz.utils import plot_melodic_components
     plot_melodic_components(melodic_dir=self._melodic_dir,
                             in_file=self.inputs.in_files[0],
                             tr=self.inputs.tr_sec,
                             out_file=self.inputs.out_report,
                             compress=self.inputs.compress_report,
                             report_mask=self.inputs.report_mask)
Beispiel #3
0
 def _generate_report(self):
     from niworkflows.viz.utils import plot_melodic_components
     plot_melodic_components(melodic_dir=self.inputs.melodic_dir,
                             in_file=self.inputs.in_file,
                             out_file=self.inputs.out_report,
                             compress=self.inputs.compress_report,
                             report_mask=self.inputs.report_mask,
                             noise_components_file=self._noise_components_file
                             )
 def _generate_report(self):
     from niworkflows.viz.utils import plot_melodic_components
     plot_melodic_components(melodic_dir=self.inputs.melodic_dir,
                             in_file=self.inputs.in_file,
                             out_file=self.inputs.out_report,
                             compress=self.inputs.compress_report,
                             report_mask=self.inputs.report_mask,
                             noise_components_file=self._noise_components_file
                             )
Beispiel #5
0
 def _generate_report(self):
     from niworkflows.viz.utils import plot_melodic_components
     mix = os.path.join(self._melodic_dir, "melodic_mix")
     if not os.path.exists(mix):
         self._out_report = self.inputs.out_report.replace('svg', 'html')
         snippet = '<h4>MELODIC did not converge, no output</h4>'
         with open(self._out_report, 'w') as fobj:
             fobj.write(snippet)
         return
     plot_melodic_components(melodic_dir=self._melodic_dir,
                             in_file=self.inputs.in_files[0],
                             tr=self.inputs.tr_sec,
                             out_file=self.inputs.out_report,
                             compress=self.inputs.compress_report,
                             report_mask=self.inputs.report_mask)