Untitled
unknown
python
a year ago
1.5 kB
2
Indexable
Never
def alignment_submit_request_test(): data = { 'query': { 'options': { 'return_sequence_data': 'true' }, 'context': { 'mode': 'pairwise', 'method': { 'name': 'fatcat-rigid', 'parameters': { 'rmsd_cutoff': 3, 'afp_dist_cutoff': 1600, 'fragment_length': 8 } }, 'structures': [ { 'format': 'pdb' }, { 'format': 'pdb' } ] } }, 'files': [ 'file1.pdb', 'file2.pdb' ] } files = [ ('files', ('file1.pdb', b"asdfasdf")), ('files', ('file2.pdb', b"dfgsdfgg")), ] result = requests.post('https://alignment.rcsb.org/api/v1-beta/structures/submit', data=data, files=files) print(result)