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. Only amino acid sequence vectorization is currently available.

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 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 to generate a new matrix in case other masks are used or another projection size is desired. To generate the orthonormal matrix for projection on the package, a function called orthbase is also available. 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, orthMat = ob)

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.0.0.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sweep-1.0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for sweep-1.0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a4901955d8d7d10d2771a88319f38856c192f9ed91487e831743a34422a2d46d
MD5 ab9f8d47b5ca95f7b62c2a3da41a7459
BLAKE2b-256 53972962b4489c877e4a0e1869e35af855a55ebcb51edc84033c69d7f4194f8e

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

1.1.0.0

1 file

This release

1.0.0.1 This release

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