Skip to main content

An sparse opyimization toolbox contains test data generation and network reasoning

Test Data Generation

Import

from sparsetools import matCreater

Data generation

matCreater.matCreater(tfLen=10, sampleNums=200, geneNums=2000, normalLoc=0, normalScale=0.1)
Parameter Type Explanation
tfLen int The numbers of transcribe factors
sampleNums int The numbers of transcribe samples
geneNums int The numbers of target genes
normalLoc float: recommond use 0 Mean value of Gaussian noise
normalScale float Variance of Gaussian noise

Return:

Parameter Type Shapes Explanation
W_d np.array (tfLen, sampleNums) Over complete dictionary
zNetwork np.array (geneNums, tfLen) Sparse matrix
xTargetGene np.array (geneNums,sampleNums) Target

Network reasoning

from sparsetools import Optimization
Optimization.voting(expre, tf_names, gene_names)
Parameter Type Explanation
expre np.array The expresion matrix of genes
tf_names np.array Names of tf
gene_names np.array Name of all genes(including TF)

Return:

The moderation network result matrix of the voting algorithm, while the results of the independent algorithm are named with the algorithm name and stored locally.

Release files for Sparse-Optimization-Toolbox 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Sparse-Optimization-Toolbox 0.1.0
File Size Uploaded
Sparse-Optimization-Toolbox-0.1.0.tar.gz 2.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Sparse-Optimization-Toolbox 0.1.0
File Interpreter ABI Platform
Sparse_Optimization_Toolbox-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.7 kB

Release files / Sparse-Optimization-Toolbox-0.1.0.tar.gz

Download URL Sparse-Optimization-Toolbox-0.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cd9dba210dbdb9af13cf02ce769899d6bb7e36f4f43da82cfa6d3d79ffbcd159
BLAKE2b-256 checksum
How to use checksums
dae9e18a3ab5c3e814f531636375a1afc234c1ae4e9571231345e7d8c4f81f31
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release files / Sparse_Optimization_Toolbox-0.1.0-py3-none-any.whl

Download URL Sparse_Optimization_Toolbox-0.1.0-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc24a0c78b4b91dee49b1693fc70d2c405003ce64e5016aebe0e284bc04519d6
BLAKE2b-256 checksum
How to use checksums
100d0c41f50a5327f565ce92d3c6b4fccf88e695f4ca3b90ecf03422d20be65d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.2

2 release files

0.0.1

2 release files

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