melt_finemapping_results
:- Check to see if already melted.
- Update rworkflows.yml
portal_query
:- Ensure
files_filt
is indata.table
format.
- Ensure
reassign_lead_snps
- Ensure
merged_dat
is indata.table
format.
- Ensure
- parquet functions:
- Remove unit tests for now, as they cause segfault errors during checks (but not when run manually).
- Use
rworkflows
GHA. - Moved all GitHub-related functions to new package:
echogithub
- Kept portal-related function in
echodata
: e.g.portal_query
- Kept portal-related function in
- use remote
MungeSumstats
until it passes bioc devel again
import_topSNPs
:- Automatically downloads data is
topSS
is a remote file. - New arg
startRow
for skipping rows.
- Automatically downloads data is
check_if_empty
-->is_empty
(more concise)get_data
:- Allow users to specify
tag
and ... args.
- Allow users to specify
get_header
can read parquet now.
standardize_maf
:- Fix flaw in logic preventing MAF being imputed from Freq.
standardize_proportion_cases
:- When
colmap$proportion_cases
is NULL, just returnquery
.
- When
- Fix GHA: @master --> @v2
- Fix
reassign_lead_snps
warnings. - Fix
biomart_geneInfo
warnings. - Fix
is_url
example. gene_locus_list
:- Drop loci missing from topSNPs.
- Fix
melt_finemapping_results
:- Alphanumerically sort
Methods
col consistently via new internal function:order_methods
- Alphanumerically sort
get_sample_size
:- Add more complete documentation on what happens when "N" column is present.
- Add extra check to make sure
MungeSumstats
>=1.3.9 is installed. compute_n
can now be a numeric vector of length equal tonrow(dat)
.
is_url
:- New export function.
- User-specified URL
protocols
to search for.
- Make
R.utils
an Import to avoid any issues with reading gz files. - Make sure
standardize
usesconstruct_colmap
to rename "N" column.
- New function:
get_Kunkle2019_coloc
. - Remove
zscore*
functions (not used anymore). standardize_gene_locus_cols
: Will replaced Locus names with new Locus_Gene naming scheme whengrouping_vars
contain both Locus and Gene.- Move over functions from
echoannot
:get_SNPgroup_counts
results_report
merge_finemapping_results
portal_query
: add arg to return results in table format.- Export
get_data
get_Nalls2019_loci
:- Add
limit_snps
arg = Savetempdir()
instead of cache by default, to allow subsetting different numbers of SNPs more easily. - Add
force_new
arg.
- Add
portal_query
: Forgot to addsep=
name in URL construction.get_sample_size
: Fix unit tests.
get_header
: Fix misnamed variable.
- Pass up
compute_n
as arg instandardize
. - Add
get_Nalls2019_coloc
function.
get_sample_size
: Return NULL when "N" col not present at end of func. Otherwise,max(NULL)
can give you-Inf
.
- Remove
MungeSumstats
from Remotes. - Passing all CRAN checks.
- Cache datasets.
- New
get_Nalls2019_loci
function, to easily write example loci to disk and return paths.
- Use
paste
instead offile.path
to construct portal query URLs.
get_header
: Can now handle VCFs (assuming #CHROM is the comment char).- Moved
get_CS_bins
andget_CS_counts
fromechoannot
-->echodata
. - Passing all CRAN checks!
- Fix GHA pkgdown building:
- The newest version of git introduced bugs when building pkgdown sites from within Docker containers (e.g. via my Linux GHA workflow). Adjusting GHA to fix this.
construct_colmap
: Collapses many column mapping args into one function.standardize_subset
-->standardize
:- Simplified workflow.
- Operates on only
query
instead of bothquery
andquery_mode
. - Created subfunctions for each step.
- Removed
liftover
step.
- New functions:
preview
is_local
is_url
- Increased test coverage to >88%.
- Removed
standardise_sumstats_column_headers_crossplatform
to use directly fromMungeSumstats
.
import_topSNPs
:- Now uses
standardise_sumstats_column_headers_crossplatform
exported function whenmunge=TRUE
. - Both standardisation strategies no longer interfere with one another when used at the same time.
- Now uses
- Added .zzz file with
.datatable.aware <- TRUE
- Added new function
merge_robust
to address issues withdata.table
.- See here for Issues: RajLabMSSM/echolocatoR#72 (comment)
import_topSNPs
: Added example and documented all params.- Rename
MUNGESUMSTATS.*
functions tomungesumstats_
. get_sample_size
: Add unit tests and newreturn_only
function for min/max.
- Added new functions (with unit tests):
snp_group_colorDict
read_parquet
write_parquet
reassign_lead_snps
: Handle situations where none of thegrouping_vars
are available.- Fix error in reporting number of Consensus_SNPs in
find_consensus_snps
(only affected console message, not the actual data).
- Added new functions (with unit tests):
snp_group_filters
find_consensus_SNPs
find_consensus_SNPs_no_PolyFun
filter_snps
limit_SNPs
gene_trimmer
fillNA_CS_PP
determine_chrom_type
is_empty
column_dictionary
get_header
melt_finemapping_results
update_cols
biomart_geneInfo
find_top_consensus
dt_to_granges
is_granges
is_ggplot
is_ggbio
granges_to_bed
reassign_lead_snps
- Added new function
coords_to_rsids
, copied over fromcatalogueR
.
- Added a
NEWS.md
file to track changes to the package. - Added new function
assign_lead_SNP
with unit tests. - Added unit tests for
createDT
andMUNGESUMSTATS.*
functions. - Removed unused functions.
- Added dynamic badges to README.
- Updated GHA workflow.
- Added GH token to Secrets.
- Large datasets uploaded/downloaded via
piggyback
.
- Functions extracted from
echolocatoR
to createechodata
.