From 4c13c5f96f2ee370324de582b3b836efc3972c85 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Thu, 6 Mar 2014 11:20:34 -0500 Subject: use basename in otu headers --- src/c/multifasta_to_otu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/c/multifasta_to_otu.c b/src/c/multifasta_to_otu.c index 32cc3e9..5c2b23d 100644 --- a/src/c/multifasta_to_otu.c +++ b/src/c/multifasta_to_otu.c @@ -469,9 +469,9 @@ int main(int argc, char **argv) { // print our filename headers for(i = 0; i < dir_count - 1; i++) { - fprintf(output_fh, "%s\t", filenames[i]); + fprintf(output_fh, "%s\t", basename(filenames[i])); } - fprintf(output_fh, "%s\n", filenames[dir_count - 1]); + fprintf(output_fh, "%s\n", basename(filenames[dir_count - 1])); for(j = 0; j < sequences; j++) { -- cgit v1.2.3