Skip to content

Commit

Permalink
Lib/Sample Page
Browse files Browse the repository at this point in the history
  • Loading branch information
hash-bash committed Sep 25, 2024
1 parent 1066302 commit 4d478e7
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 22 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.2.15 on 2024-09-25 00:31

from django.db import migrations, models
import library_sample_shared.models


class Migration(migrations.Migration):

dependencies = [
('library_sample_shared', '0011_alter_indexi5_number_alter_indexi5_prefix_and_more'),
('library', '0008_alter_library_removed_equal_representation_nucleotides'),
]

operations = [
migrations.AlterField(
model_name='library',
name='removed_concentration_method',
field=models.ForeignKey(blank=True, null=True, on_delete=models.SET(library_sample_shared.models.get_removed_concentrationmethod), to='library_sample_shared.concentrationmethod', verbose_name='Concentration Method'),
),
]
2 changes: 1 addition & 1 deletion backend/library/migrations/max_migration.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0008_alter_library_removed_equal_representation_nucleotides
0009_alter_library_removed_concentration_method
2 changes: 2 additions & 0 deletions backend/library_sample_shared/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ def index_i5_id(self):
removed_concentration_method = models.ForeignKey(
ConcentrationMethod,
verbose_name="Concentration Method",
null=True,
blank=True,
on_delete=models.SET(get_removed_concentrationmethod),
) # This field is not in use

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Generated by Django 4.2.15 on 2024-09-25 00:31

from django.db import migrations, models
import library_sample_shared.models


class Migration(migrations.Migration):

dependencies = [
('library_sample_shared', '0011_alter_indexi5_number_alter_indexi5_prefix_and_more'),
('sample', '0012_alter_sample_removed_equal_representation_nucleotides'),
]

operations = [
migrations.AlterField(
model_name='sample',
name='removed_concentration_method',
field=models.ForeignKey(blank=True, null=True, on_delete=models.SET(library_sample_shared.models.get_removed_concentrationmethod), to='library_sample_shared.concentrationmethod', verbose_name='Concentration Method'),
),
]
2 changes: 1 addition & 1 deletion backend/sample/migrations/max_migration.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0012_alter_sample_removed_equal_representation_nucleotides
0013_alter_sample_removed_concentration_method
62 changes: 42 additions & 20 deletions backend/static/main-hub/app/view/libraries/Libraries.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,12 @@ Ext.define("MainHub.view.libraries.Libraries", {
return meta.record.getPoolPaths();
}
},
{
text: "GMO",
tooltip: "Genetically Modified Organism",
dataIndex: "gmo",
renderer: "gridCellTooltipRenderer"
},
{
text: "Date",
dataIndex: "create_time",
Expand Down Expand Up @@ -466,28 +472,49 @@ Ext.define("MainHub.view.libraries.Libraries", {
dataIndex: "concentration"
},
{
text: "RQN",
tooltip: "RNA Quality",
dataIndex: "rna_quality",
width: 55,
renderer: function (value) {
return value === 11 ? "Determined by Facility" : value;
}
text: "Measuring Unit",
tooltip: "Measuring Unit",
dataIndex: "measuring_unit",
renderer: "gridCellTooltipRenderer"
},
{
text: "bp",
tooltip: "Mean Fragment Size",
dataIndex: "mean_fragment_size"
text: "Measured Value",
tooltip: "Measured Value",
dataIndex: "measured_value",
renderer: "gridCellTooltipRenderer"
},
{
text: "Index Type",
dataIndex: "index_type_name",
text: "Starting Amount",
tooltip: "Starting Amount",
dataIndex: "amount_facility",
renderer: "gridCellTooltipRenderer"
}, {
text: "PCR Cycles",
tooltip: "PCR Cycles",
dataIndex: "pcr_cycles",
renderer: "gridCellTooltipRenderer"
}, {
text: "ng/μl (Output)",
tooltip: "ng/μl (Output)",
dataIndex: "concentration_facility",
renderer: "gridCellTooltipRenderer"
},
{
text: "Index Reads",
tooltip: "# of Index Reads",
dataIndex: "index_reads"
text: "Measuring Unit (Output)",
tooltip: "Measuring Unit (Output)",
dataIndex: "measuring_unit_facility",
renderer: "gridCellTooltipRenderer"
},
{
text: "Measured Value (Output)",
tooltip: "Measured Value (Output)",
dataIndex: "measured_value_facility",
renderer: "gridCellTooltipRenderer"
},
{
text: "Index Type",
dataIndex: "index_type_name",
renderer: "gridCellTooltipRenderer"
},
{
text: "I7",
Expand All @@ -509,11 +536,6 @@ Ext.define("MainHub.view.libraries.Libraries", {
tooltip: "Sequencing Depth",
dataIndex: "sequencing_depth"
},
{
text: "Organism",
dataIndex: "organism_name",
width: 150
},
]
}
}
Expand Down

0 comments on commit 4d478e7

Please sign in to comment.