Skip to content

Commit

Permalink
Merge branch 'main' into feat/authz
Browse files Browse the repository at this point in the history
  • Loading branch information
v-rocheleau committed Oct 28, 2024
2 parents 897158e + 244d0e0 commit f9f9533
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions transcriptomics_data_service/routers/ingest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from fastapi import APIRouter, File, Request, UploadFile, status
from fastapi import APIRouter, File, UploadFile, status
import csv
import json
from io import StringIO
Expand All @@ -22,7 +22,6 @@
dependencies=authz_plugin.dep_authz_ingest(),
)
async def ingest(
request: Request,
db: DatabaseDependency,
experiment_result_id: str,
assembly_name: str,
Expand All @@ -34,7 +33,7 @@ async def ingest(
buffer = StringIO(file_bytes.decode("utf-8"))
rcm = {}
for row in csv.DictReader(buffer):
# print(row)
print(row)
rcm[row[GENE_ID_KEY]] = row
# rcm["WASH6P"] would return something like:
# {'GeneID': 'WASH6P', '<BIOSAMPLE_ID_1>': '63', '<BIOSAMPLE_ID_2>: '0', ...}
Expand Down

0 comments on commit f9f9533

Please sign in to comment.