Skip to content

Commit

Permalink
default values for outgroup is None
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Mar 16, 2015
1 parent 8129955 commit f205b4d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion voseq/create_dataset/dataset.py
Expand Up @@ -9,7 +9,7 @@ class Dataset(object):
Base class to create datasets from Seq objects into FASTA, TNT formats.
"""
def __init__(self, codon_positions, partition_by_positions, seq_objs, gene_codes,
voucher_codes, file_format, outgroup, voucher_codes_metadata):
voucher_codes, file_format, outgroup=None, voucher_codes_metadata=None):
self.outgroup = outgroup
self.file_format = file_format
self.codon_positions = codon_positions
Expand Down
1 change: 1 addition & 0 deletions voseq/create_dataset/tests/tests_create_tnt_dataset.py
Expand Up @@ -28,6 +28,7 @@ def setUp(self):
'positions': ['2nd', '3rd'],
'partition_by_positions': 'ONE',
'file_format': 'TNT',
'outgroup': '',
}

self.c = Client()
Expand Down
1 change: 1 addition & 0 deletions voseq/create_dataset/tests/tests_utils.py
Expand Up @@ -28,6 +28,7 @@ def setUp(self):
'positions': ['ALL'],
'partition_by_positions': 'ONE',
'file_format': 'FASTA',
'outgroup': '',
}

self.c = Client()
Expand Down
3 changes: 2 additions & 1 deletion voseq/create_dataset/tests/tests_views.py
Expand Up @@ -19,6 +19,7 @@ def setUp(self):
'taxonset': None,
'voucher_codes': 'CP100-10\r\nCP100-11',
'geneset': None,
'outgroup': '',
}

self.c = Client()
Expand All @@ -43,8 +44,8 @@ def test_view_result(self):
'degen_translations': 'NORMAL',
'exclude': 'YES',
'aminoacids': False,
'outgroup': '',
'special': False,
'outgroup': '',
}
)
self.assertEqual(200, res.status_code)
Expand Down
4 changes: 3 additions & 1 deletion voseq/create_dataset/utils.py
Expand Up @@ -155,7 +155,9 @@ def create_dataset(self):
self.create_seq_objs()

if self.file_format == 'FASTA':
fasta = CreateFasta(self.codon_positions, self.partition_by_positions, self.seq_objs, self.gene_codes, self.voucher_codes, self.file_format)
fasta = CreateFasta(self.codon_positions, self.partition_by_positions,
self.seq_objs, self.gene_codes, self.voucher_codes,
self.file_format)
fasta_dataset = fasta.from_seq_objs_to_dataset()
self.warnings += fasta.warnings
return fasta_dataset
Expand Down

0 comments on commit f205b4d

Please sign in to comment.