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.

option

Client options for the connection.

Type:

ClientOption

host

The hostname or IP address of the server. Defaults to None.

Type:

str, optional

port

The port number of the server. Defaults to None.

Type:

int, optional

wait_ready

Whether to wait until the server is ready before sending a query. Defaults to False.

Type:

bool, optional

wait_timeout

The number of seconds to wait for the server to be ready. Defaults to 60.

Type:

int, optional

server_option

The server options to use if a server is not provided. Defaults to None.

Type:

ServerOption, optional

seqname

The sequence name to use for the query. Defaults to None.

Type:

str, optional

parse

Whether to parse the result of the query. Defaults to True.

Type:

bool, optional

daemon

Whether to run the client as a daemon process. Defaults to True.

Type:

bool, 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.

query(in_seqs)[source]

Query the server with the specified sequences.