Skip to content

Commit

Permalink
modify the screenout
Browse files Browse the repository at this point in the history
  • Loading branch information
jessieren committed Aug 16, 2017
1 parent 79353b7 commit 4f06613
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions vhm.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
if os.path.exists(preCountKmerOut) :
os.system("cp " + preCountKmerOut + " " + vhmPath)
else :
sys.stderr.write( "ERROR: can't find file " + preCountKmerOut + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preCountKmerOut + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + preCountKmerOut + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preCountKmerOut + " \n Please run make under the main directory! \n" )
sys.exit(0)
else :
## can't recognize OS, try to compile
Expand All @@ -100,8 +100,8 @@
if os.path.exists(countKmerCpp) :
os.system("g++ " + countKmerCpp + " -o " + countKmerOut + " -std=c++0x" )
else :
sys.stderr.write( "ERROR: can't find file " + countKmerCpp + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + countKmerCpp + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + countKmerCpp + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + countKmerCpp + " \n Please run make under the main directory! \n" )
sys.exit(0)

os.system("chmod 777 " + countKmerOut)
Expand All @@ -119,8 +119,8 @@
if os.path.exists(preComputeMeasureOut) :
os.system("cp " + preComputeMeasureOut + " " + vhmPath)
else :
sys.stderr.write( "ERROR: can't find file " + preComputeMeasureOut + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preComputeMeasureOut + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + preComputeMeasureOut + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preComputeMeasureOut + " \n Please run make under the main directory! \n" )
sys.exit(0)
else :
## can't recognize OS, try to compile
Expand All @@ -131,8 +131,8 @@
if os.path.exists(computeMeasureCpp) :
os.system("g++ " + computeMeasureCpp + " -o " + computeMeasureOut + " -std=c++0x" )
else :
sys.stderr.write( "ERROR: can't find file " + computeMeasureCpp + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + computeMeasureCpp + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + computeMeasureCpp + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + computeMeasureCpp + " \n Please run make under the main directory! \n" )
sys.exit(0)

os.system("chmod 777 " + computeMeasureOut)
Expand All @@ -149,8 +149,8 @@
if os.path.exists(preComputed2starOut) :
os.system("cp " + preComputed2starOut + " " + vhmPath)
else :
sys.stderr.write( "ERROR: can't find file " + preComputed2starOut + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preComputed2starOut + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + preComputed2starOut + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preComputed2starOut + " \n Please run make under the main directory! \n" )
sys.exit(0)
else :
## can't recognize OS, try to compile
Expand All @@ -161,8 +161,8 @@
if os.path.exists(computed2starCpp) :
os.system("g++ " + computed2starCpp + " -o " + computed2starOut + " -std=c++0x" )
else :
sys.stderr.write( "ERROR: can't find file " + computed2starCpp + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + computed2starCpp + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + computed2starCpp + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + computed2starCpp + " \n Please run make under the main directory! \n" )
sys.exit(0)

os.system("chmod 777 " + computed2starOut)
Expand Down
24 changes: 12 additions & 12 deletions vhm_NGS.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
if os.path.exists(preCountKmerOut) :
os.system("cp " + preCountKmerOut + " " + vhmPath)
else :
sys.stderr.write( "ERROR: can't find file " + preCountKmerOut + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preCountKmerOut + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + preCountKmerOut + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preCountKmerOut + " \n Please run make under the main directory! \n" )
sys.exit(0)
else :
## can't recognize OS, try to compile
Expand All @@ -100,8 +100,8 @@
if os.path.exists(countKmerCpp) :
os.system("g++ " + countKmerCpp + " -o " + countKmerOut + " -std=c++0x" )
else :
sys.stderr.write( "ERROR: can't find file " + countKmerCpp + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + countKmerCpp + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + countKmerCpp + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + countKmerCpp + " \n Please run make under the main directory! \n" )
sys.exit(0)

os.system("chmod 777 " + countKmerOut)
Expand All @@ -119,8 +119,8 @@
if os.path.exists(preComputeMeasureOut) :
os.system("cp " + preComputeMeasureOut + " " + vhmPath)
else :
sys.stderr.write( "ERROR: can't find file " + preComputeMeasureOut + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preComputeMeasureOut + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + preComputeMeasureOut + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preComputeMeasureOut + " \n Please run make under the main directory! \n" )
sys.exit(0)
else :
## can't recognize OS, try to compile
Expand All @@ -131,8 +131,8 @@
if os.path.exists(computeMeasureCpp) :
os.system("g++ " + computeMeasureCpp + " -o " + computeMeasureOut + " -std=c++0x" )
else :
sys.stderr.write( "ERROR: can't find file " + computeMeasureCpp + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + computeMeasureCpp + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + computeMeasureCpp + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + computeMeasureCpp + " \n Please run make under the main directory! \n" )
sys.exit(0)

os.system("chmod 777 " + computeMeasureOut)
Expand All @@ -149,8 +149,8 @@
if os.path.exists(preComputed2starOut) :
os.system("cp " + preComputed2starOut + " " + vhmPath)
else :
sys.stderr.write( "ERROR: can't find file " + preComputed2starOut + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preComputed2starOut + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + preComputed2starOut + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + preComputed2starOut + " \n Please run make under the main directory! \n" )
sys.exit(0)
else :
## can't recognize OS, try to compile
Expand All @@ -161,8 +161,8 @@
if os.path.exists(computed2starCpp) :
os.system("g++ " + computed2starCpp + " -o " + computed2starOut + " -std=c++0x" )
else :
sys.stderr.write( "ERROR: can't find file " + computed2starCpp + ". \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + computed2starCpp + ". \n Please run make under the main directory! \n" )
sys.stderr.write( "ERROR: can't find file " + computed2starCpp + " \n Please run make under the main directory! \n" )
filelog.write( "ERROR: can't find file " + computed2starCpp + " \n Please run make under the main directory! \n" )
sys.exit(0)

os.system("chmod 777 " + computed2starOut)
Expand Down

0 comments on commit 4f06613

Please sign in to comment.