diff options
Diffstat (limited to 'scripts/insert_data.py')
-rw-r--r-- | scripts/insert_data.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/insert_data.py b/scripts/insert_data.py index efe81df..a60426a 100644 --- a/scripts/insert_data.py +++ b/scripts/insert_data.py @@ -280,8 +280,11 @@ def insert_se(# pylint: disable = [too-many-arguments] file=sys.stderr) return 1 + namemappings = { + _key[0:_key.find("::RAND_")]: _key for _key in annotations.keys() + } se_values = ( - {"DataId": annotations[str(item["ProbeSetName"])]["DataId"], **item} + {"DataId": annotations[namemappings[str(item["ProbeSetName"])]]["DataId"], **item} for item in ( row for psrows in read_datavalues(filepath, headings, strains).values() |