Skip to content

Commit

Permalink
Implement the report for barcodes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mourisl committed Jan 21, 2020
1 parent ff50e8f commit a7c2a85
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions run-trust4
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ if ( $stage <= 2 )
if ( $stage <= 3 )
{
system_call( "perl $WD/trust-simplerep.pl ${prefix}_cdr3.out $simpleRepArgs > ${prefix}_report.tsv" ) ;
if ( $hasBarcode == 1 )
{
system_call( "perl $WD/trust-barcoderep.pl ${prefix}_cdr3.out --noPartial > ${prefix}_barcode_report.tsv" ) ;
}
}

print STDERR "[".localtime()."] TRUST4 finishes.\n" ;
Expand Down
4 changes: 2 additions & 2 deletions trust-simplerep.pl
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ sub InferConstantGene
{
chomp ;
my @cols = split ;
next if ( $reportPartial == 0 && $cols[9] == 0 ) ;

my $assemblyId = $cols[0] ;
my $vgene = (split /,/, $cols[2])[0] ;
my $dgene = (split /,/, $cols[3])[0] ;
Expand All @@ -339,8 +341,6 @@ sub InferConstantGene
my $key = join( "\t", ( $vgene, $dgene, $jgene, $cgene, $cols[8] ) ) ;
my $type = GetChainType( $vgene, $jgene, $cgene ) ;

next if ( $reportPartial == 0 && $cols[9] == 0 ) ;

if ($type == 2) # TCR
{
if ($cols[10] < $assemblyMostReads{$assemblyId} * $tcrErrorFilter )
Expand Down

0 comments on commit a7c2a85

Please sign in to comment.