Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

underscore bug #25

Merged
merged 2 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,9 +322,9 @@ class TranscriptInteraction(db.Model):
sponge_run = relationship("SpongeRun", foreign_keys=[sponge_run_ID])

transcript_ID_1 = db.Column(db.Integer, db.ForeignKey('transcript.transcript_ID'), nullable=False)
transcript1 = relationship("Transcript", foreign_keys=[transcript_ID_1])
transcript_1 = relationship("Transcript", foreign_keys=[transcript_ID_1])
transcript_ID_2 = db.Column(db.Integer, db.ForeignKey('transcript.transcript_ID'), nullable=False)
transcript2 = relationship("Transcript", foreign_keys=[transcript_ID_2])
transcript_2 = relationship("Transcript", foreign_keys=[transcript_ID_2])

p_value = db.Column(db.Float)
mscor = db.Column(db.Float)
Expand Down Expand Up @@ -948,8 +948,8 @@ class Meta:
fields = ["correlation", "mscor", "p_value", "sponge_run", "transcript_1", "transcript_2"]

sponge_run = ma.Nested(lambda: SpongeRunSchema(only=("sponge_run_ID", "dataset")))
transcript1 = ma.Nested(lambda: TranscriptSchema(only=("enst_number", )))
transcript2 = ma.Nested(lambda: TranscriptSchema(only=("enst_number", )))
transcript_1 = ma.Nested(lambda: TranscriptSchema(only=("enst_number", )))
transcript_2 = ma.Nested(lambda: TranscriptSchema(only=("enst_number", )))

class GeneEnrichmentScoreSchema(ma.SQLAlchemyAutoSchema):
class Meta:
Expand Down
12 changes: 6 additions & 6 deletions swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ paths:
correlation:
type: number
description: Correlation of the corresponding ceRNA interaction.
transcript1:
transcript_1:
type: object
description: One of the two interacting ceRNAs.
properties:
Expand Down Expand Up @@ -843,7 +843,7 @@ paths:
canonical_transcript:
type: integer
description: Is a canonical transcript
transcript2:
transcript_2:
type: object
description: The other part of the ceRNA interaction.
properties:
Expand Down Expand Up @@ -1101,7 +1101,7 @@ paths:
correlation:
type: number
description: Correlation of the corresponding ceRNA interaction.
transcript1:
transcript_1:
type: object
description: One of the two interacting ceRNAs.
properties:
Expand Down Expand Up @@ -1133,7 +1133,7 @@ paths:
canonical_transcript:
type: integer
description: Is a canonical transcript
transcript2:
transcript_2:
type: object
description: The other part of the ceRNA interaction.
properties:
Expand Down Expand Up @@ -1984,7 +1984,7 @@ paths:
correlation:
type: number
description: Correlation of the corresponding ceRNA interaction.
transcript1:
transcript_1:
type: object
description: transcript of the first part of the ceRNA interaction.
properties:
Expand All @@ -2001,7 +2001,7 @@ paths:
gene_symbol:
type: string
description: Symbol of the gene that the transcript is part of
transcript2:
transcript_2:
type: object
description: transcript of the second part of the ceRNA interaction.
properties:
Expand Down
Loading