Skip to content
Snippets Groups Projects
Commit 4478c0dc authored by Magali Ruffier's avatar Magali Ruffier
Browse files

when the band is at the end of the chromosome, make sure the two ends match

parent dbc75ca6
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,9 @@ while ($old_sth->fetch()) {
$scale_factor = ($new_sr_length/$old_sr_length);
my $new_k_start = int($old_k_start * $scale_factor) || 1;
my $new_k_end = int($old_k_end * $scale_factor);
if ($old_k_end == $old_sr_length) {
$new_k_end = $new_sr_length;
}
# Add new entry to new karyotype table
$insert_sth->execute($new_sr_id, $new_k_start, $new_k_end, $band, $stain) || die "Error inserting into new karyotype table";
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment