class_docstr: Object for working with Tripos Mol2 structure files.
  
  Attributes
  ----------
  df : pandas.DataFrame
      DataFrame of a Mol2's ATOM section
  
  mol2_text : str
      Mol2 file contents in string format
  
  code : str
      ID, code, or name of the molecule stored
  
  pdb_path : str
      Location of the MOL2 file that was read in via `read_mol2`
class_docstr_tok: ["Object","for","working","with","Tripos","Mol2","structure","files",".","Attributes","--","--","--","--","--","df",":","pandas.DataFrame","DataFrame","of","a","Mol2","'s","ATOM","section","mol2_text",":","str","Mol2","file","contents","in","string","format","code",":","str","ID",",","code",",","or","name","of","the","molecule","stored","pdb_path",":","str","Location","of","the","MOL2","file","that","was","read","in","via","`","read_mol2","`"]
docstr: Reads Mol2 file from a list into DataFrames
  
  Attributes
  ----------
  mol2_lines : list
      A list of lines containing the mol2 file contents. For example,
      ['@<TRIPOS>MOLECULE\n',
       'ZINC38611810\n',
       '   65    68     0     0     0\n',
       'SMALL\n',
       'NO_CHARGES\n',
       '\n',
       '@<TRIPOS>ATOM\n',
       '      1 C1  -1.1786  2.7011  -4.0323 C.3  1 <0>   -0.1537\n',
       '      2 C2  -1.2950  1.2442  -3.5798 C.3  1 <0>   -0.1156\n',
       ...]
  
  mol2_code : str or None
      Name or ID of the molecule.
  
  columns : dict or None (default: None)
      If None, this methods expects a 9-column ATOM section that contains
      the following columns:
      {0:('atom_id', int), 1:('atom_name', str),
       2:('x', float), 3:('y', float), 4:('z', float),
       5:('atom_type', str), 6:('subst_id', int),
       7:('subst_name', str), 8:('charge', float)}
      If your Mol2 files are formatted differently, you can provide your
      own column_mapping dictionary in a format similar to the one above.
      However, note that not all assert_raise_message methods may be
      supported then.
  
  Returns
  ---------
  self
docstr_tok: ["Reads","Mol2","file","from","a","list","into","DataFrames","Attributes","--","--","--","--","--","mol2_lines",":","list","A","list","of","lines","containing","the","mol2","file","contents",".","For","example",",","[","'","@","<","TRIPOS",">","MOLECULE\\n","'",",","'ZINC38611810\\n","'",",","'","65","68","0","0","0\\n","'",",","'SMALL\\n","'",",","'NO_CHARGES\\n","'",",","'\\n","'",",","'","@","<","TRIPOS",">","ATOM\\n","'",",","'","1","C1","-1.1786","2.7011","-4.0323","C.3","1","<","0",">","-0.1537\\n","'",",","'","2","C2","-1.2950","1.2442","-3.5798","C.3","1","<","0",">","-0.1156\\n","'",",","...","]","mol2_code",":","str","or","None","Name","or","ID","of","the","molecule",".","columns",":","dict","or","None","(","default",":","None",")","If","None",",","this","methods","expects","a","9-column","ATOM","section","that","contains","the","following","columns",":","{","0",":","(","'atom_id","'",",","int",")",",","1",":","(","'atom_name","'",",","str",")",",","2",":","(","'","x","'",",","float",")",",","3",":","(","'","y","'",",","float",")",",","4",":","(","'","z","'",",","float",")",",","5",":","(","'atom_type","'",",","str",")",",","6",":","(","'subst_id","'",",","int",")",",","7",":","(","'subst_name","'",",","str",")",",","8",":","(","'charge","'",",","float",")","}","If","your","Mol2","files","are","formatted","differently",",","you","can","provide","your","own","column_mapping","dictionary","in","a","format","similar","to","the","one","above",".","However",",","note","that","not","all","assert_raise_message","methods","may","be","supported","then",".","Returns","--","--","--","--","-","self"]
code: def read_mol2_from_list(self, mol2_lines, mol2_code, columns=None):
      r"""Reads Mol2 file from a list into DataFrames
  
      Attributes
      ----------
      mol2_lines : list
          A list of lines containing the mol2 file contents. For example,
          ['@<TRIPOS>MOLECULE\n',
           'ZINC38611810\n',
           '   65    68     0     0     0\n',
           'SMALL\n',
           'NO_CHARGES\n',
           '\n',
           '@<TRIPOS>ATOM\n',
           '      1 C1  -1.1786  2.7011  -4.0323 C.3  1 <0>   -0.1537\n',
           '      2 C2  -1.2950  1.2442  -3.5798 C.3  1 <0>   -0.1156\n',
           ...]
  
      mol2_code : str or None
          Name or ID of the molecule.
  
      columns : dict or None (default: None)
          If None, this methods expects a 9-column ATOM section that contains
          the following columns:
          {0:('atom_id', int), 1:('atom_name', str),
           2:('x', float), 3:('y', float), 4:('z', float),
           5:('atom_type', str), 6:('subst_id', int),
           7:('subst_name', str), 8:('charge', float)}
          If your Mol2 files are formatted differently, you can provide your
          own column_mapping dictionary in a format similar to the one above.
          However, note that not all assert_raise_message methods may be
          supported then.
  
      Returns
      ---------
      self
  
      """
      self._load_mol2(mol2_lines, mol2_code, columns)
      return self
  
file_path: biopandas/biopandas/mol2/pandas_mol2.py
imports: import pandas
  import numpy
  from .mol2_io import split_multimol2
label_desc: Use image node_id 6 for calling the PandasMol2 obj's underlying member method code with example usage: obj.read_mol2_from_list(mol2_lines, mol2_code, columns) and returns: self