]> git.donarmstrong.com Git - biopieces.git/commitdiff
Cholhee fixed bug in lowercase_seq
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 7 Sep 2011 06:25:51 +0000 (06:25 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Wed, 7 Sep 2011 06:25:51 +0000 (06:25 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@1524 74ccb610-7750-0410-82ae-013aeee3265d

code_python/Cjung/lowercase_seq

index deb4e5c51cdd77682ea52abd0f7f22e9bf96cae9..d3c53fe1cf0e9cc2a33ed99a60a18704ac7a8c9d 100755 (executable)
@@ -129,8 +129,9 @@ except getopt.GetoptError, err:
 
 
 if len(opts)==0:
-       lc_seq.print_usage("")
-       sys.exit(1)
+       if sys.stdin.isatty():
+               lc_seq.print_usage("")
+               sys.exit(1)
 
 stream_in = ""
 stream_out = ""
@@ -148,9 +149,6 @@ for o, a in opts:
                sys.exit(1)
        elif o in ("-v", "--verbose"):
                verbose = True
-       #else:
-       #       assert False
-       #       print_usage()
 
 try:
        lc_seq.open_streams(stream_in, stream_out)
@@ -168,11 +166,4 @@ while True:
 
 lc_seq.close_streams()
 
-#source = "Dmel_tRNAs_key_record_tuples.txt"
-#lc_seq.open_stream(source)
-
-#lc_seq.get_record()
-#lc_seq.put_record()
-
-