Advertisement
Guest User

Untitled

a guest
Jul 4th, 2015
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. cygwin_bash_path = 'D:/Cygwin/bin/bash.exe'
  2. from subprocess import check_call, CalledProcessError
  3. arguments = [cygwin_bash_path, bedtools_exe_path, 'intersect', '-a', gene_bed_file, '-b',
  4.              snp_bed_file, '-wa', '-wb']
  5.  
  6. with open(output_file,"w") as f:
  7.     try:
  8.         check_call(arguments,stdout=f)
  9.     except CalledProcessError as e:
  10.         print(e.returncode)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement