Skip to main content

This package is a python version of the tool described in the article available at <https://doi.org/10.1038/s41598-019-55627-4>. Please quote the article.

Use

To use SWeeP in python, install the package with the command “pip install sweep” and import the package in your code, as in the example:

from sweep import fastaread, fas2sweep
fasta = fastaread ("fasta_file_path")
vect = fas2sweep (fasta)

The default configurations are intended for vectorization of amino acid sequences. The default output is the matrix already projected, with 600 columns. See the article if you need information about the projection method.

The default projection matrix has dimensions 160000x600. It is necessary generate a new matrix if other masks are used or another projection size is desired. To generate the orthonormal matrix for projection, a function called orthbase is available on the package. For example, if the goal is to change the projection size to 300, just use:

from sweep import fastaread, fas2sweep, orthbase
ob = orthbase(160000,300)
fasta = fastaread ("fasta_file_path")
vect = fas2sweep (fasta, orth_mat = ob)

It is also possible obtain the result without projection, for this is necessary set the parameter “projection” to “False”.

For the nucleotide sequences vectorization is possible set the parameter fasta_type to “NT”.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sweep-1.2.0.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file sweep-1.2.0.0-py3-none-any.whl.

File metadata

  • Download URL: sweep-1.2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.4 tqdm/4.59.0 importlib-metadata/3.10.0 keyring/22.3.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.8

File hashes

Hashes for sweep-1.2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1f2b41e48e7c1845fdb84b322fa8c36a7218d59babcf6a68bc8b5105b7228c06
MD5 00b3c7061b9b55be2e40d4f3e48bda67
BLAKE2b-256 26c8314dc0810731c3863dab9781dc2b7df50a893ef3ee665d10f2a685b6bb29

See more details on using hashes here.

Release history Release notifications | RSS feed

2.1.3.0

2 files

2.1.2.0

2 files

2.1.1.4

2 files

2.0.1.4

2 files

2.0.1.3

1 file

2.0.1.2

1 file

2.0.1.1

1 file

2.0.1.0

1 file

2.0.0.2

1 file

2.0.0.1

1 file

2.0.0.0

1 file

1.3.0.0

1 file

This release

1.2.0.0 This release

1 file

1.1.0.0

1 file

1.0.0.1

1 file

1.0.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page