summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/c/multifasta_to_otu.c2
-rw-r--r--src/c/quikr_functions.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/c/multifasta_to_otu.c b/src/c/multifasta_to_otu.c
index e0fb128..01a4f0e 100644
--- a/src/c/multifasta_to_otu.c
+++ b/src/c/multifasta_to_otu.c
@@ -144,7 +144,7 @@ int main(int argc, char **argv) {
}
input_directory_dh = opendir(input_fasta_directory);
- if(input_fasta_directory == NULL) {
+ if(input_directory_dh == NULL) {
fprintf(stderr, "could not open %s\n", input_fasta_directory);
exit(EXIT_FAILURE);
}
diff --git a/src/c/quikr_functions.c b/src/c/quikr_functions.c
index 6a82320..1f188a9 100644
--- a/src/c/quikr_functions.c
+++ b/src/c/quikr_functions.c
@@ -44,8 +44,8 @@ void normalize_matrix(double *matrix, long height, long width) {
double *load_count_matrix(char *filename, long width, int kmer) {
- double *count_matrix = malloc((width)*sizeof(double));
- char count_command[512];
+ double *count_matrix = malloc(width*sizeof(double));
+ char count_command[1024];
long x = 0;
char *line = NULL;
size_t len = 0;
@@ -115,6 +115,7 @@ double *load_sensing_matrix(char *filename, long height, long width) {
return sensing_matrix;
}
+
char **load_headers(char *filename, long sequences) {
char command[512];
char *line= NULL;