original_docstring: 
          split the vcf into seperate files by chromosome
          
docstring: split the vcf into seperate files by chromosome
docstring_tokens: split the vcf into seperate files by chromosome
code: def splitVCF(self,nProc=1):
          '''
          split the vcf into seperate files by chromosome
          '''
          # partition for multiprocessing
          mpID = range(len(self.chromosomes))
          task_q = mp.JoinableQueue()
          result_q = mp.Queue()
          params=self.vcfDir, self.vcf, self.chromosomes
  
          # do the work
          pids = create_procs(nProc, task_q, result_q, params, self.worker_splitVCF)
          assign_task(mpID, task_q, nProc)
          try:
              task_q.join()
          except KeyboardInterrupt:
              print("KeyboardInterrupt")
              sys.exit(0)
  
          return None
code_tokens: def splitVCF ( self , nProc = 1 ) : mpID = range ( len ( self . chromosomes ) ) task_q = mp . JoinableQueue ( ) result_q = mp . Queue ( ) params = self . vcfDir , self . vcf , self . chromosomes pids = create_procs ( nProc , task_q , result_q , params , self . worker_splitVCF ) assign_task ( mpID , task_q , nProc ) try : task_q . join ( ) except KeyboardInterrupt : print ( "KeyboardInterrupt" ) sys . exit ( 0 ) return None
short_docstring: split the vcf into seperate files by chromosome
short_docstring_tokens: split the vcf into seperate files by chromosome
comment: '''
          split the vcf into seperate files by chromosome
          '''$SEP$# partition for multiprocessing$SEP$# do the work