DNA analyser API wrapper tool for Jupiter notebooks.
Project description
DNA analyser IBP
Tool for creating palindrome, p53 and G-quadruplex analysis. Work as API wrapper for IBP DNA analyzer API bioinformatics.ibp. Currently working with localhost instance of DNA analyser server working on http://localhost:8080/api/
Getting Started
Prerequisites
python >= 3.6
Dependencies
- requests >= 2.20
- pandas >= 0.23
- tqdm >= 4.28
- pyjwt >= 1.7.1
Installing
To install test version from Pypi.
pipenv install dna-analyser-ibp
pip install dna-analyser-ibp
Quick start
DNA analyser uses pandas dataframe
or pandas series
. Firstly the user has to create Api
object and login to API.
from DNA_analyser_IBP.api import Api
API = Api(email='example@example.com', password='example')
If DNA analyser API server not running on http://localhost:8080/api then use this example to create Api
object.
from DNA_analyser_IBP.api import Api
API = Api(email='example@example.com', password='example', server='http://hostname:port/api')
Then upload NCBI sequence for example Homo sapiens chromosome 12
use.
API.sequence.ncbi_creator(circular= True, tags=['Homo','sapiens', 'chromosome'], name='Homo sapiens chromosome 12', ncbi_id='NC_000012.12')
To analyse NCBI sequence use g4hunter interface.
sapiens_sequence = API.sequence.load_all(filter_tag='Homo') # get series with sapiens sequence
# run g4hunter analyses with these params
API.g4hunter.analyse_creator(sequence=sapiens_sequence, tags=['testovaci','Homo', 'sapiens'], threshold=1.4, window_size=30)
Last step to see results of g4hunter analysis.
sapiens = API.g4hunter.load_all(filter_tag=['Homo']) # returns dataframe
API.g4hunter.load_results(g4hunter_analyse=sapiens.iloc[0]) # iloc[0] to convert dataframe to series
Tests
To run tests only when downloaded directly from this repository.
pytest -v tests/
Authors
- Patrik Kaura - Main developer - patrikkaura
- Jan Kolomaznik - Supervisor - jankolomaznik
License
This project is licensed under the GPL-3.0 License - see the LICENSE.md file for details
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.