Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Crazy-Jack committed Jan 4, 2023
1 parent a16c082 commit c3ff26c
Show file tree
Hide file tree
Showing 14 changed files with 48 additions and 458 deletions.
Empty file removed e2db/diy/__init__.py
Empty file.
3 changes: 0 additions & 3 deletions e2db/diy/admin.py

This file was deleted.

5 changes: 0 additions & 5 deletions e2db/diy/apps.py

This file was deleted.

Empty file removed e2db/diy/migrations/__init__.py
Empty file.
3 changes: 0 additions & 3 deletions e2db/diy/models.py

This file was deleted.

184 changes: 0 additions & 184 deletions e2db/diy/templates/diy/diy.html

This file was deleted.

3 changes: 0 additions & 3 deletions e2db/diy/tests.py

This file was deleted.

8 changes: 0 additions & 8 deletions e2db/diy/urls.py

This file was deleted.

4 changes: 0 additions & 4 deletions e2db/diy/views.py

This file was deleted.

2 changes: 1 addition & 1 deletion e2db/information/templates/information/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h4>Active Team Member</h4><br>
<div style="width:11vw"></div>
<div>
<img src="{% static 'base/img/MeganYates.jpeg' %}" width="150px">
<a href="https://leeoesterreich.org/megan-yates" target="_blank" style="color: black;"><p>Megan Yates</p></a>
<a href="https://leeoesterreich.org/megan-yates" target="_blank" style="color: black;"><p>Megan Yates, PhD</p></a>
<div style="font-size: 10px;">Project Development and Maintainance</div>
</div>

Expand Down
83 changes: 45 additions & 38 deletions e2db/static/tools/js/stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ $(document).ready(function () {

if (upordown == 'up') {
var count_bcolor = 'rgba(255, 0, 0, 1)'
var labels = datasets_names[0]
var labels = "Comparsion Number"
} else {
var count_bcolor = 'rgba(0, 0, 255, 1)'
var labels = datasets_names[0]
var labels = "Comparsion Number"
}
const data = {
labels: datasets_names,
Expand All @@ -64,6 +64,9 @@ $(document).ready(function () {
data: data,
options: {
plugins: {
tooltip: {
enabled: false // <-- this option disables tooltips
},
legend: {
display: false,
},
Expand All @@ -84,7 +87,7 @@ $(document).ready(function () {
},
title: {
display: true,
text: 'Num. Of Dataset Included'
text: 'Number of comparisons that fit the cutoff'
}
},
x: {
Expand All @@ -104,40 +107,40 @@ $(document).ready(function () {
config
);
}
function update_dataset_right() {
negative_data = []
for (i in window.all_meta_dataset[window.showing_index]['down']) {
negative_data.push(-1 * window.all_meta_dataset[window.showing_index]['down'][i])
}
const data_ind = {
labels: ["0-5", "5-10", "10-15", "15-20", "20-25", "25-30", "30-35",
"35-40", "40-45", "45-50", "50-55", "55-60", "60-65", "65-70", "70-75",
"75-80", "80-85", "85-90", "90-95", "95-100"],
datasets: [{
label: 'Up Regulated',
data: window.all_meta_dataset[window.showing_index]['up'],
backgroundColor: [
'rgba(255, 0, 0, 0.5)',
],
borderColor: [
'rgba(255, 0, 0, 1)',
],
borderWidth: 1
}, {
label: 'Down Regulated',
data: negative_data,
backgroundColor: [
'rgba(0, 0, 255, 0.5)',
],
borderColor: [
'rgba(0, 0, 255, 1)',
],
borderWidth: 1
}]
};
return data_ind;

}
// function update_dataset_right() {
// negative_data = []
// for (i in window.all_meta_dataset[window.showing_index]['down']) {
// negative_data.push(-1 * window.all_meta_dataset[window.showing_index]['down'][i])
// }
// const data_ind = {
// labels: ["0-5", "5-10", "10-15", "15-20", "20-25", "25-30", "30-35",
// "35-40", "40-45", "45-50", "50-55", "55-60", "60-65", "65-70", "70-75",
// "75-80", "80-85", "85-90", "90-95", "95-100"],
// datasets: [{
// label: 'Up Regulated ',
// data: window.all_meta_dataset[window.showing_index]['up'],
// backgroundColor: [
// 'rgba(255, 0, 0, 0.5)',
// ],
// borderColor: [
// 'rgba(255, 0, 0, 1)',
// ],
// borderWidth: 1
// }, {
// label: 'Down Regulated ',
// data: negative_data,
// backgroundColor: [
// 'rgba(0, 0, 255, 0.5)',
// ],
// borderColor: [
// 'rgba(0, 0, 255, 1)',
// ],
// borderWidth: 1
// }]
// };
// return data_ind;

// }

function update_dataset_right_input(gene_name, up, down) {
negative_data = []
Expand Down Expand Up @@ -405,6 +408,10 @@ $(document).ready(function () {
data: data_ind,
options: {
plugins: {
tooltip: {
enabled: false // <-- this option disables tooltips
},

title: {
display: true,
text: 'Regulation Percentile for Gene ' + window.all_meta_dataset[window.showing_index].gene_name
Expand All @@ -422,7 +429,7 @@ $(document).ready(function () {
},
title: {
display: true,
text: 'Num. Of Dataset Included'
text: 'Number of comparisons that fit the cutoff'
}
},
x: {
Expand Down
2 changes: 1 addition & 1 deletion e2db/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@

Any further questions should be forwarded to

Dr. Zheqi Li (zhl98@pitt.edu) or Ms. Magen Yates (Yates.Megan@medstudent.pitt.edu)
Dr. Zheqi Li (zhl98@pitt.edu) or Dr. Megan Yates (Yates.Megan@medstudent.pitt.edu)
</div>
<hr style="width:75%;">
<div class="container">
Expand Down
2 changes: 1 addition & 1 deletion e2db/tools/templates/tools/stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ <h3>Gene List Query By User-defined Conditions</h3>
</div>
<div style="display:flex">

<div style="margin-left: 500px; margin-top: 3px;"><a id="download_meta" color="black" download="" href="#"><span class='ld ld-ring ld-spin hidden' style='font-size:26px; color: gray'></span> </a></div>
<div style="margin-left: 500px; margin-top: 3px;"><a id="download_meta" color="black" download="" href="#"> </a></div>

</div>
</div>
Expand Down
Loading

0 comments on commit c3ff26c

Please sign in to comment.