Skip to content

Commit

Permalink
modified: src/bed_anno.c
Browse files Browse the repository at this point in the history
  • Loading branch information
shiquan committed Dec 2, 2023
1 parent c3fc506 commit 1dca92f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bed_anno.c
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,8 @@ static int query_exon(int start, int end, struct gtf const *G, struct anno0 *a,
// debug_print("%d\t%d\t%d\t%d", g0->start, g0->end, g1->start, g1->end);
}

if ((a->type == BAT_EXON || a->type == BAT_EXONINTRON) && utr == 1) {
//if ((a->type == BAT_EXON || a->type == BAT_EXONINTRON) && utr == 1) {
if (a->type == BAT_EXON && utr == 1) {
// forward
if (G->strand == 0) a->type = pass_cds ? BAT_UTR3 : BAT_UTR5;
// backward
Expand Down Expand Up @@ -310,7 +311,6 @@ static int query_trans(int start, int end, struct gtf const *G, struct anno0 *a)
static int query_promoter(int start, int end, struct gtf *G, struct anno0 *a)
{
// nonoverlap with this promoter

int start0 = G->start;
int end0 = G->start;
if (G->strand == 1) {
Expand Down Expand Up @@ -479,7 +479,7 @@ int annobed_main(int argc, char **argv)
}
}
}

bed_spec_write(args.B, args.output_fname, 1, args.gene_as_name);

summary_report();
Expand Down

0 comments on commit 1dca92f

Please sign in to comment.