We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933aa2e commit fb980d3Copy full SHA for fb980d3
best.c
@@ -119,6 +119,11 @@ Tree *best_core(BestConfig *bo)
119
/* mask alignment */
120
ma_apply_mask(bo->ma); /* aply MASKSEQ and eliminate columns consisting of only gaps */
121
ma_filter(bo->ma, bo->is_collapse_splice, bo->qual_thres, bo->is_mask_lss);
122
+
123
+ if (!bo->ma->len) {
124
+ fprintf(stderr, "The filtered alignment has 0 columns. Cannot build a tree\n");
125
+ return 0;
126
+ }
127
128
FILE* f_filtalign = fopen("filtalign.fa", "w");
129
tr_align_output(f_filtalign, bo->ma);
0 commit comments