Skip to content

Commit

Permalink
nt
Browse files Browse the repository at this point in the history
  • Loading branch information
gpertea committed Feb 1, 2021
1 parent 419a918 commit f5ad641
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
6 changes: 4 additions & 2 deletions gff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ void gffnames_unref(GffNames* &n) {
if (n->numrefs==0) { delete n; n=NULL; }
}

const byte CLASSCODE_OVL_RANK = 14; // this should be 'o' rank code
const byte CLASSCODE_OVL_RANK = 14; //rank value just above 'o' class code
//rank value < this means exon overlap

const byte CLASSCODE_J_RANK = 6; // all junctional based overlaps

byte classcode_rank(char c) {
Expand All @@ -45,7 +47,7 @@ byte classcode_rank(char c) {
case 'j': return 6; // multi-exon transfrag overlap with at least one junction match OR intron overlap!
case 'e': return 12; // single exon transfrag partially overlapping an intron of reference (possible pre-mRNA fragment)
case 'o': return 12; // other generic exon overlap
//**** >15 = no overlaps (not on the same strand) from here on *****
//**** >14 => no exon overlaps (not on the same strand) from here on *****
case 's': return 16; //"shadow" - an intron overlaps with a ref intron on the opposite strand (wrong strand mapping?)
case 'x': return 18; // generic overlap on opposite strand (usually wrong strand mapping)
case 'i': return 20; // intra-intron (transfrag fully contained within a reference intron)
Expand Down
5 changes: 3 additions & 2 deletions gff.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ typedef void GFFCommentParser(const char* cmline, GfList* gflst); //comment pars
class GffReader;
class GffObj;

//---transcript overlapping - utility functions:
extern const byte CLASSCODE_OVL_RANK; // this should be the rank for 'o' code
//---transcript overlapping - utility functions

extern const byte CLASSCODE_OVL_RANK; //rank value just above 'o' class code

byte classcode_rank(char c); //returns priority value for class codes

Expand Down

0 comments on commit f5ad641

Please sign in to comment.