Skip to content

Commit

Permalink
Updates tests and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
samhorsfield96 committed Oct 17, 2024
1 parent b37653a commit 2207013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,15 @@ You will find the following files in the output directory ``ggc_Bentley_et_al_CP
- ``aligned_gene_sequences``: directory of alignment files for each cluster in FASTA format
- ``GFF``: directory of GFF files for each sample in GFF3 format
- ``ggc_data``: intermediate datastructures written to disk, required for querying.
- ``ORF_dir``: intermediate datastructures written to disk, containing gene predictions.
- ``Path_dir``: intermediate datastructures written to disk, containing genome paths through the DBG.

Querying the graph
------------------

We can now query the graph. To do so, run::

ggcaller --query CPS_queries.fasta --graph Bentley_et_al_2006_CPS_sequences/input.gfa --colours Bentley_et_al_2006_CPS_sequences/input.color.bfg --data ggc_Bentley_et_al_CPS/ggc_data --out ggc_Bentley_et_al_CPS --threads 4
ggcaller --query CPS_queries.fasta --graph Bentley_et_al_2006_CPS_sequences/input.gfa --colours Bentley_et_al_2006_CPS_sequences/input.color.bfg --prev_run ggc_Bentley_et_al_CPS --out ggc_Bentley_et_al_CPS --threads 4

Results will be saved in ``ggc_Bentley_et_al_CPS/matched_queries.fasta``.

Expand Down
2 changes: 1 addition & 1 deletion test/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

sys.stderr.write("Running unitig query workflow\n")
subprocess.run(
python_cmd + " ../ggcaller-runner.py --graph pneumo_CL_group2.gfa --colours pneumo_CL_group2.color.bfg --data test_dir/ggc_data --query pneumo_CL_group2_queries.fasta --query-id 0.5 --out test_dir",
python_cmd + " ../ggcaller-runner.py --graph pneumo_CL_group2.gfa --colours pneumo_CL_group2.color.bfg --prev_run test_dir --query pneumo_CL_group2_queries.fasta --query-id 0.5 --out test_dir",
shell=True,
check=True)

Expand Down

0 comments on commit 2207013

Please sign in to comment.