Skip to content

Commit

Permalink
unindent
Browse files Browse the repository at this point in the history
  • Loading branch information
danvk committed May 7, 2015
1 parent 6f82323 commit f5e76d7
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions cycledash/bams.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ def attach_bams_to_vcfs(vcfs):
with tables(db, 'bams') as (con, bams):
q = select(bams.c)
bams = [dict(b) for b in con.execute(q).fetchall()]
for vcf in vcfs:
normal_bam_id = vcf.get('normal_bam_id')
tumor_bam_id = vcf.get('tumor_bam_id')

vcf['tumor_bam'] = (
dict(find(bams, lambda x: x.get('id') == tumor_bam_id) or {}))
vcf['normal_bam'] = (
dict(find(bams, lambda x: x.get('id') == normal_bam_id) or {}))
for vcf in vcfs:
normal_bam_id = vcf.get('normal_bam_id')
tumor_bam_id = vcf.get('tumor_bam_id')

vcf['tumor_bam'] = (
dict(find(bams, lambda x: x.get('id') == tumor_bam_id) or {}))
vcf['normal_bam'] = (
dict(find(bams, lambda x: x.get('id') == normal_bam_id) or {}))


def get_bam(bam_id):
Expand Down

0 comments on commit f5e76d7

Please sign in to comment.