Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaulting convert_ucsc_contig_names to True for consistency with past behavior #253

Merged
merged 1 commit into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions varcode/vcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def load_vcf(
sort_key=variant_ascending_position_sort_key,
distinct=True,
normalize_contig_names=True,
convert_ucsc_contig_names=None):
convert_ucsc_contig_names=True):
"""
Load reference name and Variant objects from the given VCF filename.

Expand Down Expand Up @@ -98,10 +98,10 @@ def load_vcf(
to uppercase (e.g. "chrx" -> "chrX"). If you don't want
this behavior then pass normalize_contig_names=False.

convert_ucsc_contig_names : bool
convert_ucsc_contig_names : bool, default True
Convert chromosome names from hg19 (e.g. "chr1") to equivalent names
for GRCh37 (e.g. "1"). By default this is set to True if the genome
of the VCF is a UCSC reference and otherwise set to False.
for GRCh37 (e.g. "1"). By default this is set to True. If None, it
also evaluates to True if the genome of the VCF is a UCSC reference.
"""

require_string(path, "Path or URL to VCF")
Expand Down
2 changes: 1 addition & 1 deletion varcode/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.2.0"
__version__ = "1.2.1"
Loading