Views: Files for unfinished views now have the extension
'.obiview_unfinished', renamed to '.obiview' when the view is finished.
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
|
||||
/**
|
||||
* @file obi_align.c
|
||||
* @author Celine Mercier
|
||||
* @author Celine Mercier (celine.mercier@metabarcoding.org)
|
||||
* @date May 4th 2016
|
||||
* @brief Functions handling LCS sequence alignments.
|
||||
*/
|
||||
@ -31,10 +31,6 @@
|
||||
#define DEBUG_LEVEL 0 // TODO has to be defined somewhere else (cython compil flag?)
|
||||
|
||||
|
||||
// TODO
|
||||
// use openMP pragmas
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
*
|
||||
* D E C L A R A T I O N O F T H E P R I V A T E F U N C T I O N S
|
||||
@ -618,12 +614,12 @@ int obi_lcs_align_one_column(OBIDMS_p dms, const char* seq_view_name, const char
|
||||
}
|
||||
|
||||
// Close views
|
||||
if (obi_close_view(seq_view) < 0)
|
||||
if (obi_save_and_close_view(seq_view) < 0)
|
||||
{
|
||||
obidebug(1, "\nError closing the input view after aligning");
|
||||
return -1;
|
||||
}
|
||||
if (obi_close_view(output_view) < 0)
|
||||
if (obi_save_and_close_view(output_view) < 0)
|
||||
{
|
||||
obidebug(1, "\nError closing the output view after aligning");
|
||||
return -1;
|
||||
@ -963,19 +959,19 @@ int obi_lcs_align_two_columns(OBIDMS_p dms,
|
||||
// Close views
|
||||
if (seq2_view != seq1_view)
|
||||
{
|
||||
if (obi_close_view(seq2_view) < 0)
|
||||
if (obi_save_and_close_view(seq2_view) < 0)
|
||||
{
|
||||
obidebug(1, "\nError closing the second input view after aligning");
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
if (obi_close_view(seq1_view) < 0)
|
||||
if (obi_save_and_close_view(seq1_view) < 0)
|
||||
{
|
||||
obidebug(1, "\nError closing the first input view after aligning");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (obi_close_view(output_view) < 0)
|
||||
if (obi_save_and_close_view(output_view) < 0)
|
||||
{
|
||||
obidebug(1, "\nError closing the output view after aligning");
|
||||
return -1;
|
||||
|
Reference in New Issue
Block a user