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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sweep-1.0.0.0-py3-none-any.whl.
File metadata
- Download URL: sweep-1.0.0.0-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
716118e288364044d88f25403cde085b54b97527bacb35a4928a623b04084a5f
|
|
| MD5 |
b3e5b7c934d692ffe6e0355a0af89e84
|
|
| BLAKE2b-256 |
bc7d6b80824ddc643a591371114167d879e11c4e89eebc29e3676f7d47a8d7c1
|