SequenceDatabase#
- class biotite.application_v2.mmseqs.SequenceDatabase(app: T, path: PathLike[str] | str | None = None, suffix: str = '')[source]#
Bases:
Database[T]An MMseqs2 or Foldseek sequence database.
- copy(destination: PathLike[str] | str, force: bool = False) Self#
Copy the database into a persistent directory.
- Parameters:
- destinationpath-like
The destination directory.
- forcebool, optional
If true, replace a non-empty destination.
- Returns:
- databaseDatabase
A persistent copy with the same concrete type and metadata.
- is_compatible_with(app: MMseqsLikeApp) TypeGuard[T]#
Check whether the database can be used by the given application.
- Parameters:
- appMMseqsApp or FoldseekApp
The application to check.
- Returns:
- compatiblebool
True if the database and application have the same concrete type.
- move(destination: PathLike[str] | str, force: bool = False) None#
Move the database into a persistent directory.
- Parameters:
- destinationpath-like
The destination directory.
- forcebool, optional
If true, replace a non-empty destination.
- set_parent(parent: Database[T]) None#
Keep the owner of this database’s directory alive.
Some databases are views of files in another database’s directory. If that directory is temporary, retaining its owner prevents premature deletion while the view is still in use.
- Parameters:
- parentDatabase
The database that owns the shared directory.
Gallery#
Mutual information as measure for coevolution of residues