Skip to content

Commit dfed413

Browse files
committed
change print to py3 format
1 parent 675d5ed commit dfed413

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

N50.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
#@Date: 2016-03-31 16:47:07
44
#@Author: runsheng, runsheng.lee@gmail.com
55

6-
# todo: add reletive path support for the script
7-
86
from Bio import SeqIO
97
import argparse
108
import os,sys
@@ -37,15 +35,13 @@ def N50_np(len_np, cut=50):
3735
if count>=cutoff:
3836
break
3937

40-
print "N%d is %d bp." % (cut, i)
38+
print ( "N%d is %d bp." % (cut, i))
4139

4240
return i
4341

4442

4543

4644
if __name__=="__main__":
47-
#filedir = sys.path.append(os.path.realpath('..'))
48-
#print filedir
4945
parser = argparse.ArgumentParser("""
5046
Usage: N50.py fastafile.fa -c 50
5147
""")

0 commit comments

Comments
 (0)