class_docstr: Wraps nitime.analysis.CoherenceAnalyzer: Coherence/y
class_docstr_tok: ["Wraps","nitime.analysis.CoherenceAnalyzer",":","Coherence\/y"]
docstr: Read data from the in_file and generate a nitime TimeSeries object
docstr_tok: ["Read","data","from","the","in_file","and","generate","a","nitime","TimeSeries","object"]
code: def _csv2ts(self):
      """Read data from the in_file and generate a nitime TimeSeries object"""
      from nitime.timeseries import TimeSeries
  
      data, roi_names = self._read_csv()
  
      TS = TimeSeries(
          data=data, sampling_interval=self.inputs.TR, time_unit="s"
      )
  
      TS.metadata = dict(ROIs=roi_names)
  
      return TS
  
file_path: nipype/nipype/interfaces/nitime/analysis.py
imports: import numpy
  import tempfile
  from ...utils.misc import package_check
  from ...utils.filemanip import fname_presuffix
  from .base import NitimeBaseInterface
  from ..base import TraitedSpec, File, Undefined, traits, isdefined, BaseInterfaceInputSpec
label_desc: Use image node_id 2 for calling the CoherenceAnalyzer obj's underlying member method code with example usage: obj._csv2ts() and returns: TS