Skip to content

Commit

Permalink
consistency, fetch_bed, build_tree
Browse files Browse the repository at this point in the history
new consistency feature to write the variant count in the output tsv
fixed fetch_bed error so that works
altered build_region_tree logic so that bed chromosomes which aren't present
in the baseline vcf's header are excluded
more cleaning and documentation
  • Loading branch information
ACEnglish committed Jan 8, 2025
1 parent 6f0106e commit 2932104
Show file tree
Hide file tree
Showing 9 changed files with 3,627 additions and 3,558 deletions.
2 changes: 1 addition & 1 deletion docs/api/truvari.examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ If your regions of interest are stored in an in-memory object instead of a BED f
count += 1
print(f"Total of {count} variants")
To iterate over variants that are not within the regions, use `vcf.fetch_regions(tree, within=False)`. Both of these
To iterate over variants that are not within the regions, use `vcf.fetch_regions(tree, inside=False)`. Both of these
fetch methods use heuristics to choose the more efficient fetching strategy of either seeking through the VCF file or
streaming the entire file.

Expand Down
10 changes: 8 additions & 2 deletions docs/api/truvari.package.rst
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,24 @@ Extra Methods

.. autofunction:: best_seqsim

.. autofunction:: build_region_tree

.. autofunction:: read_bed_tree

.. autofunction:: check_vcf_index

.. autofunction:: chunker

.. autofunction:: compress_index_vcf

.. autofunction:: cmd_exe

.. autofunction:: compress_index_vcf

.. autofunction:: coords_within

.. autofunction:: count_entries

.. autofunction:: extend_region_tree

.. autofunction:: file_zipper

.. autofunction:: help_unknown_cmd
Expand All @@ -82,6 +86,8 @@ Extra Methods

.. autofunction:: make_temp_filename

.. autofunction:: merge_region_tree_overlaps

.. autofunction:: msa2vcf

.. autofunction:: opt_gz_open
Expand Down
Loading

0 comments on commit 2932104

Please sign in to comment.