示例#1
0
 def test_copy_files_to_3dot_dir_2(self):
     # act
     Paths.set_up_paths(use_cluster=False)
     GUM.copy_files_to_3dot_dir(
         path_src_dir='/Users/u0120577/ROB_HOMOLOGY_HUMAN/RepairPDBs',
         path_dst_dir=Paths.REPO_PDBS,
         file_extension='.pdb',
         starting_num=1,
         num_to_copy_per_subdir=1000)
     # assert
     self.assertTrue(
         os.path.exists(
             os.path.join(Paths.REPO_PDBS, 'pdbs_1000', '2001...3000',
                          'RepairPDB_2031.pdb')),
         'No file at  ~/REPO_PDB_FASTA/pdbs/pdbs_1000/2001...3000/RepairPDB_2031.pdb found'
     )
示例#2
0
 def test_copy_files_to_3dot_dir_1(self):
     # act
     Paths.set_up_paths(use_cluster=False)
     # GUM.copy_files_to_3dot_dir(path_src_dir='/Users/u0120577/ROB_HOMOLOGY_HUMAN/Fasta',
     GUM.copy_files_to_3dot_dir(
         path_src_dir='/Users/u0120577/ROB_HOMOLOGY_HUMAN/pub_hg_fasta',
         path_dst_dir=Paths.REPO_FASTAS + '/29611_fastas_1000',
         file_extension=Str.FSTAEXT.value,
         starting_num=1,
         num_to_copy_per_subdir=1000)
     # assert
     self.assertTrue(
         os.path.exists(os.path.join(Paths.REPO_FASTAS,
                                     '29611_fastas_1000')),
         'No folder at  ~/REPO_PDB_FASTA/fastas/29611_fastas_1000 found')
     self.assertTrue(
         os.path.exists(
             os.path.join(Paths.REPO_FASTAS, '29611_fastas_1000',
                          '1...1000')),
         'No folder at  ~/REPO_PDB_FASTA/fastas/29611_fastas_1000/1...1000 found'
     )
     self.assertTrue(
         os.path.exists(
             os.path.join(Paths.REPO_FASTAS, '29611_fastas_1000',
                          '2001...3000')),
         'No folder at  ~/REPO_PDB_FASTA/fastas/29611_fastas_1000/2001...3000 found'
     )
     self.assertTrue(
         os.path.exists(
             os.path.join(Paths.REPO_FASTAS, '29611_fastas_1000',
                          '1...1000',
                          '0001c4ad-0f86-3c74-9010-11fe302e765c.fasta')),
         'No file at  ~/REPO_PDB_FASTA/fastas/29611_fastas_1000/1...1000/'
         '0001c4ad-0f86-3c74-9010-11fe302e765c.fasta found')
     self.assertTrue(
         os.path.exists(
             os.path.join(Paths.REPO_FASTAS, '29611_fastas_1000',
                          '2001...3000',
                          '048b6fff-4495-3872-bccf-3d6d77cad903.fasta')),
         'No file at  ~/REPO_PDB_FASTA/fastas/29611_fastas_1000/2001...3000/'
         '048b6fff-4495-3872-bccf-3d6d77cad903.fasta found')