Skip to content

Commit

Permalink
sw_mat
Browse files Browse the repository at this point in the history
  • Loading branch information
ydLiu-HIT committed Aug 20, 2020
1 parent 3d281ee commit 733831b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 6 deletions.
25 changes: 21 additions & 4 deletions src/aln_2pass.c
Original file line number Diff line number Diff line change
Expand Up @@ -1965,10 +1965,27 @@ void align_non_splice(void *km, uint8_t *qseq, uint8_t *tseq, uint32_t qlen, uin
if ((int64_t)tlen * qlen > opt->max_sw_mat)
{
ksw_reset_extz(ez);
ez->n_cigar = 2;
ez->cigar[0] = qlen<<4 | 1;
ez->cigar[1] = tlen<<4 | 3;
ez->score = 0;

if(ez->m_cigar < 2)
{
ez->n_cigar = 2;
ez->m_cigar = (ez->n_cigar)<<2;
ez->cigar = (uint32_t *)krealloc(km, ez->cigar, (ez->m_cigar)<<4);
}

if(qlen > tlen/2)
{
ez->n_cigar = 1;
ez->cigar[0] = qlen<<4 | 0;
ez->score = qlen * opt->match_R;
}
else
{
ez->n_cigar = 2;
ez->cigar[0] = qlen<<4 | 1;
ez->cigar[1] = tlen<<4 | 3;
ez->score = 0;
}
}
else if (type == 0) //left extend
{
Expand Down
Binary file removed src/deSALT
Binary file not shown.
4 changes: 2 additions & 2 deletions src/read_seeding.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ static void init_map_param(param_map *opt)
opt->max_read_join_gap = 2000;
opt->max_intron_length = SPLICDISTANCE;
// opt->max_sw_mat = opt->max_read_join_gap * opt->max_intron_length;
// opt->max_sw_mat = 4000000000;
opt->max_sw_mat = 1000000000;
opt->max_sw_mat = 3000000000;
//opt->max_sw_mat = 1000000000;
opt->Eindel = 20;
opt->thread_n = 4;
opt->top_n = TOP_NUM_ALN; //2, 3
Expand Down

0 comments on commit 733831b

Please sign in to comment.