Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcb3ccaa

Browse files
committed
author info update and README clean up
1 parentec9f230 commitcb3ccaa

File tree

8 files changed

+119
-61
lines changed

8 files changed

+119
-61
lines changed

‎DESCRIPTION‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
Package: gwasrapidd
22
Type: Package
33
Title: 'REST' 'API' Client for the 'NHGRI'-'EBI' 'GWAS' Catalog
4-
Version: 0.99.14
4+
Version: 0.99.15
55
Authors@R: c(
6-
person(given = "Ramiro", family = "Magno", email = "ramiro.magno@gmail.com",
6+
person(given = "Ramiro", family = "Magno", email = "rmagno@pattern.institute",
77
role = c("aut", "cre"), comment = c(ORCID = "0000-0001-5226-3441")),
88
person(given = "Ana-Teresa", family = "Maia",
99
email = "maia.anateresa@gmail.com", role = "aut",
1010
comment = c(ORCID = "0000-0002-0454-9207")),
11-
person("CINTESIS",
12-
role = c("cph", "fnd"))
11+
person("CINTESIS", role = c("cph", "fnd")),
12+
person("Pattern Institute",role = c("cph", "fnd"))
1313
)
1414
Description: 'GWAS' R 'API' Data Download.
1515
This package provides easy access to the 'NHGRI'-'EBI' 'GWAS' Catalog data by

‎NEWS.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#gwasrapidd 0.99.15
2+
3+
- Fixed issue[#41](https://github.com/ramiromagno/gwasrapidd/issues/41)
4+
- Update http mocks
5+
16
##gwasrapidd 0.99.14
27

38
- Merged pull request[#37](https://github.com/ramiromagno/gwasrapidd/pull/37).

‎README.Rmd‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ Install `{gwasrapidd}` from CRAN:
3737
install.packages("gwasrapidd")
3838
```
3939

40-
You can instead install the development version of`{gwasrapidd}` by setting
41-
[Ramiro Magno's universe](https://ramiromagno.r-universe.dev/) repository:
42-
43-
```r
44-
options(repos= c(ramiromagno='https://ramiromagno.r-universe.dev',
45-
CRAN='https://cloud.r-project.org'))
46-
47-
install.packages('gwasrapidd')
48-
```
49-
5040
##Cheatsheet
5141

5242
<ahref="https://github.com/rstudio/cheatsheets/blob/master/gwasrapidd.pdf"><imgsrc="https://raw.githubusercontent.com/rstudio/cheatsheets/master/pngs/gwasrapidd.png"width="420"height="300"/></a>

‎README.md‎

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,6 @@ Install `{gwasrapidd}` from CRAN:
2929
install.packages("gwasrapidd")
3030
```
3131

32-
You can instead install the development version of`{gwasrapidd}` by
33-
setting[Ramiro Magno’s universe](https://ramiromagno.r-universe.dev/)
34-
repository:
35-
36-
```r
37-
options(repos= c(ramiromagno='https://ramiromagno.r-universe.dev',
38-
CRAN='https://cloud.r-project.org'))
39-
40-
install.packages('gwasrapidd')
41-
```
42-
4332
##Cheatsheet
4433

4534
<ahref="https://github.com/rstudio/cheatsheets/blob/master/gwasrapidd.pdf"><imgsrc="https://raw.githubusercontent.com/rstudio/cheatsheets/master/pngs/gwasrapidd.png"width="420"height="300"/></a>
@@ -53,13 +42,12 @@ library(gwasrapidd)
5342
studies<- get_studies(efo_trait='triple-negative breast cancer')
5443
studies@studies[1:4]
5544
## # A tibble: 3 × 4
56-
## study_id reported_trait initi…¹ repli…²
57-
## <chr> <chr> <chr> <chr>
58-
## 1 GCST002305 Breast cancer (estrogen-receptor negative, proge… 1,529 … 2,148 …
59-
## 2 GCST010100 Breast cancer (estrogen-receptor negative, proge… 8,602 … <NA>
60-
## 3 GCST90029052 15-year breast cancer-specific survival (ER nega… 5,631 … <NA>
61-
## # … with abbreviated variable names ¹​initial_sample_size,
62-
## # ²​replication_sample_size
45+
## study_id reported_trait initial_sample_size replication_sample_s…¹
46+
## <chr> <chr> <chr> <chr>
47+
## 1 GCST002305 Breast cancer (estrog… 1,529 European anc… 2,148 European ancest…
48+
## 2 GCST010100 Breast cancer (estrog… 8,602 European anc… <NA>
49+
## 3 GCST90029052 15-year breast cancer… 5,631 European anc… <NA>
50+
## # ℹ abbreviated name: ¹​replication_sample_size
6351
```
6452

6553
Find associated variants with study GCST002305:
@@ -114,13 +102,13 @@ contributing to this project, you agree to abide by its terms.
114102

115103
##Similar projects
116104

117-
-Bioconductor R package*gwascat* by Vincent J Carey:
118-
<https://www.bioconductor.org/packages/release/bioc/html/gwascat.html>
119-
-Web application*PhenoScanner V2* by Mihir A. Kamat, James R.
120-
Staley,and others:<http://www.phenoscanner.medschl.cam.ac.uk/>
121-
-Web application*GWEHS: Genome-Wide Effect sizes and Heritability
122-
Screener* by Eugenio López-Cortegano and Armando Caballero:
123-
<http://gwehs.uvigo.es/>
105+
- Bioconductor R package*gwascat* by Vincent J Carey:
106+
<https://www.bioconductor.org/packages/release/bioc/html/gwascat.html>
107+
- Web application*PhenoScanner V2* by Mihir A. Kamat, James R. Staley,
108+
and others:<http://www.phenoscanner.medschl.cam.ac.uk/>
109+
- Web application*GWEHS: Genome-Wide Effect sizes and Heritability
110+
Screener* by Eugenio López-Cortegano and Armando Caballero:
111+
<http://gwehs.uvigo.es/>
124112

125113
##Acknowledgements
126114

‎_pkgdown.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,8 @@ authors:
8383
CINTESIS:
8484
href:https://cintesis.eu/
8585
html:<img src='https://rmagno.eu/gwasrapidd/reference/figures/cintesis.svg' height=24>
86+
Pattern Institute:
87+
href:https://www.pattern.institute
88+
html:<img src='https://rmagno.eu/gwasrapidd/reference/figures/pi.svg' height=24>
89+
8690

‎man/figures/pi.svg‎

Lines changed: 52 additions & 0 deletions
Loading

‎man/gwasrapidd-package.Rd‎

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎vignettes/gwasrapidd.Rmd‎

Lines changed: 39 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,69 @@
11
---
22
title:"Getting started with gwasrapidd"
3-
output:rmarkdown::html_vignette
3+
output:
4+
bookdown::html_document2:
5+
base_format:rmarkdown::html_vignette
6+
fig_caption:yes
7+
number_sections:false
8+
# as_is: for figure captions in pkgdown output
9+
pkgdown:
10+
as_is:true
411
vignette:>
512
%\VignetteIndexEntry{Getting started with gwasrapidd}
613
%\VignetteEngine{knitr::rmarkdown}
714
%\VignetteEncoding{UTF-8}
815
bibliography:gwasrapidd.bib
916
---
1017

11-
12-
1318
##The GWAS Catalog
1419

1520
The GWAS Catalog is a service provided by the EMBL-EBI and NHGRI that offers a
1621
manually curated and freely available database of published genome-wide
1722
association studies (GWAS). The Catalog website and infrastructure is hosted by
1823
the[EMBL-EBI](https://www.ebi.ac.uk).
1924

20-
There are three ways to access the Catalog database:
21-
22-
- Via the Web interface at
23-
[https://www.ebi.ac.uk/gwas](https://www.ebi.ac.uk/gwas)
24-
- By downloading a
25-
database dump in TSV or RDF/OWL formats:
26-
[https://www.ebi.ac.uk/gwas/docs/file-downloads](https://www.ebi.ac.uk/gwas/docs/file-downloads)
27-
- Or through the GWAS Catalog REST API:
28-
[https://www.ebi.ac.uk/gwas/rest/docs/api](https://www.ebi.ac.uk/gwas/rest/docs/api)
29-
30-
gwasrapidd facilitates the access to the Catalog via the REST API,
25+
`{gwasrapidd}` facilitates the access to the Catalog via the REST API,
3126
allowing you to programmatically retrieve data directly into R.
3227

3328
##GWAS Catalog Entities
3429

35-
The Catalog REST API is organized around four core entities: studies, associations, variants, and traits.**gwasrapidd** provides four corresponding functions to get each of the entities:`get_studies()`,`get_associations()`,`get_variants()`, and`get_traits()`.
30+
The Catalog REST API is organized around four core entities:
31+
32+
- studies
33+
- associations
34+
- variants
35+
- traits
3636

37-
Each function maps to an appropriately named S4 classed object:[studies](https://rmagno.eu/gwasrapidd/reference/studies-class.html),[associations](https://rmagno.eu/gwasrapidd/reference/associations-class.html),[variants](https://rmagno.eu/gwasrapidd/reference/variants-class.html), and[traits](https://rmagno.eu/gwasrapidd/reference/traits-class.html) (see Figure 1).
37+
`{gwasrapidd}` provides four corresponding functions to get each of the
38+
entities:`get_studies()`,`get_associations()`,`get_variants()`, and
39+
`get_traits()`.
3840

41+
Each function maps to an appropriately named S4 classed object:[studies](https://rmagno.eu/gwasrapidd/reference/studies-class.html),[associations](https://rmagno.eu/gwasrapidd/reference/associations-class.html),[variants](https://rmagno.eu/gwasrapidd/reference/variants-class.html), and[traits](https://rmagno.eu/gwasrapidd/reference/traits-class.html) (see Figure\@ref(fig:fns)).
3942

40-
<imgsrc="../man/figures/get_fns.png"alt="Figure 1 | gwasrapidd retrieval functions."width="500"style="display:block;margin:autoautoauto0;" />
4143

42-
You can use a combination of several search criteria with each retrieval function as shown in Figure 2. For example, if you want to get studies using either one of these two criteria:*study accession identifier* and*variant identifier*, you could run the following code:
44+
```{r fns, out.width = "70%", echo=FALSE, fig.cap='`{gwasrapidd}` retrieval functions.'}
45+
knitr::include_graphics('../man/figures/get_fns.png')
46+
```
47+
48+
You can use a combination of several search criteria with each retrieval
49+
function as shown in Figure \@ref(fig:criteria). For example, if you want to get studies using
50+
either one of these two criteria:
51+
52+
- study accession identifier (`study_id`)
53+
- variant identifier (`variant_id`)
4354
55+
You could run the following code:
4456
4557
```r
4658
library(gwasrapidd)
59+
4760
my_studies <- get_studies(study_id = 'GCST000858', variant_id = 'rs12752552')
61+
my_studies@studies
4862
```
4963

50-
This command returns all studies that match either`'GCST000858'` or`'rs12752552'`. This is equivalent to running`get_studies` separately on each criteria, and combining the results afterwards:
64+
This command returns all studies that match either`'GCST000858'` or
65+
`'rs12752552'`. This is equivalent to running`get_studies` separately on each
66+
criteria, and combining the results afterwards:
5167

5268

5369
```r
@@ -58,9 +74,11 @@ my_studies <- gwasrapidd::union(s1, s2)
5874

5975
All four retrieval functions accept the`set_operation` parameter which defines the way the results obtained with each criterion are combined. The two options for this parameter are`'union'` (default) or`'intersection'`, resulting, respectively, in an OR or AND operation.
6076

61-
<imgsrc="../man/figures/get_criteria.png"alt="Figure 2 | gwasrapidd arguments for retrieval functions. Colors indicate the criteria that can be used for retrieving GWAS Catalog entities: studies (green), associations (red), variants (purple), and traits (orange)."width="500"style="display:block;margin:autoautoauto0;" />
77+
```{r criteria, out.width = "70%", echo=FALSE, fig.cap='`{gwasrapidd}` arguments for retrieval functions. Colors indicate the criteria that can be used for retrieving GWAS Catalog entities: studies (green), associations (red), variants (purple), and traits (orange).'}
78+
knitr::include_graphics('../man/figures/get_criteria.png')
79+
```
6280
63-
##Example 1 |Finding Risk Alleles Associated with Autoimmune Disease
81+
## Finding Risk Alleles Associated with Autoimmune Disease
6482
6583
As a first example, take the work by @Light2014. In this work the authors focused on variants that had been previously reported in genome-wide association studies (GWAS) for autoimmune disease.
6684

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp