- class pxblat.Client[source]
A class for managing client connections to a server in a separate thread.
This class can be used to query a gfServer in a separate thread, and can optionally wait until the server is ready before sending a query. It can also parse the result of the query.
- wait_ready¶
Whether to wait until the server is ready before sending a query. Defaults to False.
- wait_timeout¶
The number of seconds to wait for the server to be ready. Defaults to 60.
- server_option¶
The server options to use if a server is not provided. Defaults to None.
- Type:¶
ServerOption, optional
- result¶
The result of the query, or None if the query has not yet been sent or the result has not yet been received.
Constructors¶
- Client(host: str, port: int, seq_dir: str | Path, *, ...)[source]
A class for querying a gfServer using a separate thread.
Public members¶
- property seq_dir
The directory containing the sequence files.
- property ttype
The type of the target sequence.
- property qtype
The type of the query sequence.
- property min_score
The minimum score for the alignment.
- property min_identity
The minimum identity for the alignment.
- property host
The hostname or IP address of the server.
- property port
The port number of the server.
- property output_format
The output format of the alignment.
- property max_intron
The maximum intron size for the alignment.
- property is_dynamic
Whether the server is dynamic.
- property genome
The genome name of the server.
- property genome_data_dir
The genome data directory of the server.