Skip to main content

No project description provided

Project description

GeneVecTools

Reading in Variety of Genetic File Types

Vector Embedding Algorithms

Byte Array Encoders

Clustering and Preprocessing Steps for Compression

Similarity Search Tools for FASTA/FASTQ files

Installing

Tester files: https://tinyurl.com/cDNALibraryExampleFiles

.. code-block:: bash

pip install GeneVecTools

Usage

.. code-block:: bash

>>> from GeneVecTools import SimSearch

.. code-block:: bash

"""
file is location of the "small_cDNA_Sequences_pbmc_1k_v2_S1_L002_R2_001.fastq" 
that you downloaded from https://tinyurl.com/cDNALibraryExampleFiles
if it is in current directory, just use file name
"""
>>> file = "small_cDNA_Sequences_pbmc_1k_v2_S1_L002_R2_001.fastq"

.. code-block:: bash

"""
f is the file location and name
length is the number of sequences we want in our scope
encoding is one of three choices: "one-hot-encoding", "standard", or "no-encoding"
bits is one of three choices: 2, 4, or 8
"""
>>> VECSS = SimSearch.VecSS(f=dir, length=10000, encoding="one-hot-encoding",bits=8)
>>> sequences = VECSS.readq()

.. code-block:: bash

# embed produces the vector embedding of the sequence
>>> embedded = VECSS.embed(VECSS.s)
>>> print(embedded)

.. code-block:: bash

"""
similarity search
I are the indices of the similar sequences
D are how different the similar sequences are from the query sequence
time is the time it takes to perform this similarity search query
"""
>>> D, I, time = VECSS.run_search()
>>> print(D,I,time)

.. code-block:: bash

#Testing the embedding and umembedding process
>>> print(VECSS.unembed(VECSS.embed(VECSS.s)) == VECSS.s)

'True'

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

GeneVecTools-1.33.tar.gz (10.6 kB view details)

Uploaded Source

File details

Details for the file GeneVecTools-1.33.tar.gz.

File metadata

  • Download URL: GeneVecTools-1.33.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.2

File hashes

Hashes for GeneVecTools-1.33.tar.gz
Algorithm Hash digest
SHA256 f3648d2d536e1ff7da4b563161582b748971ebec42d6789b9240e23adb67d745
MD5 778b8d11a25bd615307c2adc361b543d
BLAKE2b-256 d43e371f137dcb3c0dd4812c98f8b1ef830520684fc384ffff2b1df53ee92b27

See more details on using hashes here.

Supported by

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