Skip to content

Commit

Permalink
Explicitly declare insert columns (#53)
Browse files Browse the repository at this point in the history
Add explicit declaration of insert columns when inserting to bam_tpl_read_group (which replaced bam_tpl_loadable)
  • Loading branch information
mellypop authored Nov 1, 2024
1 parent 19027ec commit 97476af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scripts/add_bam_pair_xenocp.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def add_bam_pair_stp(raptr, sample, target, project, subproject, **kwargs):
bam_tpl_id_xenocp = raptr.fetch_item_or_fail(query, (stp_id,))

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

Expand Down

0 comments on commit 97476af

Please sign in to comment.