aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorzsloan2023-08-17 19:35:22 +0000
committerzsloan2023-08-17 14:54:42 -0500
commita74f8e4cd312fe68125868776b1cc21182ae4718 (patch)
tree1c92d097156f004484ed7ebd31d86109c7a65341 /gn3/db
parentc764d08e02c19395a48a6bad985ff3f8d0d2f9fe (diff)
downloadgenenetwork3-a74f8e4cd312fe68125868776b1cc21182ae4718.tar.gz
Fix a couple remaining issues with function parameters
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/sample_data.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/gn3/db/sample_data.py b/gn3/db/sample_data.py
index 07810e0..4cf1058 100644
--- a/gn3/db/sample_data.py
+++ b/gn3/db/sample_data.py
@@ -421,7 +421,7 @@ def delete_sample_data(
conn=conn,
probeset_id=int(probeset_id),
dataset_name=dataset_name,
- strain_name=extract_strain_name(csv_header, original_data),
+ strain_name=extract_strain_name(csv_header, data),
)
none_case_attrs: Dict[str, Any] = {
"Strain Name": lambda: 0,
@@ -434,7 +434,7 @@ def delete_sample_data(
conn=conn,
publishxref_id=int(trait_name),
phenotype_id=phenotype_id,
- strain_name=extract_strain_name(csv_header, original_data),
+ strain_name=extract_strain_name(csv_header, data),
)
none_case_attrs: Dict[str, Any] = {
"Strain Name": lambda: 0,
@@ -527,7 +527,7 @@ def insert_sample_data(
conn=conn,
probeset_id=int(probeset_id),
dataset_name=dataset_name,
- strain_name=extract_strain_name(csv_header, original_data),
+ strain_name=extract_strain_name(csv_header, data),
)
none_case_attrs: Dict[str, Any] = {
"Strain Name": lambda _: 0,
@@ -540,13 +540,13 @@ def insert_sample_data(
conn=conn,
publishxref_id=int(trait_name),
phenotype_id=phenotype_id,
- strain_name=extract_strain_name(csv_header, original_data),
+ strain_name=extract_strain_name(csv_header, data),
)
none_case_attrs: Dict[str, Any] = {
"Strain Name": lambda _: 0,
- "Value": lambda: __insert_data(conn, "PublishData", x),
- "SE": lambda: __insert_data(conn, "PublishSE", x),
- "Count": lambda: __insert_data(conn, "NStrain", x),
+ "Value": lambda x: __insert_data(conn, "PublishData", x),
+ "SE": lambda x: __insert_data(conn, "PublishSE", x),
+ "Count": lambda x: __insert_data(conn, "NStrain", x),
}
try: