Skip to content

Commit

Permalink
underscore bug models
Browse files Browse the repository at this point in the history
  • Loading branch information
strasserle committed Dec 12, 2024
1 parent 33fbb2b commit e8c6c0b
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit e8c6c0b

Please sign in to comment.