aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-10-02 18:02:28 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2013-10-02 18:02:28 -0400
commit695878c949449aba04cd48c2453aabe815152670 (patch)
treed9f10bc8bb9e899e24bf80931431c6b56df90b01
parent4d4ca9135928c1b0c848954b1930df5fb7a209c6 (diff)
for kmer frequence per sequence as well
-rw-r--r--kmer_frequency_per_sequence.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kmer_frequency_per_sequence.c b/kmer_frequency_per_sequence.c
index 8f0d6b0..ae15bd2 100644
--- a/kmer_frequency_per_sequence.c
+++ b/kmer_frequency_per_sequence.c
@@ -30,7 +30,7 @@ int main(int argc, char **argv) {
width = (int)pow(4, kmer);
while ((read = getline(&line, &len, fh)) != -1) {
- if(line[0] != '>') {
+ if(line[0] != '>' && read > kmer) {
unsigned int i = 0;
unsigned long long *counts = malloc((width+ 1) * sizeof(unsigned long long));