Skip to content

Commit a824949

Browse files
committed
Warn about overlapping CDS/ribosomal slippage but do not require --force option
1 parent 7040c10 commit a824949

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

csq.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,14 +1320,10 @@ void tscript_init_cds(args_t *args)
13201320
gf_cds_t *b = tr->cds[i];
13211321
if ( a->beg + a->len - 1 >= b->beg )
13221322
{
1323-
if ( !args->force )
1324-
error("Error: CDS overlap in the transcript %s: %"PRIu32"-%"PRIu32" and %"PRIu32"-%"PRIu32", is this intended (e.g. ribosomal slippage)?\n"
1325-
" Use the --force option to override (at your own risk).\n",
1326-
args->tscript_ids.str[tr->id], a->beg+1,a->beg+a->len, b->beg+1,b->beg+b->len);
13271323
if ( args->verbosity > 0 )
13281324
{
13291325
if ( !args->warned.overlapping_cds || args->verbosity > 1 )
1330-
fprintf(stderr,"Warning: GFF contains overlapping CDS %s: %"PRIu32"-%"PRIu32" and %"PRIu32"-%"PRIu32".\n",
1326+
fprintf(stderr,"Warning: GFF contains overlapping CDS %s, %"PRIu32"-%"PRIu32" and %"PRIu32"-%"PRIu32" (ribosomal slippage?)\n",
13311327
args->tscript_ids.str[tr->id], a->beg+1,a->beg+a->len, b->beg+1,b->beg+b->len);
13321328
args->warned.overlapping_cds++;
13331329
}

0 commit comments

Comments
 (0)