Skip to content

Commit

Permalink
Keep the OR genes for D gene annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
mourisl committed Aug 8, 2023
1 parent 677d0d4 commit efd7ac6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
16 changes: 9 additions & 7 deletions SeqSet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2384,13 +2384,15 @@ class SeqSet
{
// Insert the kmers
struct _seqWrapper ns ;
// Filter the gene with "/" sign
for ( i = 0 ; fa.id[i] ; ++i )
if ( fa.id[i] == '/' && fa.id[i + 1] == 'O' && fa.id[i + 2] == 'R') // no need to worry about access outside memory
break ;
if ( fa.id[i] == '/' )
continue ;

// Filter the gene with "/" sign for non-D gene
if (GetGeneType(fa.id) != 1)
{
for ( i = 0 ; fa.id[i] ; ++i )
if ( fa.id[i] == '/' && fa.id[i + 1] == 'O' && fa.id[i + 2] == 'R') // no need to worry about access outside memory
break ;
if ( fa.id[i] == '/' )
continue ;
}
ns.name = strdup( fa.id ) ;
ns.isRef = true ;

Expand Down
2 changes: 1 addition & 1 deletion run-trust4
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use Cwd 'cwd' ;
use Cwd 'abs_path' ;
use File::Basename ;

die "TRUST4 v1.0.12-r464 usage: ./run-trust4 [OPTIONS]:\n".
die "TRUST4 v1.0.12-r465 usage: ./run-trust4 [OPTIONS]:\n".
"Required:\n".
#"\t[Input]:\n".
"\t-b STRING: path to bam file\n".
Expand Down

0 comments on commit efd7ac6

Please sign in to comment.