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: Returns atom section from mol2 provided as list of strings.
  Raises ValueError if data is not provided in the mol2 format.
docstr_tok: ["Returns","atom","section","from","mol2","provided","as","list","of","strings",".","Raises","ValueError","if","data","is","not","provided","in","the","mol2","format","."]
code: def _get_atomsection(mol2_lst):
      """Returns atom section from mol2 provided as list of strings.
      Raises ValueError if data is not provided in the mol2 format."""
      started = False
      first_idx = None
      for idx, s in enumerate(mol2_lst):
          if s.startswith("@<TRIPOS>ATOM"):
              first_idx = idx + 1
              started = True
          elif started and (s.startswith("@<TRIPOS>") or not s.strip()):
              last_idx_plus1 = idx
              break
      if first_idx is None:
          # Raise error when file contains no @<TRIPOS>ATOM
          # (i.e. file is no mol2 file)
          raise ValueError(
              "Structural data could not be loaded. "
              "Is the input file/text in the mol2 format?"
          )
      return mol2_lst[first_idx:last_idx_plus1]
  
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 8 for calling the PandasMol2 obj's underlying member method code with example usage: obj._get_atomsection(mol2_lst) and returns: mol2_lst