Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/bcgsc/NanoSim
Browse files Browse the repository at this point in the history
  • Loading branch information
cheny19 committed Jan 24, 2020
2 parents b5d7c31 + 5771e6b commit 3b8d3da
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,7 @@ def main():
parser_g.print_help(sys.stderr)
sys.exit(1)

if kmer_bias and basecaller == '':
if kmer_bias and basecaller is None:
print("\nPlease input basecaller to simulate homopolymer contraction and expansion events from\n")
parser_g.print_help(sys.stderr)
sys.exit(1)
Expand Down Expand Up @@ -1453,8 +1453,8 @@ def main():
parser_t.print_help(sys.stderr)
sys.exit(1)

if kmer_bias and (basecaller == '' or read_type == ''):
print("\nPlease input basecaller and read_type to simulate homopolymer contraction and expansion events"
if kmer_bias and (basecaller is None or read_type is None):
print("\nPlease input basecaller and read_type to simulate homopolymer contraction and expansion events "
"from\n")
parser_t.print_help(sys.stderr)
sys.exit(1)
Expand All @@ -1474,7 +1474,6 @@ def main():
parser_t.print_help(sys.stderr)
sys.exit(1)


print("\nrunning the code with following parameters:\n")
print("ref_g", ref_g)
print("ref_t", ref_t)
Expand Down

0 comments on commit 3b8d3da

Please sign in to comment.