MCPcopy Create free account
hub / github.com/modelscope/modelscope / submit

Function submit

modelscope/preprocessors/science/uni_fold.py:51–67  ·  view source on GitHub ↗
(seqs, mode, N=101)

Source from the content-addressed store, hash-verified

49 submission_endpoint = 'ticket/pair' if use_pairing else 'ticket/msa'
50
51 def submit(seqs, mode, N=101):
52 n, query = N, ''
53 for seq in seqs:
54 query += f'>{n}\n{seq}\n'
55 n += 1
56
57 res = requests.post(
58 f'{host_url}/{submission_endpoint}',
59 data={
60 'q': query,
61 'mode': mode
62 })
63 try:
64 out = res.json()
65 except ValueError:
66 out = {'status': 'ERROR'}
67 return out
68
69 def status(ID):
70 res = requests.get(f'{host_url}/ticket/{ID}')

Callers 1

run_mmseqs2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…