diff options
author | Calvin Morrison <mutantturkey@gmail.com> | 2014-03-13 17:07:27 -0400 |
---|---|---|
committer | Calvin Morrison <mutantturkey@gmail.com> | 2014-03-13 17:07:27 -0400 |
commit | 39a653d1b49c0e4fa5de1783e7aba1743fd66e32 (patch) | |
tree | bdaa6f8de14940edd9ed2d48303761dda11a53ae | |
parent | 787a2341063bf08f50e7cd0e5b3afe797d33259a (diff) |
add coutning points for reverses
-rwxr-xr-x | src/score_mers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/score_mers.py b/src/score_mers.py index 9ea9d4a..c10b04a 100755 --- a/src/score_mers.py +++ b/src/score_mers.py @@ -105,6 +105,10 @@ def populate_locations(input_fn, mers, mer): for line in strstream.stdout: mers[mer].pts.append(int(line)) + cmd = 'tac ' + input_fn + " | tr '[ACGT]' '[TGCA]' | strstreamone " + mer + " " + input_fn + strstream = Popen(cmd, stdout=PIPE, shell=True) + for line in strstream.stdout: + mers[mer].pts.append(int(line)) def apply_filters(combination): for mer in combination: |