aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2014-03-03 14:31:13 -0500
committerCalvin Morrison <mutantturkey@gmail.com>2014-03-03 14:31:13 -0500
commit40b612fa50531bb166d635a9a9965d97afb14be1 (patch)
tree6935fbd98d50da169918731d21f46b3ac235da69
parent59792037540e6b50e2464643fa0311da2636c4b9 (diff)
update arguemnts, make {fg,bg}_genome_length global
-rwxr-xr-xsrc/score_mers.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/score_mers.py b/src/score_mers.py
index 5cfb974..7fa2b53 100755
--- a/src/score_mers.py
+++ b/src/score_mers.py
@@ -20,9 +20,12 @@ if(len(sys.argv) == 5):
fg_fasta_fn = sys.argv[2]
bg_fasta_fn = sys.argv[3]
output_file = sys.argv[4]
+
+ fg_genome_length = os.path.getsize(fg_fasta_fn)
+ bg_genome_length = os.path.getsize(bg_fasta_fn)
else:
print "please specify your inputs"
- print "ex: select_mers.py fg_counts_file fg_fasta_file bg_counts_file bg_fasta_file output_file"
+ print "ex: score_mers.py selectivity_file fg_fasta_file bg_fasta_file"
exit()
# empty class to fill up mer information with