Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mutalyzer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
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
Mirrors
mutalyzer
Commits
38b8eff4
Commit
38b8eff4
authored
9 years ago
by
Vermaat
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in transcript-protein link query
parent
45f7d276
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mutalyzer/db/queries.py
+7
-11
7 additions, 11 deletions
mutalyzer/db/queries.py
with
7 additions
and
11 deletions
mutalyzer/db/queries.py
+
7
−
11
View file @
38b8eff4
...
...
@@ -87,17 +87,13 @@ def get_transcript_protein_link(accession, reverse=False):
# Lookup by protein accession instead of transcript accession.
query_column
,
other_column
=
other_column
,
query_column
return
TranscriptProteinLink
.
query
\
.
filter_by
(
transcript_accession
=
accession
)
\
.
filter
(
query_column
==
accession
,
or_
(
and_
(
other_column
.
isnot
(
None
),
TranscriptProteinLink
.
added
>=
link_datetime
),
and_
(
other_column
.
is_
(
None
),
TranscriptProteinLink
.
added
>=
negative_link_datetime
))
)
\
.
first
()
return
TranscriptProteinLink
.
query
.
filter
(
query_column
==
accession
,
or_
(
and_
(
other_column
.
isnot
(
None
),
TranscriptProteinLink
.
added
>=
link_datetime
),
and_
(
other_column
.
is_
(
None
),
TranscriptProteinLink
.
added
>=
negative_link_datetime
))
).
first
()
def
update_transcript_protein_link
(
transcript_accession
=
None
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment