Added Obiviews specialized for the handling of nucleotide sequences

This commit is contained in:
Celine Mercier
2016-02-25 09:43:27 +01:00
parent ffc68d448f
commit 4df313c54a
5 changed files with 434 additions and 19 deletions

View File

@ -30,6 +30,19 @@
*/
#define OBIVIEW_FILE_NAME "obiviews"
#define VIEW_TYPE_MAX_NAME (1024)
#define VIEW_TYPE_NUC_SEQS "NUC_SEQS_VIEW"
#define NUC_SEQUENCE_COLUMN "NUC_SEQ"
#define NUC_SEQUENCE_AVL "NUC_SEQ_AVL"
#define ID_COLUMN "ID"
#define ID_AVL "ID_AVL"
#define DESCRIPTION_COLUMN "DESCRIPTION"
#define DESCRIPTION_AVL "DESCRIPTION_AVL"
#define LINES_COLUMN_NAME "LINES"
@ -69,6 +82,8 @@ typedef struct Obiview {
int view_number;
char view_type[VIEW_TYPE_MAX_NAME+1];
} Obiview_t, *Obiview_p;
@ -94,6 +109,8 @@ typedef struct Obiview_infos {
Column_reference_t column_references[MAX_NB_OPENED_COLUMNS];
char view_type[VIEW_TYPE_MAX_NAME+1];
} Obiview_infos_t, *Obiview_infos_p;
@ -110,20 +127,26 @@ typedef struct Obiviews_header {
/**
* @brief .
*/
typedef struct Obiviews { // not used
typedef struct Obiviews_infos_all {
Obiviews_header_p header;
Obiview_infos_p views;
Obiview_infos_p view_infos;
} Obiviews_t, *Obiviews_p;
} Obiviews_infos_all_t, *Obiviews_infos_all_p;
Obiview_p obi_new_view_nuc_seqs(OBIDMS_p dms, const char* view_name, Obiview_p view_to_clone, index_t* line_selection);
Obiview_p obi_new_view(OBIDMS_p dms, const char* view_name, Obiview_p view_to_clone, index_t* line_selection);
Obiview_p obi_new_view_cloned_from_name(OBIDMS_p dms, const char* view_name, const char* view_to_clone_name, index_t* line_selection);
Obiview_p obi_new_view_nuc_seqs_cloned_from_name(OBIDMS_p dms, const char* view_name, const char* view_to_clone_name, index_t* line_selection);
Obiview_p obi_open_view(OBIDMS_p dms, const char* view_name);
Obiviews_infos_all_p obi_read_views(OBIDMS_p dms);
int obi_view_add_column(Obiview_p view,
const char* column_name,
obiversion_t version_number,