View source: R/overlapInfoForStudy.R
overlapInfoForStudy | R Documentation |
For an input study ID and a list of other study IDs, this function returns two elements. One contains the overlap information in a table format, and the other element is the variant intersection set, representing an overlap between two variants of the two given studies.
overlapInfoForStudy(study_id, study_ids = list())
study_id |
Character: Study ID(s) generated by Open Targets Genetics (e.g GCST90002357). |
study_ids |
Character: generated ID for variants by Open Targets Genetics (e.g. 1_154119580_C_A) or rsId (rs2494663). |
A list containing a data frame of overlap information and the variant intersection set. The overlap information table (overlap_info) consists of the following columns:
studyId
: Character vector. Study ID.
traitReported
: Character vector. Reported trait.
traitCategory
: Character vector. Trait category.
variantIdA
: Character vector. Variant ID from study A.
variantIdB
: Character vector. Variant ID from study B.
overlapAB
: Integer vector. Number of overlaps between variants A and B.
distinctA
: Integer vector. Number of distinct variants in study A.
distinctB
: Integer vector. Number of distinct variants in study B.
study.studyId
: Character vector. Study ID from study list.
study.traitReported
: Character vector. Reported trait from study list.
study.traitCategory
: Character vector. Trait category from study list.
The variant intersection set (variant_intersection_set) is a character vector representing the intersection of variants.
## Not run:
result <- overlapInfoForStudy(study_id = "GCST90002357",
study_ids = list("GCST90025975", "GCST90025962"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.