Skip to main content

Package for Sparse optimization

Project description

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.networkreasoning(expre, HGS, tf_names, gene_names)
Parameter Type Explanation
expre np.array The expresion matrix of genes
HGS np.array The matrix of network, first row is the names of TF and second row is the names of target genes.
tf_names np.array Names of tf
gene_names np.array Name of all genes(including TF)

Project details


Download files

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

Source Distribution

Sparse-Optimization-Toolbox-0.0.2.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file Sparse-Optimization-Toolbox-0.0.2.tar.gz.

File metadata

  • Download URL: Sparse-Optimization-Toolbox-0.0.2.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for Sparse-Optimization-Toolbox-0.0.2.tar.gz
Algorithm Hash digest
SHA256 16822eac65cd66433005bd8a8afe2f0c7d997ee4666e7aedeb8b3c0055f903a1
MD5 054274cedcfb5b394a541840db273d9e
BLAKE2b-256 27b17ed4a3f2e949d4bf386cdd5b9e52af5465511d2efb5aa972ee9d865f4511

See more details on using hashes here.

File details

Details for the file Sparse_Optimization_Toolbox-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: Sparse_Optimization_Toolbox-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for Sparse_Optimization_Toolbox-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b5a26a411011ce6d6f520350dc49f2dd3bae3fbd910002eefcee6e707d1829ef
MD5 fe151ba9bd408d6ac51c467879b298a6
BLAKE2b-256 ee62d0c431c4a6938490ca5407d6b302d1c2e38c8cc1550b1198d9dc67f1bee5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page