Skip to content

Commit

Permalink
fix: change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
xnought committed Mar 11, 2024
1 parent ac36b17 commit fa6412c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/api/protein.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ def edit_protein_entry(body: EditBody, req: Request):

# /pdb with two attributes returns both PDBs, superimposed and with different colors.
@router.get("/protein/pdb/{proteinA:str}/{proteinB:str}")
def search_proteins(proteinA: str, proteinB: str):
def align_proteins(proteinA: str, proteinB: str):
try:
pdbA = stored_pdb_file_name(proteinA)
pdbB = stored_pdb_file_name(proteinB)
Expand Down
23 changes: 23 additions & 0 deletions frontend/src/lib/openapi/services/DefaultService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,29 @@ export class DefaultService {
},
});
}
/**
* Align Proteins
* @param proteinA
* @param proteinB
* @returns any Successful Response
* @throws ApiError
*/
public static alignProteins(
proteinA: string,
proteinB: string,
): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/protein/pdb/{proteinA}/{proteinB}',
path: {
'proteinA': proteinA,
'proteinB': proteinB,
},
errors: {
422: `Validation Error`,
},
});
}
/**
* Get All Tutorials
* @returns Tutorial Successful Response
Expand Down

0 comments on commit fa6412c

Please sign in to comment.