chadadavis / sbglib

Automatically exported from code.google.com/p/sbglib
0 stars 0 forks source link

./examples/pickframe.pl #247

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Assuming that multiple alignments are implemented (bug #212) and that the first 
domain defines the frame of reference, just do something like:

# Some time previously, $a was superimposed onto $b
# $b has no transformation, but $a does
my $b = some_domain();
my $a_onto_b = some_other_domain();

# (transform them in place)
$a_onto_b->transformation->inverse->apply($b, $a_onto_b);
# Now only $b has a transformation

Original issue reported on code.google.com by chad.a.davis@gmail.com on 19 Oct 2011 at 2:36