Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add setup.py and count_ring_system tests
- Loading branch information
skearnes
committed
Jun 30, 2014
1 parent
b418709
commit f44e993
Showing
3 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,18 @@ | ||
""" | ||
Tests for descriptors. | ||
""" | ||
from rdkit import Chem | ||
|
||
from muv.descriptors import Descriptors | ||
|
||
|
||
def test_count_ring_systems(): | ||
d = Descriptors() | ||
hexane = Chem.MolFromSmiles("CCCCCC") | ||
assert d.count_ring_systems(hexane) == 0 | ||
benzene = Chem.MolFromSmiles("c1ccccc1") | ||
assert d.count_ring_systems(benzene) == 1 | ||
naphthalene = Chem.MolFromSmiles("c1ccc2ccccc2c1") | ||
assert d.count_ring_systems(naphthalene) == 1 | ||
biphenyl = Chem.MolFromSmiles("c1ccc(cc1)c2ccccc2") | ||
assert d.count_ring_systems(biphenyl) == 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from setuptools import setup, find_packages | ||
|
||
|
||
def main(): | ||
setup( | ||
name='muv', | ||
version='0.1', | ||
license='3-clause BSD', | ||
url='https://github.com/skearnes/muv', | ||
description='Generate maximum unbiased validation (MUV) datasets for virtual screening', | ||
packages=find_packages(), | ||
) | ||
|
||
if __name__ == '__main__': | ||
main() |