Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Rasi committed Jan 12, 2024
1 parent bed14c7 commit 43a9954
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions loqusdbapi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import logging
import loqusdb
from pathlib import Path
from typing import Optional
from typing import Optional, List

from fastapi import Depends, FastAPI, HTTPException, status
from fastapi.encoders import jsonable_encoder
Expand Down Expand Up @@ -40,17 +40,14 @@ def database(uri: str = None, db_name: str = None) -> MongoAdapter:

return MongoAdapter(client, db_name=db_name)

def mt_chrom_baseline():


@app.get("/")
def read_root():
return {
"message": "Welcome to the loqusdbapi",
"loqusdb_version": loqusdb.__version__,
}

def get_mt_chromosome(mt_chrom: str) -> str:
def get_mt_chromosome(mt_chrom: Optional[str]) -> Optional[str]:
"""Getting right MT chromosome, according to the query and the genome build used in the app."""
if settings.genome_build == "GRCh38" and mt_chrom == "MT":
return "M"
Expand Down

0 comments on commit 43a9954

Please sign in to comment.