aboutsummaryrefslogtreecommitdiff
path: root/kmer_frequency_per_sequence.c
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-09-11 09:43:33 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2013-09-11 09:43:33 -0400
commit12fd24e056d18e9f7ee8e1e47a42e47c843c98ff (patch)
treea359b48441b1f3cbe9561a26a9a273fd9d5c6fa4 /kmer_frequency_per_sequence.c
parentf52d24cd7099fc930fca785ec65401de50cd931d (diff)
move declarations to top, make sure to use the appropriate type
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] != '>') {