Skip to content

Commit

Permalink
Remove no longer needed functions for creating biobox file
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbarton committed Jul 20, 2016
1 parent ed926f3 commit f76c8ca
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
16 changes: 0 additions & 16 deletions biobox_cli/biobox_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,3 @@ def generate(args):
def get_biobox_file_contents(dir_):
with open(os.path.join(dir_, 'biobox.yaml'), 'r') as f:
return yaml.load(f.read())

def fastq_arguments(args):
return files_values("fastq", args)

def fasta_arguments(args):
return files_values("fasta", args)

def reference_argument(ref):
return {"fasta_dir": [{"id" : 1, "type" : "reference", "value" : ref}]}

def files_values(identifier, args):
values = [entry(identifier + "_" + str(i), p_c, t) for (i, (p_c, t)) in enumerate(args)]
return {identifier : values}

def entry(id_, value, type_):
return {"id" : id_, "value" : value, "type" : type_}
6 changes: 0 additions & 6 deletions test/test_biobox_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,3 @@ def test_generate_biobox_file():
version: 0.9.0
"""
assert expected == output

def test_fastq_arguments_with_single_arg():
fastq_values = [("/fastq/input.fq", "paired")]
expected = {"fastq" :
[{"id" : "fastq_0", "type": "paired", "value" : "/fastq/input.fq"}]}
assert bbf.fastq_arguments(fastq_values) == expected

0 comments on commit f76c8ca

Please sign in to comment.