Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mothur datatypes: fix metadata failure for large count tables #3706

Merged
merged 2 commits into from Mar 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/galaxy/datatypes/mothur.py
Expand Up @@ -270,7 +270,8 @@ def set_meta(self, dataset, overwrite=True, **kwd):
dataset.metadata.column_names = self.column_names
dataset.metadata.column_types = self.column_types
dataset.metadata.comment_lines = self.comment_lines
dataset.metadata.data_lines -= self.comment_lines
if isinstance(dataset.metadata.data_lines, int):
dataset.metadata.data_lines -= self.comment_lines


class AlignReport(Tabular):
Expand Down Expand Up @@ -735,7 +736,8 @@ def set_meta(self, dataset, overwrite=True, skip=1, max_data_lines=None, **kwd):
dataset.metadata.groups = colnames[2:]

dataset.metadata.comment_lines = 1
dataset.metadata.data_lines -= 1
if isinstance(dataset.metadata.data_lines, int):
dataset.metadata.data_lines -= 1


class RefTaxonomy(Tabular):
Expand Down