Skip to content

Commit

Permalink
Merge pull request #54 from stjude/bugfix/remove-extra-quotes
Browse files Browse the repository at this point in the history
Remove extra quotes and name derived table
  • Loading branch information
mellypop authored Nov 1, 2024
2 parents 97476af + 42e3365 commit 2e067a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scripts/add_bam_pair_xenocp.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def add_bam_pair_stp(raptr, sample, target, project, subproject, **kwargs):
genome_id = raptr.fetch_item_or_fail(query, (bam_id,))

# Get anls type named xenocp
query = """select anls_type_id from raptr.anls_type where name='%s'"""
query = """select anls_type_id from raptr.anls_type where name=%s"""
anls_type_id = raptr.fetch_item_or_fail(query, ('xenocp',))

# Add a new bam
Expand Down Expand Up @@ -164,7 +164,7 @@ def add_bam_pair_bam_id(raptr, bam_id, **kwargs):
"""
query = """select formal_name, target_name, project_name, subproject from sample_target_project_view inner join
(select sample_target_project_id from bam_and_tpl where bam_id = %s and bam_status = 'Normal'
and legacy = false)
and legacy = false) bt
using (sample_target_project_id);"""
(sample, target, project, subproject) = raptr.fetch_row_or_fail(query, (bam_id,))
add_bam_pair_stp(raptr, sample, target, project, subproject)
Expand Down

0 comments on commit 2e067a4

Please sign in to comment.