Skip to content

Commit

Permalink
Merge pull request #6 from pegahta/master
Browse files Browse the repository at this point in the history
Add missing blat cmnd option and missing binaidp import
  • Loading branch information
Marghoob Mohiyuddin committed Aug 19, 2014
2 parents c7cccd4 + e905632 commit e075e15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/main/python/MLE_MT.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import sys
import os
import threading
from binaidp import log_command

def GetPathAndName(pathfilename):
ls=pathfilename.split('/')
Expand Down
15 changes: 10 additions & 5 deletions src/main/python/runIDP.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,14 @@ def debug_report(var):
################################################################################
# Initialize variables from configuration
python_path = "/usr/bin/python"
blat_executable_pathfilename = "./blat"
gmap_executable_pathfilename = "./gmap"
seqmap_executable_pathfilename = "./seqmap"
blat_executable_pathfilename = "blat"
gmap_executable_pathfilename = "gmap"
seqmap_executable_pathfilename = "seqmap"

blat_path = blat_executable_pathfilename
seqmap_path = seqmap_executable_pathfilename
gmap_path = gmap_executable_pathfilename

LR_gpd_pathfilename = ""
LR_psl_pathfilename = ""
SR_jun_pathfilename = ""
Expand Down Expand Up @@ -304,7 +309,7 @@ def debug_report(var):
gmap_cmd = python_bin_foldername + "gmap_threading.py " + python_path + " " + gmap_path + " -f 1 -t " + str(Nthread) + " " + temp_foldername + "LR_notailspolyA.fa " + " " + gmap_index_pathfoldername + " " + temp_foldername + "LR_notailspolyA.fa.bestpsl"
print_run(gmap_cmd)
else:
blat_cmd = python_bin_foldername + "blat_threading.py " + python_path + " " + blat_path + " " + str(Nthread) + " -t=DNA -q=DNA " + genome_pathfilename + " " + temp_foldername + "LR_notailspolyA.fa " + temp_foldername + "LR_notailspolyA.fa.bestpsl" #JWDEBUG added a python path argument to fix blat_threading.py's call to best_blat.py
blat_cmd = python_bin_foldername + "blat_threading.py " + python_path + " " + blat_path + " " + str(Nthread) + " -t=DNA -q=DNA -noHead " + genome_pathfilename + " " + temp_foldername + "LR_notailspolyA.fa " + temp_foldername + "LR_notailspolyA.fa.bestpsl" #JWDEBUG added a python path argument to fix blat_threading.py's call to best_blat.py
print_run(blat_cmd)

change_psl_cmd = python_bin_foldername + "change_psl_polyA3end_4digit.py " + temp_foldername + "LR_notailspolyA.fa.bestpsl " + temp_foldername + "LR_notailspolyA.fa.3 > " + temp_foldername + "newname4_LR.bestpsl"
Expand All @@ -318,7 +323,7 @@ def debug_report(var):
gmap_cmd = python_bin_foldername + "gmap_threading.py " + python_path + " " + gmap_path + " -f 1 -t " + str(Nthread) + " " + LR_pathfilename + " " + gmap_index_pathfoldername + " " + temp_foldername + "LR.fa.psl"
print_run(gmap_cmd)
else:
blat_cmd = python_bin_foldername + "blat_threading.py " + python_path + " " + blat_path + " " + str(Nthread) + " -t=DNA -q=DNA " + genome_pathfilename + " " + LR_pathfilename + " " + temp_foldername + "LR.fa.psl" #JWDEBUG also did it to this line
blat_cmd = python_bin_foldername + "blat_threading.py " + python_path + " " + blat_path + " " + str(Nthread) + " -t=DNA -q=DNA -noHead " + genome_pathfilename + " " + LR_pathfilename + " " + temp_foldername + "LR.fa.psl" #JWDEBUG also did it to this line
print_run(blat_cmd)

change_psl_cmd = python_bin_foldername + "change_psl_4digit.py " + temp_foldername + "LR.fa.psl > " + temp_foldername + "newname4_LR.bestpsl"
Expand Down

0 comments on commit e075e15

Please sign in to comment.