Added a C function to add a COUNT column to a view with all lines set to
1
This commit is contained in:
@ -51,6 +51,9 @@
|
||||
*/
|
||||
#define QUALITY_COLUMN "QUALITY" /**< The name of the column containing the sequence qualities
|
||||
* in NUC_SEQS_VIEW views.
|
||||
*/
|
||||
#define COUNT_COLUMN "COUNT" /**< The name of the column containing the sequence counts
|
||||
* in NUC_SEQS_VIEW views.
|
||||
*/
|
||||
|
||||
|
||||
@ -507,6 +510,23 @@ int obi_select_lines(Obiview_p view, index_t* line_nbs);
|
||||
int obi_save_and_close_view(Obiview_p view);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Creates an OBI_INT column with the line count of the view it belongs to, and sets all lines to 1.
|
||||
*
|
||||
* @warning The number of lines set corresponds to the line count of the view.
|
||||
*
|
||||
* @param view A pointer on the view.
|
||||
*
|
||||
* @returns A value indicating the success of the operation.
|
||||
* @retval 0 if the operation was successfully completed.
|
||||
* @retval -1 if an error occurred.
|
||||
*
|
||||
* @since July 2017
|
||||
* @author Celine Mercier (celine.mercier@metabarcoding.org)
|
||||
*/
|
||||
int obi_create_auto_count_column(Obiview_p view);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Recovers an obiblob from an OBIDMS column containing indices referring to obiblobs,
|
||||
* using the index of the element in the line, and the column pointer, in the context of a view.
|
||||
|
Reference in New Issue
Block a user