Skip to content

Commit

Permalink
added hrr + pcc cutoff to DB
Browse files Browse the repository at this point in the history
  • Loading branch information
proost committed Sep 12, 2017
1 parent c02fea3 commit ce3ed4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions planet/models/expression/networks.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ class ExpressionNetworkMethod(db.Model):
edge_type = db.Column(db.Enum("rank", "weight", name='edge_type'))
probe_count = db.Column(db.Integer)

hrr_cutoff = db.Column(db.Integer)
pcc_cutoff = db.Column(db.Float)
enable_second_level = db.Column(db.Boolean)

probes = db.relationship('ExpressionNetwork',
Expand Down Expand Up @@ -489,6 +491,8 @@ def read_expression_network_lstrap(network_file, species_id, description, score_

# Add network method first
network_method = ExpressionNetworkMethod(species_id, description, score_type)
network_method.hrr_cutoff = limit
network_method.pcc_cutoff = pcc_cutoff
network_method.enable_second_level = enable_second_level

db.session.add(network_method)
Expand Down

0 comments on commit ce3ed4c

Please sign in to comment.