Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add setup.py #25

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import setuptools
from setuptools import setup, find_packages

setup(name='smiles_transformer',
version='1.0.0',
description='Original implementation of the paper "SMILES Transformer: Pre-trained Molecular Fingerprint for Low Data Drug Discovery"',
long_description=open('README.md').read(),
author='Shion Honda',
author_email='https://twitter.com/shion_honda',
url='https://github.com/DSPsleeporg/smiles-transformer',
license='MIT',
install_requires=[
'numpy',
'pandas',
'torch',
'tqdm',
],
python_requires='>=3',
packages=['smiles_transformer']
)
1 change: 1 addition & 0 deletions smiles_transformer/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import *
2 changes: 1 addition & 1 deletion smiles_transformer/build_corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pandas as pd
from tqdm import tqdm

from utils import split
from .utils import split

def main():
parser = argparse.ArgumentParser(description='Build a corpus file')
Expand Down
4 changes: 2 additions & 2 deletions smiles_transformer/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import torch
from torch.utils.data import Dataset, DataLoader

from enumerator import SmilesEnumerator
from utils import split
from .enumerator import SmilesEnumerator
from .utils import split

PAD = 0
MAX_LEN = 220
Expand Down
4 changes: 2 additions & 2 deletions smiles_transformer/pretrain_rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from torch.autograd import Variable
from torch.nn.utils import clip_grad_norm_
from torch.nn import functional as F
from build_vocab import WordVocab
from dataset import Seq2seqDataset
from .build_vocab import WordVocab
from .dataset import Seq2seqDataset

PAD = 0
UNK = 1
Expand Down
4 changes: 2 additions & 2 deletions smiles_transformer/pretrain_trfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from torch.utils.data import DataLoader
from tqdm import tqdm

from build_vocab import WordVocab
from dataset import Seq2seqDataset
from .build_vocab import WordVocab
from .dataset import Seq2seqDataset

PAD = 0
UNK = 1
Expand Down
2 changes: 1 addition & 1 deletion smiles_transformer/sample.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from enumerator import SmilesEnumerator
from .enumerator import SmilesEnumerator

sme = SmilesEnumerator()
smiles = ''
Expand Down