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

Debug predict #5

Open
wants to merge 2 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
8 changes: 4 additions & 4 deletions build/lib/scalop/predict.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def assigncmd(args):
print('Write results to %s' % opf)
return assignresults

def assign(seq,scheme='imgt',definition='north',dbv='latest',structuref='',loopdb='',hc='',lc='',blacklist=[]):
def assign(seq,scheme='imgt',definition='north',dbv='latest',structuref='',loopdb='',hc='',lc='',blacklist=[], **kwargs):
'''
args: <sequence(s)> <numbering scheme> <cdr definition> <db version> <structure file> <loop database directory> <heavy chain ID> <light chain ID> <blacklisted PDB_CHAIN IDs>
'''
Expand All @@ -217,8 +217,8 @@ def assign(seq,scheme='imgt',definition='north',dbv='latest',structuref='',loopd
seqh,seql = seq.split('/')
seqh = re.sub('[\W]+','',seqh)
seql = re.sub('[\W]+','',seql)
seqs.append(('{}_1'.format(seqi),seqh))
seqs.append(('{}_2'.format(seqi),seql))
seqs.append(('{}_1'.format(seqid),seqh))
seqs.append(('{}_2'.format(seqid),seql))
else:
seqs.append((seqid,re.sub('[\W\/]+','',seq)))
elif type(seq) == dict: # in dict
Expand Down Expand Up @@ -251,7 +251,7 @@ def assign(seq,scheme='imgt',definition='north',dbv='latest',structuref='',loopd

ncpu = multiprocessing.cpu_count()

numberedseqs = run_anarci( seqs,scheme=scheme,ncpu=ncpu,assign_germline=False)
numberedseqs = run_anarci(seqs,scheme=scheme,ncpu=ncpu,assign_germline=False, **kwargs)

# Import the right version of pssm database
ip(scheme,definition,dbv)
Expand Down
8 changes: 4 additions & 4 deletions lib/python/scalop/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def assigncmd(args):
print('Write results to %s' % opf)
return assignresults

def assign(seq,scheme='imgt',definition='north',dbv='latest',structuref='',loopdb='',hc='',lc='',blacklist=[]):
def assign(seq,scheme='imgt',definition='north',dbv='latest',structuref='',loopdb='',hc='',lc='',blacklist=[], **kwargs):
'''
args: <sequence(s)> <numbering scheme> <cdr definition> <db version> <structure file> <loop database directory> <heavy chain ID> <light chain ID> <blacklisted PDB_CHAIN IDs>
'''
Expand All @@ -217,8 +217,8 @@ def assign(seq,scheme='imgt',definition='north',dbv='latest',structuref='',loopd
seqh,seql = seq.split('/')
seqh = re.sub('[\W]+','',seqh)
seql = re.sub('[\W]+','',seql)
seqs.append(('{}_1'.format(seqi),seqh))
seqs.append(('{}_2'.format(seqi),seql))
seqs.append(('{}_1'.format(seqid),seqh))
seqs.append(('{}_2'.format(seqid),seql))
else:
seqs.append((seqid,re.sub('[\W\/]+','',seq)))
elif type(seq) == dict: # in dict
Expand Down Expand Up @@ -251,7 +251,7 @@ def assign(seq,scheme='imgt',definition='north',dbv='latest',structuref='',loopd

ncpu = multiprocessing.cpu_count()

numberedseqs = run_anarci( seqs,scheme=scheme,ncpu=ncpu,assign_germline=False)
numberedseqs = run_anarci(seqs,scheme=scheme,ncpu=ncpu,assign_germline=False, **kwargs)

# Import the right version of pssm database
ip(scheme,definition,dbv)
Expand Down