Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ratschlab/metagraph
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 56b0b10b4a5ecb72a0b79ff611671864a48e3f0c
Choose a base ref
..
head repository: ratschlab/metagraph
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 70adfd69a509459d8cba5377a752f4f274c65aec
Choose a head ref
Showing with 3 additions and 3 deletions.
  1. +2 −2 metagraph/integration_tests/base.py
  2. +1 −1 metagraph/integration_tests/test_api.py
4 changes: 2 additions & 2 deletions metagraph/integration_tests/base.py
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ def _get_stats(graph_filename):
return res

@staticmethod
def _build_graph(input, output, k, repr, canonical=False, primary=False, extra_params=""):
def _build_graph(input, output, k, repr, canonical=False, primary=False, extra_params=''):
construct_command = '{exe} build -p {num_threads} {canonical} {extra_params} \
--graph {repr} -k {k} -o {outfile} {input}'.format(
exe=METAGRAPH,
@@ -84,7 +84,7 @@ def _build_graph(input, output, k, repr, canonical=False, primary=False, extra_p
assert res.returncode == 0

@staticmethod
def _clean(graph, output, extra_params=""):
def _clean(graph, output, extra_params=''):
clean_command = '{exe} clean -p {num_threads} \
--to-fasta -o {outfile} {extra_params} {input}'.format(
exe=METAGRAPH,
2 changes: 1 addition & 1 deletion metagraph/integration_tests/test_api.py
Original file line number Diff line number Diff line change
@@ -290,7 +290,7 @@ def test_api_simple_query(self):
res_obj = res_list[0]['results']
self.assertEqual(len(res_obj), self.sample_query_expected_cols)

first_res = res_obj[0]
first_res = sorted(res_obj, key=lambda k: k['kmer_count'], reverse=True)[0]

self.assertEqual(first_res['kmer_count'], 39)