Skip to content

Commit

Permalink
on delete set for species
Browse files Browse the repository at this point in the history
  • Loading branch information
proost committed Feb 15, 2017
1 parent e52da5e commit c5f55b8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions planet/models/species.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ class Species(db.Model):
description = db.Column(db.Text)

sequences = db.relationship('Sequence', backref='species', lazy='dynamic', cascade='all, delete-orphan')
networks = db.relationship('ExpressionNetworkMethod', backref='species', lazy='dynamic')
profiles = db.relationship('ExpressionProfile', backref='species', lazy='dynamic')
expression_specificities = db.relationship('ExpressionSpecificityMethod', backref='species', lazy='dynamic')
networks = db.relationship('ExpressionNetworkMethod', backref='species', lazy='dynamic', cascade='all, delete-orphan')
profiles = db.relationship('ExpressionProfile', backref='species', lazy='dynamic', cascade='all, delete-orphan')
expression_specificities = db.relationship('ExpressionSpecificityMethod', backref='species', lazy='dynamic', cascade='all, delete-orphan')

def __init__(self, code, name, data_type='genome',
color="#C7C7C7", highlight="#DEDEDE", description=None):
Expand Down
4 changes: 2 additions & 2 deletions planet/templates/expression_cluster.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ <h1>Cluster: {{ cluster.name }}<br /><small>{{ cluster.method.method }}</small><
<table class="table table-striped" id="SimilarClusters">
<thead>
<tr>
<th data-sort="string-ins">Cluster</th>
<th data-sort="string-ins">Clustering Method</th>
<th data-sort="string-ins">Target</th>
<th data-sort="float">Jaccard index</th>
<th data-sort="string-ins">Gene Family Method</th>
<th data-sort="string-ins">Gene Family Method <span class="text-muted">(for comparison)</span></th>
<th>Actions</th>
</tr>
</thead>
Expand Down

0 comments on commit c5f55b8

Please sign in to comment.