statgen 0.4.3
- BED path overrides now belong to
load_genotype_cache(..., bed_path=...), not genotype fetch
calls.
statgen 0.4.2
load_sumstats() and load_genotype() accept
match_by = "id" to match SNVs other than A/T and C/G by
case-sensitive marker ID and alleles instead of position, including
strand complements. Sumstats ignore coordinates; genotypes match within
the corresponding chromosome. See ?allele_matching for ID
eligibility and duplicate handling.
statgen 0.4.1
- Long alleles, such as structural variants, are now matched on their
first 1,000,000 bases instead of their first 150.
load_reference(), load_genotype(), and
load_sumstats() warn once per file if an allele is longer,
and keep complete allele strings.
- BIM files are now read with
data.table::fread(), which
is much faster for long alleles. Malformed BIM files that would
otherwise be read only partially now fail with an error.
- Allele hashing is faster, particularly for panels with long
alleles.
statgen 0.4.0
- Summary-statistics and genotype loaders now match reversed SNVs,
including A/T and C/G under the same-strand assumption. Set
allow_indel_swaps = TRUE to also match reversed indels with
exactly one single-base allele.
- Matched allele swaps orient Z scores, BETA, EAF, and genotype calls
to the reference
a1 (ALT) allele. Genotype panels expose
is_allele_swapped; genotype caches now use schema
genotype_cache/0.2.
load_sumstats() now validates and drops rows with
missing p before matching. create_sumstats()
accepts missing p, setting corresponding log-p values and
supplied optional statistics to missing.
load_reference() now rejects duplicate variants and
variants listed in both allele orders.
- Fixed variant matching for large allele hashes that could lose exact
matches or silently accept duplicate keys.
statgen 0.3.4
load_annotation() gains a group_column
argument to create one binary annotation per distinct group value in a
source column.
statgen 0.3.3
- New
load_annotation() function loads a single BED-like
annotation file, supporting multiple value columns, optional headers,
annotation name overrides, and sidecar metadata files.
AnnotationPanel now exposes is_binary and
annotation_metadata accessors.
- Annotation matrices are now sparse numeric matrices (previously
binary-only).
statgen 0.3.2