Skip to main content

breadth first fragmentation package

Project description

breadth-first-fragmentation

Usage

Installation

Install latest from the GitHub repository:

$ pip install git+https://github.com/panukorn17/breadth-first-fragmentation.git

or from conda

$ conda install ptaleo17::breadth-first-fragmentation

or from pypi

$ pip install breadth_first_fragmentation

Documentation

Documentation can be found hosted on this GitHub repository’s pages. Additionally you can find package manager specific guidelines on conda and pypi respectively.

How to use

from breadth_first_fragmentation.fragmentation import break_into_fragments_defragmo
smi = 'CCCN(CCc1cccc(-c2ccccc2)c1)C(=O)C1OC(C(=O)O)=CC(N)C1NC(C)=O'
break_into_fragments_defragmo(smi, min_length=0, verbose=1)
Head fragment:  *CCC
Recurse tail:  N(*)(CCc1cccc(-c2ccccc2)c1)C(=O)C1OC(C(=O)O)=CC(N)C1NC(C)=O
Tail:  *CCc1cccc(-c2ccccc2)c1
Recurse Head:  N(*)(*)C(=O)C1OC(C(=O)O)=CC(N)C1NC(C)=O
Head fragment:  *N(*)*
Recurse tail:  C(*)(=O)C1OC(C(=O)O)=CC(N)C1NC(C)=O
Head fragment:  *C(*)=O
Recurse tail:  C1(*)OC(C(=O)O)=CC(N)C1NC(C)=O
Head fragment:  *NC1C(N)C=C(C(=O)O)OC1*
Recurse tail:  C(*)(C)=O
Final Fragment:  C(*)(C)=O

('CCCN(CCc1cccc(-c2ccccc2)c1)C(=O)C1OC(C(=O)O)=CC(N)C1NC(C)=O',
 '*CCC *CCc1cccc(-c2ccccc2)c1 *N(*)* *C(*)=O *NC1C(N)C=C(C(=O)O)OC1* C(*)(C)=O',
 6)

Visual representation of the breadth-first-fragmentation algorithm:
breadth-first-fragmentation

smi = 'CCCN(CCc1cccc(-c2ccccc2)c1)C(=O)C1OC(C(=O)O)=CC(N)C1NC(C)=O'
break_into_fragments_defragmo(smi, min_length=3, verbose=1)
Head fragment:  *CCC
Recurse tail:  N(*)(CCc1cccc(-c2ccccc2)c1)C(=O)C1OC(C(=O)O)=CC(N)C1NC(C)=O
Tail:  *CCc1cccc(-c2ccccc2)c1
Recurse Head:  N(*)(*)C(=O)C1OC(C(=O)O)=CC(N)C1NC(C)=O
Head fragment:  *C(=O)N(*)*
Recurse tail:  C1(*)OC(C(=O)O)=CC(N)C1NC(C)=O
Head fragment:  *NC1C(N)C=C(C(=O)O)OC1*
Recurse tail:  C(*)(C)=O
Final Fragment:  C(*)(C)=O

('CCCN(CCc1cccc(-c2ccccc2)c1)C(=O)C1OC(C(=O)O)=CC(N)C1NC(C)=O',
 '*CCC *CCc1cccc(-c2ccccc2)c1 *C(=O)N(*)* *NC1C(N)C=C(C(=O)O)OC1* C(*)(C)=O',
 5)

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

breadth_first_fragmentation-0.0.2.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

breadth_first_fragmentation-0.0.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file breadth_first_fragmentation-0.0.2.tar.gz.

File metadata

File hashes

Hashes for breadth_first_fragmentation-0.0.2.tar.gz
Algorithm Hash digest
SHA256 6fcdc63cf6bbce514d140e25307a67bd8129f5111990fa65ea1a36c0a21af853
MD5 44856144c897b99f6eb9dc066490ea8c
BLAKE2b-256 0a7cd28b732290ecc4881dc7663ce48da511557a8b4bbb803c53aa56fbb0d0cc

See more details on using hashes here.

File details

Details for the file breadth_first_fragmentation-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for breadth_first_fragmentation-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7983e88033c537446e8ac9630fa2a3164e1d83ac52840e395cdf7404a3147579
MD5 fd1e141e9853c225616c0482b437ca55
BLAKE2b-256 9c516189d7c3bbf94462e33f068ab1598068cceafcabc1591faf3ed61b940161

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