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 3.4 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) as client:
    for read in yield_reads(read_file):
        called = client.basecall(read, trace=True)
        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.0.7a0.tar.gz (17.3 kB view details)

Uploaded Source

File details

Details for the file pyguppyclient-0.0.7a0.tar.gz.

File metadata

  • Download URL: pyguppyclient-0.0.7a0.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.0.7a0.tar.gz
Algorithm Hash digest
SHA256 6fb73b3b5ec698a163396e2a2b6a50259795c9e837dd8e207d39730f547b5de9
MD5 5d04e06c64bb066a7f85a6dca932b6ea
BLAKE2b-256 6ecbe77d67e6cd0437ba7241d1df7869d9f164734a871f3dbf0b607da3e783c4

See more details on using hashes here.

Supported by

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