class_docstr: Does sanity checks on pose generation.
class_docstr_tok: ["Does","sanity","checks","on","pose","generation","."]
docstr: Test that VinaPoseGenerator creates pose files.
  
  This test is quite slow and takes about 5 minutes to run on a
  development laptop.
docstr_tok: ["Test","that","VinaPoseGenerator","creates","pose","files",".","This","test","is","quite","slow","and","takes","about","5","minutes","to","run","on","a","development","laptop","."]
code: def test_pocket_vina_poses(self):
      """Test that VinaPoseGenerator creates pose files.
  
      This test is quite slow and takes about 5 minutes to run on a
      development laptop.
      """
      # Let's turn on logging since this test will run for a while
      logging.basicConfig(level=logging.INFO)
      current_dir = os.path.dirname(os.path.realpath(__file__))
      protein_file = os.path.join(current_dir, "1jld_protein.pdb")
      ligand_file = os.path.join(current_dir, "1jld_ligand.sdf")
  
      # Note this may download autodock Vina...
      convex_finder = dc.dock.ConvexHullPocketFinder()
      vpg = dc.dock.VinaPoseGenerator(pocket_finder=convex_finder)
      with tempfile.TemporaryDirectory() as tmp:
          poses, scores = vpg.generate_poses(
              (protein_file, ligand_file),
              exhaustiveness=1,
              num_modes=1,
              num_pockets=2,
              out_dir=tmp,
              generate_scores=True,
          )
  
      assert len(poses) == 2
      assert len(scores) == 2
      from rdkit import Chem
  
      for pose in poses:
          protein, ligand = pose
          assert isinstance(protein, Chem.Mol)
          assert isinstance(ligand, Chem.Mol)
  
file_path: deepchem/deepchem/dock/tests/test_pose_generation.py
imports: import os
  import platform
  import tempfile
  import unittest
  import logging
  import numpy
  import deepchem
  import pytest
label_desc: Use image node_id 8 for calling the TestPoseGeneration obj's underlying member method code with example usage: obj.test_pocket_vina_poses() without return types