OBITypes
I think that it would be nice to define a limited subset of atomic/basic types that can be manipulated by the obitools. These type could be specified via several typedef
in a C header file named obitypes.h
I propose the following but not exhaustive atomic types
types | C types | OBIType | Definition |
---|---|---|---|
integer | int32_t | OBIInt_t | a signed integer value |
float | double | OBIFloat_t | a floating value |
boolean | ? | OBIBool_t | a boolean true/false value |
char | char | OBIChar_t | a character |
Two kind of container types
- List of atomic types
- Dictionary of atomic types indexed by string
Type specific to obitools
- taxids
- strings
| index | size_t | OBIIdx_t | an index in a data structure |
typdef enum {
FALSE = 0;
TRUE = 1;
OBIBool_NA= 2;
} OBIBool_t, *OBIBool_p;
We need for each of them to reserve an NA value, that can be define as a macro
#define OBIInt_NA (INT32_MIN)
#define OBIFloat_NA (NAN)
#define OBIIdx_NA (SIZE_MAX)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information