Small python library to search snp in primer by position or by sequence.
Project description
SNPrimer
Small python library to search snp in primer by position or by sequence.
Installation
`pip install snprimer``
Usage
🎯 By position 🎯
from snprimer import PositionRange
position = PositionRange("chr8",19818430, 19818440)
print(position)
# PositionRange(chr='chr8', start=19818430, end=19818440, strand=None, snp=[SNP(id='chr8:g.19818436C>G', rsid='rs316', vaf=0.15300000000000002), SNP(id='chr8:g.19818436C>T', rsid='rs316', vaf=0.15300000000000002)])
for snp in position.get_snp(max_vaf=0.05):
print(snp)
#SNP(id='chr8:g.19818436C>G', rsid='rs316', vaf=0.15300000000000002)
#SNP(id='chr8:g.19818436C>T', rsid='rs316', vaf=0.15300000000000002)
🔤 By sequence 🔤
from snprimer import Primer
primer = Primer("CACACAGATCAGAGGGCCAAC")
print(primer)
#Primer(seq='CACACAGATCAGAGGGCCAAC', position_ranges=[PositionRange(chr='chr1', start=26774827, end=26774847, strand='+', snp=[SNP(id='chr1:g.26774827G>A', rsid='rs2075289787', vaf=0), SNP(id='chr1:g.26774830A>G', rsid='rs986550282', vaf=0.0), SNP(id='chr1:g.26774842T>C', rsid='rs1440652363', vaf=0.0)])])
primer.infos(max_vaf=0)
#CACACAGATCAGAGGGCCAAC has snp with vaf > 0 : [SNP(id='chr1:g.26774827G>A', rsid='rs2075289787', vaf=0), SNP(id='chr1:g.26774830A>G', rsid='rs986550282', vaf=0.0), SNP(id='chr1:g.26774842T>C', rsid='rs1440652363', vaf=0.0)]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
snprimer-0.1.1.tar.gz
(3.2 kB
view details)
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 snprimer-0.1.1.tar.gz.
File metadata
- Download URL: snprimer-0.1.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.10 Linux/5.19.0-14.3-liquorix-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fd24ab37524d3968d12c9adc792bd4842a2be84b8e05845d7a8b57e033caf17
|
|
| MD5 |
47a6ebb109fff58a12af993af134af3a
|
|
| BLAKE2b-256 |
7997140fb4302f4e2b11404d862a14277463e723e3f238bd4d4fb276429a67fc
|
File details
Details for the file snprimer-0.1.1-py3-none-any.whl.
File metadata
- Download URL: snprimer-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.8.10 Linux/5.19.0-14.3-liquorix-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
318738f241fe87df4d60e64ba73846a72eb5ce6857843195a20cb101ed5103be
|
|
| MD5 |
e4adddc18461b22a0a561369edec84a6
|
|
| BLAKE2b-256 |
e4adac391d63d06892c38f374d79babffbc9d99a2fd7f8da98f3f40f1f6b43ed
|