From e0ed30681e0b15ec804eb11f2ecfe3079fd416b6 Mon Sep 17 00:00:00 2001 From: hanna Date: Mon, 13 Jun 2011 18:53:38 +0000 Subject: [PATCH] If data is not available, use R-compatible 'NA' string. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5987 348d0f76-0448-11de-a6fe-93d51630548a --- python/generate_per_sample_metrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/generate_per_sample_metrics.py b/python/generate_per_sample_metrics.py index 7869b845b..b9c84d2cd 100644 --- a/python/generate_per_sample_metrics.py +++ b/python/generate_per_sample_metrics.py @@ -56,9 +56,9 @@ for sample_id,filename in samples.items(): max_haplotypes_confidently_matching = str(max(haplotypes_confidently_matching)) median_haplotypes_confidently_matching = str(median(haplotypes_confidently_matching)) else: - min_haplotypes_confidently_matching = 'N/A' - max_haplotypes_confidently_matching = 'N/A' - median_haplotypes_confidently_matching = 'N/A' + min_haplotypes_confidently_matching = 'NA' + max_haplotypes_confidently_matching = 'NA' + median_haplotypes_confidently_matching = 'NA' hybrid_selection_metrics = get_metrics('%s.%s' % (basepath,'hybrid_selection_metrics'))[0] alignment_summary_metrics = get_metrics('%s.%s' % (basepath,'alignment_summary_metrics'))[0]