Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

palindrome-tree

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

palindrome-tree

Gradient boosted decision tree palindrome predictor, used to locate regions for further investigation thru http://palindromes.ibp.cz/

  • 1.3.1
  • PyPI
  • Socket score

Maintainers
1

Palindrome tree

Palindrome tree tool is used for analyzing inverted repeats in various DNA sequences using decision trees. This tool takes provided sequences and finds interesting parts in which there's high probability of palindrome occurrence using decision tree. This process filters a big portion of data. Interesting data are then analyzed using API from Palindrome Analyzer. DNA Analyser is a web-based server for nucleotide sequence analysis. It has been developed thanks to cooperation of Department of Informatics, Mendel’s University in Brno and Institute of Biophysics, Academy of Sciences of the Czech Republic.

Requirements

Palindrome tree was built with Python 3.7+.

Installation

To install palindrome tree use Pypi repository.

pip install palindrome-tree

Usage

User has to initialize palindrome tree analyzer instance which is imported from main package palindrome_tree.

from palindrome_tree import PalindromeTree

tree = PalindromeTree()

Predict regions (without API validation)

To predict regions with possible palindromes, run analyse without setting check_with_api paramether.

from palindrome_tree import PalindromeTree

sequence_file = open("/path/to/sequence/name.txt", "r")

tree = PalindromeTree()

tree.analyse(
    sequence=sequence_file.read(),
)

tree.results

The results are then stored in results variable as pd.DataFrame.

positionsequence
08TTTGTAGAGACAGGGTCTTGCTGTGTTTCC
110TGTAGAGACAGGGTCTTGCTGTGTTTCCCA
249CGAACTCCTGGCCTCTAGGCAATCCTCCCA
3102ATCCCACTCTTTTTTGAAAAATAAAATCTA
4105CCACTCTTTTTTGAAAAATAAAATCTACCA

Predict regions (with API validation)

To predict regions with possible palindromes and afterward validation, run analyse with check_with_api paramether set.

from palindrome_tree import PalindromeTree

sequence_file = open("/path/to/sequence/name.txt", "r")

tree = PalindromeTree()

tree.analyse(
    sequence=sequence_file.read(),
    validate_with_api=True,
)

tree.validated_results

The results are also stored in results variable as pd.DataFrame.

original_indexafterbeforemismatchesoppositepositionsequencesignaturespacerstability_NNModel
00CCTTTGT2CTGTGTTT5AGAGACAG8-7-2GGTCTTG{'cruciform': -5.74, 'linear': -27.590000000000003, 'delta': 21.85}
10TGCTGTTTGT2GGGTCT5AGAGAC6-1-2A{'cruciform': -2.54, 'linear': -13.84, 'delta': 11.3}
20GTGTTTGTAG2CTTGCT7AGACAG6-3-2GGT{'cruciform': -1.94, 'linear': -17.509999999999998, 'delta': 15.569999999999999}
30TTCCTAGAG2CTGTGT9ACAGGG6-5-2TCTTG{'cruciform': -3.7399999999999998, 'linear': -20.99, 'delta': 17.25}
41CCCATGT2CTGTGTTT3AGAGACAG8-7-2GGTCTTG{'cruciform': -5.74, 'linear': -27.590000000000003, 'delta': 21.85}

Dependencies

  • xgboost = "^1.5.1"
  • pandas = "^1.3.5"
  • scikit-learn = "^1.0.2"
  • requests = "^2.26.0"

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc