class_docstr: Wraps nitime.analysis.CoherenceAnalyzer: Coherence/y
class_docstr_tok: ["Wraps","nitime.analysis.CoherenceAnalyzer",":","Coherence\/y"]
docstr: Read from csv in_file and return an array and ROI names
  
  The input file should have a first row containing the names of the
  ROIs (strings)
  
  the rest of the data will be read in and transposed so that the rows
  (TRs) will becomes the second (and last) dimension of the array
docstr_tok: ["Read","from","csv","in_file","and","return","an","array","and","ROI","names","The","input","file","should","have","a","first","row","containing","the","names","of","the","ROIs","(","strings",")","the","rest","of","the","data","will","be","read","in","and","transposed","so","that","the","rows","(","TRs",")","will","becomes","the","second","(","and","last",")","dimension","of","the","array"]
code: def _read_csv(self):
      """
      Read from csv in_file and return an array and ROI names
  
      The input file should have a first row containing the names of the
      ROIs (strings)
  
      the rest of the data will be read in and transposed so that the rows
      (TRs) will becomes the second (and last) dimension of the array
  
      """
      # Check that input conforms to expectations:
      first_row = open(self.inputs.in_file).readline()
      if not first_row[1].isalpha():
          raise ValueError(
              "First row of in_file should contain ROI names as strings of characters"
          )
  
      roi_names = (
          open(self.inputs.in_file)
          .readline()
          .replace('"', "")
          .strip("\n")
          .split(",")
      )
      # Transpose, so that the time is the last dimension:
      data = np.loadtxt(
          self.inputs.in_file, skiprows=1, delimiter=","
      ).T
  
      return data, roi_names
  
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 1 for calling the CoherenceAnalyzer obj's underlying member method code with example usage: obj._read_csv() and returns: data,  roi_names