-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update batch processing length normalization to match non-batch processing length normalization #441
Update batch processing length normalization to match non-batch processing length normalization #441
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2190,7 +2190,7 @@ void usageTCCQuant(bool valid_input = true) { | |
<< " (default: equivalence classes are taken from the index)" << endl | ||
<< "-f, --fragment-file=FILE File containing fragment length distribution" << endl | ||
<< " (default: effective length normalization is not performed)" << endl | ||
<< "--long Use version of EM for long reads " << endl | ||
<< "--long Use version of EM for long reads " << endl | ||
<< "-P, --platform. [PacBio or ONT] used for sequencing " << endl | ||
<< "-l, --fragment-length=DOUBLE Estimated average fragment length" << endl | ||
<< "-s, --sd=DOUBLE Estimated standard deviation of fragment length" << endl | ||
|
@@ -2390,7 +2390,7 @@ int main(int argc, char *argv[]) { | |
if (fld_lr_c[i] > 0.5) { | ||
//Good results with comment below. | ||
//flensout_f << std::fabs((double)fld_lr[i] / (double)fld_lr_c[i] - index.k);//index.target_lens_[i] - (double)fld_lr[i] / (double)fld_lr_c[i] - k); // take mean of recorded uniquely aligning read lengths | ||
flensout_f << std::fabs(index.target_lens_[i] - ((double)fld_lr[i] / (double)fld_lr_c[i]) - index.k); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Care to elaborate a bit? Ideally in comment, else maybe at least in the commit message? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi! Based on our analysis for effective length normalization for long reads, the updated effective length provides better results. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I still don't follow what you are changing and why but I am not familiar with the code. So if this makes sense to others without further explanation, feel free to ignore my comment. |
||
flensout_f << std::fabs(((double)fld_lr[i] / (double)fld_lr_c[i]) - index.k); | ||
} else { | ||
flensout_f << std::fabs(index.target_lens_[i] - index.k);//index.target_lens_[i]); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you clarify your question?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same problem as in line 2075.