Bioinformatic python package.
Project description
This is a bioinformatic python package.
Install
pip install pybioinformatic --upgrade
Issue
ImportError: libffi.so.7: cannot open shared object file: No such file or directory
# First use the following command to verify that the file exists in that path.
ls /usr/lib/x86_64-linux-gnu/libffi.so.7
# If libffi.so.6 is present on your system but libffi.so.7 is missing, you can try creating a soft link to an existing libffi.so.6 file.
ln -s /usr/lib/x86_64-linux-gnu/libffi.so.6 /usr/lib/x86_64-linux-gnu/libffi.so.7
# You can also install libffi7 with sudo grant.
sudo apt-get install libffi7
Usage example
RNA secondary structure prediction.
from pybioinformatic import Nucleotide
# Generate random nucleic acid sequence.
random_nucl = Nucleotide.random_nucl(name='demo', length=[100, 150], bias=1.0)
# Secondary structure prediction
ss, mfe = random_nucl.predict_secondary_structure('test/structure.ps')
print(ss, mfe, sep='\n')
>demo length=135
CAAAAAAAAACCATAAGCCGCCATGTCTCACATCGCAACCGGCTCAAGTAGAGTGCCCCTAATAATATGATCTTCGCTACAGAAGTTCCCCCCCCGCTGCCGGCTAGATGCGAACTCCACGCCTGGATGGCTCAG
...............((((((((.((......(((((.(.((((...((((.................((.((((......)))).))........)))).)))).).))))).......)).))).)))))...
-27.299999237060547
Connect MySQL
from pybioinformatic import BioMySQL
with BioMySQL(
mysql_host='192.168.1.110',
mysql_port=3306,
mysql_user='60533',
mysql_password='NJFU',
ssh_ip=None,
ssh_port=None,
ssh_user=None,
ssh_password=None,
remote_bind_ip=None,
remote_bind_port=None,
local_bind_ip=None,
local_bind_port=None
) as connect:
cur = connect.cursor()
sql = 'use Ptrichocarpa;'
cur.execute(sql)
sql = 'select protein_id,sequence from protein where protein_id = "Potri.019G097720.1.p";'
cur.execute(sql)
for data in cur.fetchall():
protein_id, sequence = data
print(f'>{protein_id}\n{sequence}')
>Potri.019G097720.1.p
MESLQHLYLSKTGIKEIPSSFKHMISLITLKLDGTPIKELPLSIKDKVCLEYLTLHGTPIKALPELPPSLRFLTTHDCASLETVISIINISSLWFRRDFTNCFKLDQKPLVAAMHLKIQSGEETPHGTIQMVLLGSEIPEWFGDKGIGSSLTIQLPSNCHLLKGIAFCLVFLLPLPSQDMPCEVDDDSYVHVYFDCHVKSKNGESDGGDEIVFGSQERRALLYLLETCDSDHMFLHYELGLVNHLRKYSGNEVTFKFYHEVYNQGRKLGHEIRKPFKLKNCGVYLHFDENLPADTDLP*
Analysis of Phenotypic Differences by Genotype
from pybioinformatic import GenoType
with GenoType('E:/Desktop/GWAS/raw_data/BLINK.DBH4(NYC).GT.xls') as gt:
gt.genotype_phenotype_analysis(
trait_file='E:/Desktop/GWAS/raw_data/28clones_trait.txt',
trait_name='DBH4',
out_path='E:/Desktop/GWAS/test',
mark_sample_list=['35_2', '35_3', '85_7']
)
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
pybioinformatic-1.2.5.tar.gz
(595.9 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 pybioinformatic-1.2.5.tar.gz.
File metadata
- Download URL: pybioinformatic-1.2.5.tar.gz
- Upload date:
- Size: 595.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
376e68c3c4293c5f3db9bd4f5955d10c3a00560ee7c9f90c056ed764a968cbbd
|
|
| MD5 |
370836ce6b4db6a60f3127038b3cbe5a
|
|
| BLAKE2b-256 |
4648d9ffa97115f1c4afcf4a2d7d4fff70e5330a54eb007ec5538c65b1ceeff3
|
File details
Details for the file pybioinformatic-1.2.5-py3-none-any.whl.
File metadata
- Download URL: pybioinformatic-1.2.5-py3-none-any.whl
- Upload date:
- Size: 606.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e91d2292c9e9b9c0328b17d466c0f1634247058552155f091712eabb4432b74f
|
|
| MD5 |
c1ce108a55ab5d58b4964a93a9b7e448
|
|
| BLAKE2b-256 |
8020ed53eda378e269edcc1aad519c00aeae4416d043bc5632130511280cdfb8
|