Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FastGenes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Metagenomics
FastGenes
Merge requests
!10
NCBI taxonomy creation
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
NCBI taxonomy creation
13-ncbi-taxonomy-db
into
dev
Overview
1
Commits
13
Pipelines
8
Changes
31
Merged
Kenzo-Hugo Hillion
requested to merge
13-ncbi-taxonomy-db
into
dev
3 years ago
Overview
1
Commits
13
Pipelines
8
Changes
31
Expand
Also improve performances for KEGG orthology creation
Closes
#13 (closed)
Edited
3 years ago
by
Kenzo-Hugo Hillion
0
0
Merge request reports
Compare
dev
version 7
e3f601db
3 years ago
version 6
4070fab8
3 years ago
version 5
43000c54
3 years ago
version 4
666ec45f
3 years ago
version 3
06039982
3 years ago
version 2
f769d567
3 years ago
version 1
feffb25b
3 years ago
dev (base)
and
latest version
latest version
29500516
13 commits,
3 years ago
version 7
e3f601db
12 commits,
3 years ago
version 6
4070fab8
11 commits,
3 years ago
version 5
43000c54
9 commits,
3 years ago
version 4
666ec45f
7 commits,
3 years ago
version 3
06039982
6 commits,
3 years ago
version 2
f769d567
4 commits,
3 years ago
version 1
feffb25b
3 commits,
3 years ago
31 files
+
1254
−
224
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
31
Search (e.g. *.vue) (Ctrl+P)
backend/app/app/api/endpoints/keggs.py
+
6
−
5
Options
from
fastapi
import
Depends
,
APIRouter
,
HTTPException
from
fastapi_pagination
import
Page
,
paginate
from
fastapi_pagination
import
Page
from
fastapi_pagination.ext.sqlmodel
import
paginate
from
sqlalchemy.exc
import
NoResultFound
,
IntegrityError
from
sqlmodel
import
Session
from
sqlmodel
import
Session
,
select
from
app.db
import
get_session
from
app.core.models.kegg
import
KeggOrthology
from
app.core.schemas.entities.kegg
import
(
KeggOrthologyRead
,
KeggOrthologyUpdate
,
@@ -17,9 +20,7 @@ router = APIRouter()
@router.get
(
"
/
"
,
response_model
=
Page
[
KeggOrthologyRead
])
async
def
get_kegg_orthology_entries
(
session
:
Session
=
Depends
(
get_session
)):
use_case
=
CrudKeggOrthologyUseCase
()
keggs
=
use_case
.
get_all
(
session
=
session
)
return
paginate
(
keggs
)
return
paginate
(
session
,
select
(
KeggOrthology
))
@router.get
(
"
/{kegg_id}
"
,
response_model
=
KeggOrthologyRead
)
Loading