src/mirbooking-score-table.c
/**
 * mirbooking_score_table_compute_score:
 * @mirna: (transfer none): A #MirbookingMirna from which a
 * reverse-complement is used against the second to compute a hybridization
 * score
 * @target: (transfer none): A #MirbookingTarget
 * @position: Identifies a MRE site in @target
 * @score: (out):
 *
 * Compute the score for a pair of #MirbookingSequence objects, extracting a
 * substring of a fixed length and evaluating the score table at its
 * corresponding index.
 *
 * Returns: %TRUE on success otherwise %FALSE and @error is set.
 */


Compute the score for a pair of #MirbookingSequence objects, extracting a
substring of a fixed length and evaluating the score table at its
corresponding index.

%TRUE on success otherwise %FALSE and @error is set.
Compute the score for a pair of #MirbookingSequence objects extracting a substring of a fixed length and evaluating the score table at its corresponding index . %TRUE on success otherwise %FALSE and @error is set .
gboolean
mirbooking_score_table_compute_score (MirbookingScoreTable  *self,
                                      MirbookingMirna       *mirna,
                                      MirbookingTarget      *target,
                                      gsize                  position,
                                      MirbookingScore       *score,
                                      GError               **error)
{
    g_return_val_if_fail (self != NULL, FALSE);
    g_return_val_if_fail (mirna != NULL, FALSE);
    g_return_val_if_fail (target != NULL, FALSE);
    g_return_val_if_fail (position < mirbooking_sequence_get_sequence_length (MIRBOOKING_SEQUENCE (target)), FALSE);
    g_return_val_if_fail (score != NULL, FALSE);
    MirbookingScoreTableClass *klass = MIRBOOKING_SCORE_TABLE_GET_CLASS (self);
    return klass->compute_score (self,
                                 mirna,
                                 target,
                                 position,
                                 score,
                                 error);
}
gboolean mirbooking_score_table_compute_score ( MirbookingScoreTable * self , MirbookingMirna * mirna , MirbookingTarget * target , gsize position , MirbookingScore * score , GError * * error ) { g_return_val_if_fail ( self != NULL , FALSE ) ; g_return_val_if_fail ( mirna != NULL , FALSE ) ; g_return_val_if_fail ( target != NULL , FALSE ) ; g_return_val_if_fail ( position < mirbooking_sequence_get_sequence_length ( MIRBOOKING_SEQUENCE ( target ) ) , FALSE ) ; g_return_val_if_fail ( score != NULL , FALSE ) ; MirbookingScoreTableClass * klass = MIRBOOKING_SCORE_TABLE_GET_CLASS ( self ) ; return klass -> compute_score ( self , mirna , target , position , score , error ) ; }
mirbooking_score_table_compute_score:
 @mirna: (transfer none): A #MirbookingMirna from which a
 reverse-complement is used against the second to compute a hybridization
 score
 @target: (transfer none): A #MirbookingTarget
 @position: Identifies a MRE site in @target
 @score: (out):
mirbooking_score_table_compute_score : @mirna : ( transfer none ) : A #MirbookingMirna from which a reverse - complement is used against the second to compute a hybridization score @target : ( transfer none ) : A #MirbookingTarget @position : Identifies a MRE site in @target @score : ( out ) :