class_docstr: Estimate response function(s) for spherical deconvolution using the specified algorithm.
  
  Example
  -------
  
  >>> import nipype.interfaces.mrtrix3 as mrt
  >>> resp = mrt.ResponseSD()
  >>> resp.inputs.in_file = 'dwi.mif'
  >>> resp.inputs.algorithm = 'tournier'
  >>> resp.inputs.grad_fsl = ('bvecs', 'bvals')
  >>> resp.cmdline                               # doctest: +ELLIPSIS
  'dwi2response tournier -fslgrad bvecs bvals dwi.mif wm.txt'
  >>> resp.run()                                 # doctest: +SKIP
  
  # We can also pass in multiple harmonic degrees in the case of multi-shell
  >>> resp.inputs.max_sh = [6,8,10]
  >>> resp.cmdline
  'dwi2response tournier -fslgrad bvecs bvals -lmax 6,8,10 dwi.mif wm.txt'
class_docstr_tok: ["Estimate","response","function","(","s",")","for","spherical","deconvolution","using","the","specified","algorithm",".","Example","--","--","--","-",">",">",">","import","nipype.interfaces.mrtrix3","as","mrt",">",">",">","resp","=","mrt.ResponseSD","(",")",">",">",">","resp.inputs.in_file","=","'dwi.mif'",">",">",">","resp.inputs.algorithm","=","'tournier'",">",">",">","resp.inputs.grad_fsl","=","(","'bvecs","'",",","'bvals","'",")",">",">",">","resp.cmdline","#","doctest",":","+ELLIPSIS","'dwi2response","tournier","-fslgrad","bvecs","bvals","dwi.mif","wm.txt'",">",">",">","resp.run","(",")","#","doctest",":","+SKIP","#","We","can","also","pass","in","multiple","harmonic","degrees","in","the","case","of","multi-shell",">",">",">","resp.inputs.max_sh","=","[","6,8,10","]",">",">",">","resp.cmdline","'dwi2response","tournier","-fslgrad","bvecs","bvals","-lmax","6,8,10","dwi.mif","wm.txt","'"]
code: def _list_outputs(self):
      outputs = self.output_spec().get()
      outputs["wm_file"] = op.abspath(self.inputs.wm_file)
      if self.inputs.gm_file != Undefined:
          outputs["gm_file"] = op.abspath(self.inputs.gm_file)
      if self.inputs.csf_file != Undefined:
          outputs["csf_file"] = op.abspath(self.inputs.csf_file)
      return outputs
  
imports: import os.path
  from ..base import CommandLine, CommandLineInputSpec, Directory, File, InputMultiObject, TraitedSpec, Undefined, isdefined, traits
  from .base import MRTrix3Base, MRTrix3BaseInputSpec
label_desc: Use image node_id 1 for calling the ResponseSD obj's underlying member method code with example usage: obj._list_outputs() and returns: outputs