Skip to content

Commit 97476af

Browse files
authored
Explicitly declare insert columns (#53)
Add explicit declaration of insert columns when inserting to bam_tpl_read_group (which replaced bam_tpl_loadable)
1 parent 19027ec commit 97476af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scripts/add_bam_pair_xenocp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def add_bam_pair_stp(raptr, sample, target, project, subproject, **kwargs):
102102
bam_tpl_id_xenocp = raptr.fetch_item_or_fail(query, (stp_id,))
103103

104104
# Associate loadables with new bam_tpl.
105-
query = """insert into bam_tpl_read_group values (%s, %s)"""
105+
query = """insert into bam_tpl_read_group(bam_tpl_id, read_group_id) values (%s, %s)"""
106106
for rgid in rg_ids:
107107
raptr.execute(query, (bam_tpl_id_xenocp, rgid))
108108

0 commit comments

Comments
 (0)