Skip to content

Commit

Permalink
Merge branch 'trim'
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanlayer committed Apr 3, 2014
2 parents 0472262 + a7c2882 commit bc69eff
Show file tree
Hide file tree
Showing 5 changed files with 830 additions and 280 deletions.
15 changes: 8 additions & 7 deletions src/lumpy/SV_Bedpe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ get_bp_interval_probability(char strand,
int distro_size,
double *distro)
{
int size = distro_size;
CHR_POS size = distro_size;
log_space *tmp_p = (log_space *) malloc(size * sizeof(log_space));
unsigned int j;
CHR_POS j;
for (j = 0; j < size; ++j) {
if (strand == '+')
tmp_p[j] = get_ls(distro[j]);
Expand Down Expand Up @@ -254,16 +254,17 @@ void
SV_Bedpe::
set_bp_interval_probability(struct breakpoint_interval *i)
{
int size = i->i.end - i->i.start + 1;
CHR_POS size = i->i.end - i->i.start + 1;
log_space *tmp_p = (log_space *) malloc(size * sizeof(log_space));
log_space *src_p;
//log_space *src_p;

double v = 1.0 / ((double )size);

int offset = i->i.start_clip;
unsigned int j;
//int offset = i->i.start_clip;
CHR_POS j;
for (j = 0; j < size; ++j) {
tmp_p[j] = src_p[j + offset];
//tmp_p[j] = src_p[j + offset];
tmp_p[j] = get_ls(v);
}

i->p = tmp_p;
Expand Down
Loading

0 comments on commit bc69eff

Please sign in to comment.