@@ -910,6 +910,7 @@ static void usage(args_t *args)
910910 fprintf (stderr , "\n" );
911911 fprintf (stderr , "Input/output options:\n" );
912912 fprintf (stderr , " -A, --keep-alts Keep all possible alternate alleles at variant sites\n" );
913+ fprintf (stderr , " -*, --keep-unseen-allele Keep the unobserved allele <*> or <NON_REF>\n" );
913914 fprintf (stderr , " -a, --annotate LIST Optional tags to output (lowercase allowed); '?' to list available tags\n" );
914915 fprintf (stderr , " -F, --prior-freqs AN,AC Use prior allele frequencies, determined from these pre-filled tags\n" );
915916 fprintf (stderr , " -G, --group-samples FILE|- Group samples by population (file with \"sample\\tgroup\") or \"-\" for single-sample calling.\n" );
@@ -987,6 +988,7 @@ int main_vcfcall(int argc, char *argv[])
987988 {"targets-file" ,required_argument ,NULL ,'T' },
988989 {"threads" ,required_argument ,NULL ,9 },
989990 {"keep-alts" ,no_argument ,NULL ,'A' },
991+ {"keep-unseen-allele" ,no_argument ,NULL ,'*' },
990992 {"insert-missed" ,no_argument ,NULL ,'i' },
991993 {"skip-Ns" ,no_argument ,NULL ,'N' }, // now the new default
992994 {"keep-masked-refs" ,no_argument ,NULL ,'M' },
@@ -1008,7 +1010,7 @@ int main_vcfcall(int argc, char *argv[])
10081010 };
10091011
10101012 char * tmp = NULL ;
1011- while ((c = getopt_long (argc , argv , "h?o:O:r:R:s:S:t:T:ANMV :vcmp:C:n:P:f:a:ig:XYF:G:" , loptions , NULL )) >= 0 )
1013+ while ((c = getopt_long (argc , argv , "h?o:O:r:R:s:S:t:T:A*NMV :vcmp:C:n:P:f:a:ig:XYF:G:" , loptions , NULL )) >= 0 )
10121014 {
10131015 switch (c )
10141016 {
@@ -1026,6 +1028,7 @@ int main_vcfcall(int argc, char *argv[])
10261028 case 'M' : args .flag &= ~CF_ACGT_ONLY ; break ; // keep sites where REF is N
10271029 case 'N' : args .flag |= CF_ACGT_ONLY ; break ; // omit sites where first base in REF is N (the new default)
10281030 case 'A' : args .aux .flag |= CALL_KEEPALT ; break ;
1031+ case '*' : args .aux .flag |= CALL_KEEP_UNSEEN ; break ;
10291032 case 'c' : args .flag |= CF_CCALL ; break ; // the original EM based calling method
10301033 case 'i' : args .flag |= CF_INS_MISSED ; break ;
10311034 case 'v' : args .aux .flag |= CALL_VARONLY ; break ;
0 commit comments