From a4252908c8c295e0c41a331a65c5de07de45eec5 Mon Sep 17 00:00:00 2001 From: Ross Lazarus Date: Thu, 5 Jun 2008 15:46:56 +0000 Subject: [PATCH] added snpmatrix data type to genetics.py --- lib/galaxy/datatypes/genetics.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/lib/galaxy/datatypes/genetics.py b/lib/galaxy/datatypes/genetics.py index ec9a917f327..9857eb7d36d 100644 --- a/lib/galaxy/datatypes/genetics.py +++ b/lib/galaxy/datatypes/genetics.py @@ -124,6 +124,19 @@ class Rgenetics(Html): return True return False +class SNPMatrix(Rgenetics): + """fake class to distinguish different species of Rgenetics data collections + """ + file_ext="snpmatrix" + + def set_peek( self, dataset ): + dataset.peek = "Binary RGenetics file" + dataset.blurb = data.nice_size( dataset.get_size() ) + def sniff( self, filename ): + """ + """ + return True + class Lped(Rgenetics): """fake class to distinguish different species of Rgenetics data collections """