Execute the
GoShifter
Python tool on a set of SNPs against one or more annotation BED files.
Iterates over each element of GRlist, checks for overlap with
the SNP data, prepares annotation BED files, and calls the
goshifter.py script.
GOSHIFTER_run(
dat,
locus_dir,
GRlist,
permutations = 1000,
goshifter_path = NULL,
chromatin_state = "TssA",
R2_filter = 0.8,
overlap_threshold = 1,
remove_tmps = TRUE,
verbose = TRUE
)A data.table or data.frame with at least
columns SNP, CHR, POS, and P.
Path to the locus-level results directory.
A named GRangesList of annotation regions to
test for enrichment (e.g. from ROADMAP_query).
Number of permutations (default 1000).
Path to the directory containing
goshifter.py. If NULL, uses the bundled copy
(see GOSHIFTER_find_folder).
Chromatin state label to record in the results
(default "TssA").
LD r-squared threshold (default 0.8).
Minimum number of overlapping SNPs required
to run GoShifter for a given annotation (default 1).
Remove intermediate BED files after processing
(default TRUE).
Print messages (default TRUE).
A data.table with GoShifter results for all tested
annotations.
Other GOSHIFTER:
GOSHIFTER(),
GOSHIFTER_bed_names(),
GOSHIFTER_check_overlap(),
GOSHIFTER_create_LD(),
GOSHIFTER_create_snpmap(),
GOSHIFTER_find_folder(),
GOSHIFTER_get_roadmap_annotations(),
GOSHIFTER_heatmap(),
GOSHIFTER_histograms_SNPgroups(),
GOSHIFTER_histograms_pvals(),
GOSHIFTER_list_chromatin_states(),
GOSHIFTER_process_results(),
GOSHIFTER_search_ROADMAP(),
GOSHIFTER_summarise_results()
if (FALSE) { # \dontrun{
dat <- echodata::BST1
locus_dir <- echodata::locus_dir
peaks <- echoannot::NOTT2019_get_epigenomic_peaks()
grl_peaks <- GenomicRanges::makeGRangesListFromDataFrame(
peaks, split.field = "Cell_type"
)
GS_results <- GOSHIFTER_run(
dat = subset(dat, P < 5e-8),
locus_dir = locus_dir,
GRlist = grl_peaks
)
} # }