-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMicrobiome Django Pages.txt
86 lines (39 loc) · 1.86 KB
/
Microbiome Django Pages.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Four Links: Show Info Show Profile Search by Attribute Search by Taxa
____________________________________________________________________________
:::Show Info:::
<Multiple Choice Field> contain sample list, allow user to choose multiple samples
<Multiple choice Field> contain list of variables, allow user to choose multiple variables
[Submit] -> displays:
- QUERY submitted
- SAMPLES CHOSEN
- VALUES OF VARIABLES CHOSEN FOR THOSE SAMPLES
form and views:
... Forms.ModelMultipleChoiceField(queryset=SampleAttribute.objects.values('variable', flat=True).distinct())
*varlist = request.post.getlist('modelmultiplechoicefield')
____________________________________________________________________________
:::Show Profile:::
<Multiple Choice Field> contain sample list, allow user to choose multiple samples
<Multiple Choice Field> contain rank list
<Multiple Choice FIeld> contains method list (CHOOSE ONE)
<Multiple Choice Field> contains variables (read count, % of reads, avg reads)
^ ALL REQUIRED
[Submit] -> displays:
Taxa Level Taxa Name Method Percent
S1 G G1 1 0.5
S2 G G1 1 0.1
S3 G G2 1 1
____________________________________________________________________________
:::Search Samples by Attribute Comparison:::
3 choice fields:
- List of Variables (user selects one)
- Comparison Type (user selects either: EQUAL TO or NOT EQUAL TO (string comparison))
- Value (user selects a value for which to make comparison)
SUBMIT -> returns list of samples that satisfy the condition
____________________________________________________________________________
:::Search by Taxa:::
4 choice fields:
- TAXA (user selects one)
- Method (user selects 1 or 2)
- Variable (no. reads | % of samples | avg_score )
- Threshold (user specifies some numsber)
SUBMIT -> returns list of samples where that taxa's Variable value exceeds the specified Threshold