78e58e35abfe32f6d3a2708e07666af59454d159 hiram Fri Jan 24 08:45:45 2014 -0800 gather in the diaspora of haplotype check routines and add hg38 haplotype recognition refs #11681 diff --git src/inc/common.h src/inc/common.h index dc461d7..83bce11 100644 --- src/inc/common.h +++ src/inc/common.h @@ -1454,16 +1454,20 @@ * which is always GMT. Returns -1 on failure of mktime */ time_t dateToSeconds(const char *date,const char*format); // Convert a string date to time_t boolean dateIsOld(const char *date,const char*format); // Is this string date older than now? boolean dateIsOlderBy(const char *date,const char*format, time_t seconds); // Is this string date older than now by this many seconds? char *dateAddTo(char *date,char *format,int addYears,int addMonths,int addDays); /* Add years,months,days to a formatted date and returns the new date as a cloned string * format is a strptime/strftime format: %F = yyyy-mm-dd */ + +boolean haplotype(const char *name); +/* Is this name a haplotype name ? _hap or _alt in the name */ + #endif /* COMMON_H */