90f26ce1f4bd4f69b53d11569d4c4efc0c3386b7 braney Tue Dec 20 12:41:19 2016 -0800 make some utilities to turn mafs into bigMafs diff --git src/inc/maf.h src/inc/maf.h index 3e3f06b..095a514 100644 --- src/inc/maf.h +++ src/inc/maf.h @@ -119,30 +119,33 @@ * This will close the open file handle at end as well. */ struct mafAli *mafNextWithPos(struct mafFile *mf, off_t *retOffset); /* Return next alignment in FILE or NULL if at end. If retOffset is * non-NULL, return start offset of record in file. */ struct mafFile *mafReadAll(char *fileName); /* Read in full maf file */ void mafWriteStart(FILE *f, char *scoring); /* Write maf header and scoring scheme name (may be null) */ void mafWrite(FILE *f, struct mafAli *maf); /* Write next alignment to file. */ +void mafWriteDelimiter(FILE *f, struct mafAli *maf, char delimiter); +/* Write next alignment to file using delimiter instead of newline. */ + void mafWriteEnd(FILE *f); /* Write end tag of maf file. */ void mafWriteAll(struct mafFile *mf, char *fileName); /* Write out full mafFile. */ struct mafComp *mafMayFindComponent(struct mafAli *maf, char *src); /* Find component of given source. Return NULL if not found. */ struct mafComp *mafMayFindComponentDb(struct mafAli *maf, char *db); /* Find component of given database or source. Return NULL if not found. */ struct mafComp *mafFindComponent(struct mafAli *maf, char *src); /* Find component of given source or die trying. */