Skip to content

Commit d1579ed

Browse files
committed
Improvement of the database selection description
1 parent 4824d87 commit d1579ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# FuncTree 2
22
[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
33

4-
FuncTree is a web application that allows user to map omics data onto a pre-defined radial tree (e.g. based on the [KEGG brite functional hierarchy](http://www.genome.jp/kegg-bin/get_htext?br08902.keg)) to help them to quickly and comprehensively understand the functional potential of their data, and to develop further hypothesis and scientific insights.
4+
FuncTree is a web application that allows users to map omics data onto a pre-defined radial tree (e.g. based on the [KEGG brite functional hierarchy](http://www.genome.jp/kegg-bin/get_htext?br08902.keg)) to help them quickly and comprehensively understand the functional potential of their data, and to develop further hypothesis and scientific insights.
55

66
## Installation
77
Clone this repository and change directory to `functree-ng`:

functree/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ def get_targets():
55
'''
66
Returns the db targets with KEGG at the top
77
'''
8-
targets = models.Tree.objects.aggregate({'$group': {'_id': '$source'}})
9-
targets_choices = [(target['_id'],) * 2 for target in targets]
8+
targets = models.Tree.objects.only('source', 'description')
9+
targets_choices = [(target['source'], target['source'] + ": " + target['description']) for target in targets]
1010
return list(filter(lambda x: x[0] == "KEGG", targets_choices)) + list(filter(lambda x: x[0] != "KEGG", targets_choices))
1111

1212
class MappingForm(flask_wtf.FlaskForm):

0 commit comments

Comments
 (0)