Skip to content

Commit

Permalink
Export new concentration field (#2785) (patch)
Browse files Browse the repository at this point in the history
### Fixed

- New concentration is uploaded to LIMS
  • Loading branch information
islean authored Jan 9, 2024
1 parent 25f106d commit a381326
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions cg/apps/lims/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ def _export_sample(self, lims_sample):
else None
),
"comment": udfs.get("comment"),
"concentration_ng_ul": udfs.get("Concentration (ng/ul)"),
}

def get_received_date(self, lims_id: str) -> dt.date:
Expand Down
1 change: 1 addition & 0 deletions cg/constants/lims.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"comment": "Comment",
"control": "Control",
"concentration": "Concentration (nM)",
"concentration_ng_ul": "Concentration (ng/ul)",
"concentration_sample": "Sample Conc.",
"customer": "customer",
"data_analysis": "Data Analysis",
Expand Down
2 changes: 1 addition & 1 deletion cg/meta/orders/case_submitter.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from cg.meta.orders.submitter import Submitter
from cg.models.orders.order import OrderIn
from cg.models.orders.samples import Of1508Sample, OrderInSample
from cg.store.models import ApplicationVersion, Customer, Case, CaseSample, Sample
from cg.store.models import ApplicationVersion, Case, CaseSample, Customer, Sample

LOG = logging.getLogger(__name__)

Expand Down
1 change: 1 addition & 0 deletions cg/models/lims/sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class Udf(BaseModel):
comment: str | None
concentration: str | None
concentration_sample: str | None
concentration_ng_ul: str | None
customer: str
control: str | None
data_analysis: str | None
Expand Down
1 change: 1 addition & 0 deletions cg/models/orders/samples.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class OrderInSample(BaseModel):
priority: PriorityEnum = PriorityEnum.standard
require_qc_ok: bool = False
volume: str
concentration_ng_ul: str | None

@classmethod
def is_sample_for(cls, project: OrderType):
Expand Down
1 change: 1 addition & 0 deletions tests/fixtures/cgweb_orders/balsamic.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
],
"comment": "other Elution buffer",
"container": "96 well plate",
"concentration_ng_ul": "18",
"container_name": "p1",
"data_analysis": "balsamic",
"data_delivery": "fastq-analysis-scout",
Expand Down

0 comments on commit a381326

Please sign in to comment.