Skip to content

Commit

Permalink
LICENSE
Browse files Browse the repository at this point in the history
  • Loading branch information
fansalon committed Jul 1, 2021
1 parent 6e392ca commit 2d74af8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions TEspeX.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ def checkSampleFile(sfile,paired):
# check the expected number of fq is reported (2 if PE,1 if SE)
if paired == "T":
if len(line) != 2:
print("ERROR: --paired T is specified but the --sample file contains only 1 column at line %s" % (str(ct)))
print("ERROR: --paired T is specified therefore 2 columns are expected in the --sample file. However, %s are detected at line %s" % (str(len(line)),str(ct)))
sys.exit()
else:
if len(line) != 1:
print("ERROR: --paired F is specified but the --sample file does not contain only 1 column at line %s" % (str(ct)))
print("ERROR: --paired F is specified therefore 1 column is expected in the --sample file. However, %s are detected at line %s" % (str(len(line)),str(ct)))
sys.exit()
for ln in line:
# check is full path
Expand Down
4 changes: 2 additions & 2 deletions wrapper_slurm.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def checkSampleFile(sfile,paired):
# check the expected number of fq is reported (2 if PE,1 if SE)
if paired == "T":
if len(line) != 2:
print("ERROR: --paired T is specified but the --sample file contains only 1 column at line %s" % (str(ct)))
print("ERROR: --paired T is specified therefore 2 columns are expected in the --sample file. However, %s are detected at line %s" % (str(len(line)),str(ct)))
sys.exit()
else:
if len(line) != 1:
print("ERROR: --paired F is specified but the --sample file does not contain only 1 column at line %s" % (str(ct)))
print("ERROR: --paired F is specified therefore 1 column is expected in the --sample file. However, %s are detected at line %s" % (str(len(line)),str(ct)))
sys.exit()
for ln in line:
# check is full path
Expand Down

0 comments on commit 2d74af8

Please sign in to comment.