Skip to content

Commit

Permalink
Make true pos count agree with true pos checks
Browse files Browse the repository at this point in the history
This means we don't use the sample name to test concordance, possibly
leading to weird numbers when looking at multi-sample VCFs.
  • Loading branch information
ihodes committed Aug 31, 2015
1 parent 80d33b4 commit f47301c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cycledash/api/genotypes.py
Expand Up @@ -109,7 +109,8 @@ def get(run_id, query, with_stats=True):
g.c.contig == gt.c.contig,
g.c.position == gt.c.position,
g.c.reference == gt.c.reference,
g.c.alternates == gt.c.alternates))
g.c.alternates == gt.c.alternates,
g.c.sample_name == gt.c.sample_name))
valid_column = label('tag:true-positive', gt.c.contig != None)
q = (select(g.c + [valid_column])
.select_from(joined_q)
Expand Down

0 comments on commit f47301c

Please sign in to comment.