Skip to content

Commit

Permalink
Include non-python files
Browse files Browse the repository at this point in the history
  • Loading branch information
susannasiebert committed Feb 7, 2024
1 parent d103789 commit 6cf8924
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
recursive-include data pseudoseqs.csv
recursive-include models *
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def readme():
url='https://github.com/KarchinLab/bigmhc',
author='Albert, Benjamin Alexander and Yang, Yunxiao and Shao, Xiaoshan M. and Singh, Dipika and Smith, Kellie N. and Anagnostou, Valsamo and Karchin, Rachel',
scripts=['src/bigmhc_predict', 'src/bigmhc_train'],
packages=['data', 'src', 'models'],
include_package_data=True,
install_requires=[
'torch',
Expand Down
6 changes: 3 additions & 3 deletions src/bigmhc_predict
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ import os
import torch
import pandas as pd

import cli
import src.cli

from bigmhc import BigMHC
from src.bigmhc import BigMHC


def predict(models, data, args):
Expand Down Expand Up @@ -63,7 +63,7 @@ def predict(models, data, args):

def main():

args, data, models = cli.parseArgs(train=False)
args, data, models = src.cli.parseArgs(train=False)

preds = predict(models=models, data=data, args=args)

Expand Down
6 changes: 3 additions & 3 deletions src/bigmhc_train
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import os

import torch

import cli
import src.cli

from bigmhc import BigMHC
from src.bigmhc import BigMHC


def train(model, data, args):
Expand Down Expand Up @@ -81,7 +81,7 @@ def train(model, data, args):

def main():

args, data, model = cli.parseArgs(train=True)
args, data, model = src.cli.parseArgs(train=True)

if len(model) > 1:
raise ValueError(
Expand Down
6 changes: 3 additions & 3 deletions src/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

from typing import Union

from bigmhc import BigMHC
from src.bigmhc import BigMHC

from dataset import Dataset
from mhcenc import MHCEncoder
from src.dataset import Dataset
from src.mhcenc import MHCEncoder


def _rootdir():
Expand Down
8 changes: 4 additions & 4 deletions src/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

from typing import Union, Callable

import mhcuid
import encseq
import src.mhcuid
import src.encseq


class Batch:
Expand Down Expand Up @@ -52,7 +52,7 @@ def __init__(
self,
pmhcs : pd.DataFrame,
mhcenc : dict = None,
encpep : Callable = encseq.dummy):
encpep : Callable = src.encseq.dummy):

self.df = pmhcs
self.mhcenc = mhcenc
Expand Down Expand Up @@ -280,7 +280,7 @@ def readPMHCs(
df.insert(
loc=0,
column="uid",
value=df["mhc"].apply(mhcuid.mhcuid) + '_' + df["pep"])
value=df["mhc"].apply(src.mhcuid.mhcuid) + '_' + df["pep"])
df.set_index(keys="uid", drop=True, inplace=True)

if verbose:
Expand Down
2 changes: 1 addition & 1 deletion src/mhcenc.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

import torch

from mhcuid import mhcuid
from src.mhcuid import mhcuid


class MHCEncoder:
Expand Down

0 comments on commit 6cf8924

Please sign in to comment.