aboutsummaryrefslogtreecommitdiff
path: root/kmer_frequency_per_sequence.c
diff options
context:
space:
mode:
Diffstat (limited to 'kmer_frequency_per_sequence.c')
-rw-r--r--kmer_frequency_per_sequence.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/kmer_frequency_per_sequence.c b/kmer_frequency_per_sequence.c
index e876d57..7171193 100644
--- a/kmer_frequency_per_sequence.c
+++ b/kmer_frequency_per_sequence.c
@@ -14,9 +14,10 @@ int main(int argc, char **argv) {
long kmer = 6;
size_t len = 0;
ssize_t read;
+ unsigned long width = 0;
if(argc != 3) {
- printf("Please supply a filename, and only a filename\n");
+ printf("Please supply a filename and a kmer\n");
exit(EXIT_FAILURE);
}
@@ -26,8 +27,8 @@ int main(int argc, char **argv) {
exit(EXIT_FAILURE);
}
+ width = (int)pow(4, kmer);
- int width = (int)pow(4, kmer);
while ((read = getline(&line, &len, fh)) != -1) {
if(line[0] != '>') {