[med-svn] [Git][med-team/segemehl][upstream] New upstream version 0.3.2

Andreas Tille gitlab at salsa.debian.org
Tue Dec 4 14:54:50 GMT 2018


Andreas Tille pushed to branch upstream at Debian Med / segemehl


Commits:
c43e3da4 by Andreas Tille at 2018-12-04T09:13:56Z
New upstream version 0.3.2
- - - - -


10 changed files:

- Makefile
- Makefile.bak
- include/version.h
- include/version.h.bak
- libs/biofiles.c
- libs/gzidx.c
- libs/haarz.c
- libs/manopt.c
- libs/multicharseq.c
- libs/samio.c


Changes:

=====================================
Makefile
=====================================
@@ -1,10 +1,10 @@
 CC?=gcc
 LD=${CC}
-CFLAGS=  -Wall -pedantic -std=c99 -g -O3 -DSORTEDUNMAPPED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDBGNFO -DSHOWALIGN -DDBGLEVEL=0 -DPROGNFO -Ilibs -Ilibs/sufarray -Isamtools
+CFLAGS +=  -Wall -pedantic -std=c99 -g -O3 -DSORTEDUNMAPPED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDBGNFO -DSHOWALIGN -DDBGLEVEL=0 -DPROGNFO -Ilibs -Ilibs/sufarray -Isamtools
 CFLAGS += `pkg-config --cflags htslib`
 INC := -I include
 CTAGS = ctags > tags
-LIB = -lm -lpthread -lz -lncurses -L libs -lform -lmenu -L/usr/local/lib/
+LIB += -lm -lpthread -lz -lncurses -L libs -lform -lmenu -L/usr/local/lib/
 LIB += `pkg-config --libs htslib`
 LIB += "-Wl,-rpath,`pkg-config --variable=libdir htslib`"
 
@@ -30,7 +30,7 @@ LIBOBJECTS :=  $(patsubst $(LIBDIR)/%,$(BUILDDIR)/%,$(LIBSOURCES:.$(SRCEXT)=.o))
 
 $(PRGTARGETS): $(OBJECTS)
 	@echo "Linking $@";	
-	$(LD) $(LIBOBJECTS) $(BUILDDIR)/$@.o -o $(TARGETDIR)/$@$(TARGETEXT) $(LIB)
+	$(LD) $(LIBOBJECTS) $(BUILDDIR)/$@.o -o $(TARGETDIR)/$@$(TARGETEXT) $(LIB) $(LDFLAGS)
 
 
 $(BUILDDIR)/%.o: $(LIBDIR)/%.c


=====================================
Makefile.bak
=====================================
@@ -1,10 +1,10 @@
 CC?=gcc
 LD=${CC}
-CFLAGS=  -Wall -pedantic -std=c99 -g -O3 -DSORTEDUNMAPPED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDBGNFO -DSHOWALIGN -DDBGLEVEL=0 -DPROGNFO -Ilibs -Ilibs/sufarray -Isamtools
+CFLAGS +=  -Wall -pedantic -std=c99 -g -O3 -DSORTEDUNMAPPED -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DDBGNFO -DSHOWALIGN -DDBGLEVEL=0 -DPROGNFO -Ilibs -Ilibs/sufarray -Isamtools
 CFLAGS += `pkg-config --cflags htslib`
 INC := -I include
 CTAGS = ctags > tags
-LIB = -lm -lpthread -lz -lncurses -L libs -lform -lmenu -L/usr/local/lib/
+LIB += -lm -lpthread -lz -lncurses -L libs -lform -lmenu -L/usr/local/lib/
 LIB += `pkg-config --libs htslib`
 LIB += "-Wl,-rpath,`pkg-config --variable=libdir htslib`"
 
@@ -30,7 +30,7 @@ LIBOBJECTS :=  $(patsubst $(LIBDIR)/%,$(BUILDDIR)/%,$(LIBSOURCES:.$(SRCEXT)=.o))
 
 $(PRGTARGETS): $(OBJECTS)
 	@echo "Linking $@";	
-	$(LD) $(LIBOBJECTS) $(BUILDDIR)/$@.o -o $(TARGETDIR)/$@$(TARGETEXT) $(LIB)
+	$(LD) $(LIBOBJECTS) $(BUILDDIR)/$@.o -o $(TARGETDIR)/$@$(TARGETEXT) $(LIB) $(LDFLAGS)
 
 
 $(BUILDDIR)/%.o: $(LIBDIR)/%.c


=====================================
include/version.h
=====================================
@@ -24,11 +24,11 @@
 
 
 
-#define VERSION "v0.3.0"
+#define VERSION "0.3.2"
 
-#define REVISION "g0690723"
+#define REVISION "g664b3dd"
 
-#define TIME "2018-10-02 21:03:46 +0200"
+#define TIME "2018-11-11 17:18:49 +0100"
 
 
 


=====================================
include/version.h.bak
=====================================
@@ -12,6 +12,6 @@
 
 
 #define VERSION "v0.3.0"
-#define REVISION "g0690723"
-#define TIME "2018-10-02 21:03:46 +0200"
+#define REVISION "g664b3dd"
+#define TIME "2018-11-11 17:18:49 +0100"
 


=====================================
libs/biofiles.c
=====================================
@@ -1586,7 +1586,7 @@ bl_fastxAddMate(void *space,
 
     if(bl_fastaCheckMateID(f, n, descr, descrlen) == 0) {  
     NFO("The fasta/fastq IDs in both mate files do not match.\n", NULL); 
-    NFO("The first mismatch occured at fastq number %u\n", n);
+    NFO("The first mismatch occurred at fastq number %u\n", n);
     NFO("Exiting.\n", NULL);
     exit(EXIT_FAILURE);
     }
@@ -3448,7 +3448,7 @@ bl_annotationRead (void *space, char *fn) {
   } else if(!strcmp(suf, ".gff") || !strcmp(suf, ".gff3")) {
    annot = bl_GFFread(NULL, fn); 
   } else {
-    NFO("please provide a bed or gff file with the approriate extension.\n", NULL);
+    NFO("please provide a bed or gff file with the appropriate extension.\n", NULL);
     exit(EXIT_FAILURE);
   }
   return annot;


=====================================
libs/gzidx.c
=====================================
@@ -554,7 +554,7 @@ int bl_bgzFillStream(FILE *fp, unsigned char *input, z_stream *strm) {
   n = fread(&input[strm->avail_in], 1, CHUNK-strm->avail_in, fp);
   if (ferror(fp)) {
     fprintf(stderr, "error reading bgz file.\n");
-    perror("The following error occured:");
+    perror("The following error occurred:");
     exit(EXIT_FAILURE);
   }
 


=====================================
libs/haarz.c
=====================================
@@ -413,7 +413,7 @@ int main(int argc,char** argv) {
   prg = manopt_getopts(&prgset, MIN(argc,2), argv);
 
   if(prg->noofvalues == 1) { 
-    manopt_help(&prgset, "programm needs to be selected\n");
+    manopt_help(&prgset, "program needs to be selected\n");
   }
 
   manopt_initoptionset(&optset, argv[0], NULL, 
@@ -833,7 +833,7 @@ int main(int argc,char** argv) {
     }
 
 
-    bl_BEDwrite(ptr, mspl.noofitems, stdout);
+    //bl_BEDwrite(ptr, mspl.noofitems, stdout);
     NFO("summarizing %d splits.\n", mspl.noofitems);
     bl_splitSummarize(stdout, &mspl, mintotalsplit, minmedianqual, nostrand); 
 
@@ -848,7 +848,7 @@ int main(int argc,char** argv) {
     FREEMEMORY(NULL, unflagged);
 
   } else {
-    manopt_help(&prgset, "unkown program selected\n");
+    manopt_help(&prgset, "unknown program selected\n");
   }
 
   manopt_destructoptionset(&optset);


=====================================
libs/manopt.c
=====================================
@@ -1039,7 +1039,7 @@ manopt_checkconstraint(manopt_optionset* optset,
     case MANOPT_BLOCKSEPARATOR:
       break;
     default:
-      manopt_help(optset, "unkown option %s type\n", argset->args[arg].flagname);
+      manopt_help(optset, "unknown option %s type\n", argset->args[arg].flagname);
       break;
   }
 


=====================================
libs/multicharseq.c
=====================================
@@ -423,7 +423,7 @@ initMultiCharSeqAlignment(
   a->refstart = MAX(sub_start, (Lint)pos-loff);
   
   if(a->refstart > sub_end) {
-    fprintf(stderr, "refstart > substart: skiping MultiCharSeqAlignment\n");
+    fprintf(stderr, "refstart > substart: skipping MultiCharSeqAlignment\n");
     return 0;
   }
 
@@ -480,7 +480,7 @@ initMultiCharSeqAlignmentOpt(
 
   //this should not happen  
   if(a->refstart > sub_end) {
-    fprintf(stderr, "refstart > substart: skiping MultiCharSeqAlignment\n");
+    fprintf(stderr, "refstart > substart: skipping MultiCharSeqAlignment\n");
     return 0;
   }
 


=====================================
libs/samio.c
=====================================
@@ -1292,7 +1292,7 @@ bl_samprintSamlist (samlist_t *l, mapping_t* m, segemehl_t *nfo)
       bl_samcloseDevice(fx, nfo);
       fx = NULL;
     }
-  } else {
+  } else if(nfo->bamdev) {
     for(i=0; i < l->noofrecs; i++) {
       bl_bamPrintBamrec(nfo->bamdev, &l->recs[i], nfo->bamhdr, nfo->mtx3);
     }
@@ -1378,10 +1378,14 @@ bl_samprintEmptyAlign (char *desc, char* seq, char* qual, char hasPaired,
   bl_samsetMultipleHits(&samlist->recs[0], 1);
   bl_samsetMatchId(&samlist->recs[0], 0);
 
-  dev = bl_samgetDevice(NULL, &fx, nfo);
-  bl_samprintSamrec(dev, &samlist->recs[0], lf);
-  bl_samcloseDevice(fx, nfo);
-
+  if(!nfo->bamdev) {
+    dev = bl_samgetDevice(NULL, &fx, nfo);
+    bl_samprintSamrec(dev, &samlist->recs[0], lf);
+    bl_samcloseDevice(fx, nfo);
+  } else {
+    bl_bamPrintBamrec(nfo->bamdev, &samlist->recs[0], nfo->bamhdr, nfo->mtx3);
+  }
+  
   bl_samdestructSamList(samlist);
   FREEMEMORY(NULL, samlist);
 



View it on GitLab: https://salsa.debian.org/med-team/segemehl/commit/c43e3da4a55a7830f3855647bcc93fc3ba7f8913

-- 
View it on GitLab: https://salsa.debian.org/med-team/segemehl/commit/c43e3da4a55a7830f3855647bcc93fc3ba7f8913
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20181204/e469290b/attachment-0001.html>


More information about the debian-med-commit mailing list