Skip to content
Snippets Groups Projects
Commit 8a246398 authored by marc's avatar marc
Browse files

changed the script to be importable

parent 2fa5b72d
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,8 @@ def calc_gc_perc(seq):
except ZeroDivisionError:
return 0.0
inpseq = sys.argv[1]
print "the sequence is 'CAGG', and has a GC% of {:.2f}".format( calc_gc_perc(inpseq) )
if __name__ == '__main__':
inpseq = sys.argv[1]
print "The sequence '{}' has %GC of {:.2f}".format(
inpseq, calc_gc_perc(inpseq))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment