Skip to content

Commit

Permalink
Merge pull request #82 from BackofenLab/intarna-2
Browse files Browse the repository at this point in the history
v2.0.4
  • Loading branch information
Martin Mann authored Jul 19, 2017
2 parents 9763f44 + a02045c commit b282335
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 4 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@

version 2.0.4

170706 Martin Mann :
* IntaRNA/OutputHandlerCsv :
+ E_hybrid : hybrid-only energy = E - ED1 - ED2
+ E_norm : length-normalized energy = E / ln( length1*length2 )
+ E_hybridNorm : length-normalized hybrid-only energy = E_hybrid / ln(l1*l2)

170705 Martin Mann :
* perl/Intarna*.pl :
* shebang corrected

170503 Martin Mann :
* README.md :
* output file description updated
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ are
- `E_dangleR` : dangling end contribution of base pair (end1,start2)
- `E_endL` : penalty of closing base pair (start1,end2)
- `E_endR` : penalty of closing base pair (end1,start2)
- `E_hybrid` : energy of hybridization only = E - ED1 - ED2
- `E_norm` : length normalized energy = E / ln(length(seq1)*length(seq2))
- `E_hybridNorm` : length normalized energy of hybridization only = E_hybrid / ln(length(seq1)*length(seq2))
- `seedStart1` : start index of the seed in seq1
- `seedEnd1` : end index of the seed in seq1
- `seedStart2` : start index of the seed in seq2
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

AC_PREREQ([2.65])
# 5 argument version only available with aclocal >= 2.64
AC_INIT( [IntaRNA], [2.0.3], [], [intaRNA], [http://www.bioinf.uni-freiburg.de] )
AC_INIT( [IntaRNA], [2.0.4], [], [intaRNA], [http://www.bioinf.uni-freiburg.de] )


# minimal required version of the boost library
Expand Down
2 changes: 1 addition & 1 deletion perl/IntaRNA_1ui.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env/perl -w
#!/usr/bin/env perl

use strict;
use Getopt::Std;
Expand Down
2 changes: 1 addition & 1 deletion perl/IntaRNA_up_1ui.pl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env/perl -w
#!/usr/bin/env perl

use strict;
use Getopt::Std;
Expand Down
12 changes: 12 additions & 0 deletions src/IntaRNA/OutputHandlerCsv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,18 @@ add( const Interaction & i )
out <<contr.endRight;
break;

case E_hybrid:
out <<(i.energy - contr.ED1 - contr.ED2);
break;

case E_norm:
out <<(i.energy / std::log( energy.size1() * energy.size2() ) );
break;

case E_hybridNorm:
out <<( (i.energy - contr.ED1 - contr.ED2) / std::log( energy.size1() * energy.size2() ) );
break;

case seedStart1:
if (i.seed == NULL) {
out <<std::numeric_limits<E_type>::signaling_NaN();
Expand Down
6 changes: 6 additions & 0 deletions src/IntaRNA/OutputHandlerCsv.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ class OutputHandlerCsv : public OutputHandler
E_dangleR, //!< dangling end contribution of base pair (end1,start2)
E_endL, //!< penalty of closing base pair (start1,end2)
E_endR, //!< penalty of closing base pair (end1,start2)
E_hybrid, //!< energy of hybridization only = E - ED1 - ED2
E_norm, //!< length normalized energy = E/ln(length(seq1)*length(seq2))
E_hybridNorm, //!< length normalized energy of hybridization only = E_hybrid / ln(length(seq1)*length(seq2))
seedStart1, //!< start index of the seed in seq1
seedEnd1, //!< end index of the seed in seq1
seedStart2, //!< start index of the seed in seq2
Expand Down Expand Up @@ -109,6 +112,9 @@ class OutputHandlerCsv : public OutputHandler
colType2string[E_dangleR] = "E_dangleR";
colType2string[E_endL] = "E_endL";
colType2string[E_endR] = "E_endR";
colType2string[E_hybrid] = "E_hybrid";
colType2string[E_norm] = "E_norm";
colType2string[E_hybridNorm] = "E_hybridNorm";
colType2string[seedStart1] = "seedStart1";
colType2string[seedEnd1] = "seedEnd1";
colType2string[seedStart2] = "seedStart2";
Expand Down
2 changes: 1 addition & 1 deletion src/bin/CommandLineParsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ CommandLineParsing::CommandLineParsing()
->default_value(outCsvCols,"see text")
->notifier(boost::bind(&CommandLineParsing::validate_outCsvCols,this,_1))
, std::string("output : comma separated list of CSV column IDs to print if outMode=CSV."
" An empty argument prints all possible columns from the following available ID list: "
" An empty argument (using '') prints all possible columns from the following available ID list: "
+ boost::replace_all_copy(OutputHandlerCsv::list2string(OutputHandlerCsv::string2list("")), ",", ", ")+"."
+ "\nDefault = '"+outCsvCols+"'."
).c_str())
Expand Down

0 comments on commit b282335

Please sign in to comment.