Skip to content

Commit

Permalink
Fix a small issue in smart-seq of adding too many sequences
Browse files Browse the repository at this point in the history
  • Loading branch information
mourisl committed Oct 4, 2021
1 parent e713988 commit 9b50d29
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions trust-smartseq.pl
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,11 @@ sub GetPairChainType
}
elsif ( int($chainType/2) == int($mainChainType/2) && $chainType%2 == 1 - ($mainChainType%2))
{
$add = 1 ;
++$representativeCols2Cnt ;
if ($representativeCols2Cnt < $representativeN)
{
$add = 1 ;
++$representativeCols2Cnt ;
}
}
if ($add == 1)
{
Expand Down

0 comments on commit 9b50d29

Please sign in to comment.