Skip to main content

This package is a python version of the tool described in the article available at <https://www.nature.com/articles/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.1.0.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sweep-1.1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

File hashes

Hashes for sweep-1.1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ce64bd42e83f218f4b448379bbb9c0a616eb30141f1cbc8a49f7d9bbd615160
MD5 aa617bc258d909f3ddab229b336383ed
BLAKE2b-256 4fc46305a0f518e47e0c44dbf072f22acd087659e1e8a3089a38399dfbdaa0f1

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

1.2.0.0

1 file

This release

1.1.0.0 This release

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