Skip to main content

No project description provided

Project description

pyguppyclient

PyPI version

Full Python client library for communicating with guppy_basecall_server.

$ pip install pyguppyclient

Requirements

Guppy 5.0 or later is required and the guppy_basecall_server must already be running.

$ guppy_basecall_server --config dna_r9.4.1_450bps_fast.cfg -p 5555 -l /tmp/guppy -x 'cuda:0'

Example

The simplest usage is the GuppyBasecallerClient class which takes a config name and provides a basecall method that takes a read and returns a CalledReadData object.

from pyguppyclient import GuppyBasecallerClient, yield_reads

config = "dna_r9.4.1_450bps_fast"
read_file = "reads.fast5"

with GuppyBasecallerClient(config_name=config, trace=True) as client:
    for read in yield_reads(read_file):
        called = client.basecall(read)
        print(read.read_id, called.seq[:50], called.move)

See the example client for the usage of the Caller class that uses multiprocessing to distribute the reading of fast5 files.

$ ./examples/pyguppyclient -t 8 dna_r9.4.1_450bps_fast /data/reads > pyguppyclient.fastq

Developer Quick Start

$ git clone https://github.com/nanoporetech/pyguppyclient.git
$ cd pyguppy-client
$ python3 -m venv venv3
$ source ./venv3/bin/activate
(venv3) $ pip install -r requirements.txt -r development.txt
(venv3) $ python setup.py develop
(venv3) $ make test

Licence and Copyright

(c) 2020 Oxford Nanopore Technologies Ltd.

pyguppyclient is distributed under the terms of the Oxford Nanopore Technologies, Ltd. Public License, v. 1.0. If a copy of the License was not distributed with this file, You can obtain one at http://nanoporetech.com

Research Release

Research releases are provided as technology demonstrators to provide early access to features or stimulate Community development of tools. Support for this software will be minimal and is only provided directly by the developers. Feature requests, improvements, and discussions are welcome and can be implemented by forking and pull requests. However much as we would like to rectify every issue and piece of feedback users may have, the developers may have limited resource for support of this software. Research releases may be unstable and subject to rapid iteration by Oxford Nanopore Technologies.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyguppyclient-0.1.0.tar.gz (17.3 kB view details)

Uploaded Source

File details

Details for the file pyguppyclient-0.1.0.tar.gz.

File metadata

  • Download URL: pyguppyclient-0.1.0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.5.2

File hashes

Hashes for pyguppyclient-0.1.0.tar.gz
Algorithm Hash digest
SHA256 318ef2e9c0e2355987a4b0c40f9c8717f6603f67f002abc696b9f37d70430f1d
MD5 7d5c6432329487704248307a9efa2a28
BLAKE2b-256 3297d8454108db319c2341a01905721086add5f47e56e3e761b28aab9f3a3475

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page