We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85c25b8 commit 2813d84Copy full SHA for 2813d84
src/api/routers/map.py
@@ -49,6 +49,14 @@ async def map_scoreset(urn: str) -> ScoresetMapping:
49
msg = f"Unable to acquire resource from MaveDB: {e}"
50
raise HTTPException(status_code=500, detail=msg) from e
51
52
+ if not records:
53
+ return JSONResponse(
54
+ content=ScoresetMapping(
55
+ metadata=metadata,
56
+ error_message="Score set contains no variants to map",
57
+ ).model_dump(exclude_none=True)
58
+ )
59
+
60
try:
61
alignment_result = align(metadata, True)
62
except BlatNotFoundError as e:
0 commit comments