We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea4ab43 commit c137015Copy full SHA for c137015
plugins/setGT.c
@@ -229,8 +229,11 @@ bcf1_t *process(bcf1_t *rec)
229
if ( (pass_site && filter_logic==FLT_EXCLUDE) || (!pass_site && filter_logic==FLT_INCLUDE) ) return rec;
230
for (i=0; i<rec->n_sample; i++)
231
{
232
- if ( !smpl_pass[i] && filter_logic==FLT_INCLUDE ) continue;
233
- if ( smpl_pass[i] && filter_logic==FLT_EXCLUDE ) continue;
+ if ( smpl_pass )
+ {
234
+ if ( !smpl_pass[i] && filter_logic==FLT_INCLUDE ) continue;
235
+ if ( smpl_pass[i] && filter_logic==FLT_EXCLUDE ) continue;
236
+ }
237
238
if ( new_mask>_UNPHASED )
239
changed += unphase_gt(gts + i*ngts, ngts);
0 commit comments