Dump both AoA's into a database (each in its own table) and do a SELECT on both tables joined by the keyfield of gene_name. Somehow you will have to persist the AoA's or are you going to input them each time by hand again (or perhaps read them from a flat file)? What better way then than to put them in database from the start?

CountZero

"If you have four groups working on a compiler, you'll get a 4-pass compiler." - Conway's Law


In reply to Re: More efficient way to lookup with 2 AoA's. by CountZero
in thread More efficient way to lookup with 2 AoA's. by BioGeek

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":