Skip to content

Instantly share code, notes, and snippets.

@superbobry
Created August 8, 2012 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save superbobry/3294440 to your computer and use it in GitHub Desktop.
Save superbobry/3294440 to your computer and use it in GitHub Desktop.
The Joy of Reading Code Written in Academia
# See http://bioinformatics-renlab.ucsd.edu/rentrac/wiki/ChromaSig
sub init_gibbs_seed {
# ...
# print("score = $score\n");
# my ($seed, $ave_dist) = tournament_sort($id, $profiles_c,
# $clusters_arrayref, $filtered_data);
# my $norm = $sorted_norm[$percentile + $i * $interval]->{norm};
# my $score = $norm / $ave_dist;
# if ($best_score < $score) {
if ((not defined $best_score) ||
($best_score < $score)) {
$best_score = $score;
$best_seed = $seed;
}
# die ("haha");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment