From f56e81a996511869f4a068418ffcd104c1b0ccdc Mon Sep 17 00:00:00 2001 From: shiltemann Date: Thu, 21 Apr 2016 16:34:55 +0200 Subject: [PATCH] allow for comment lines in Otu files --- lib/galaxy/datatypes/mothur.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/datatypes/mothur.py b/lib/galaxy/datatypes/mothur.py index dc76385e63e..05312449a91 100644 --- a/lib/galaxy/datatypes/mothur.py +++ b/lib/galaxy/datatypes/mothur.py @@ -29,7 +29,7 @@ class Otu(Text): headers = get_headers(dataset.file_name, sep='\t', count=-1) for line in headers: - if len(line) >= 2: + if len(line) >= 2 and not line[0].startswith('@'): data_lines += 1 ncols = max(ncols, len(line)) label_names.add(line[0])