requires genome.db from bioplus, an sqlite3 database w/ the following structure:
tables represent genomes and are named according to genome name each table has fields VARCHAR ‘name’ and INT UNSIGNED ‘length’ each entry describes a chromosome/scaffold in a genome
returns a file-like object pointing to a temporary file containing the chromsome names and sizes
the current file position will be 0
it will be deleted when the object is garbage collected
WARNING: THIS WILL PERMANENTLY ADD A GENOME
make a call to pybedtool and tries to add to genome registry then reloads module and repopulates globals note: this may not be persistent if your egg is zipped
if available, returns a dict of {‘chr_name’: length} for all chromosomes in that genome
expects a dictionary or iterable of (‘name’, length)
checks for a match in the database
imports a db like genome.db into the existing database
note: this may not be persistent if your egg is zipped
expects two dictionaries or iterables of (‘name’, length) tells you if genome1 matches genome2 (not all the entries in genome2 need to be matched, but all the entries in genome1 must be)
symmetric=True means matches(genome1,genome2) and matches(genome2,genome1)