Skip to content

Commit f35bb1c

Browse files
authored
Merge branch 'malariagen:master' into remove_pf9_functionality
2 parents 54c7c07 + b1baf2b commit f35bb1c

7 files changed

Lines changed: 215 additions & 77 deletions

File tree

docs/source/Adar1.rst

Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
Adar1
2+
=====
3+
4+
This page provides a curated list of functions and properties available in the ``malariagen_data`` API
5+
for data on mosquitoes from the *Anopheles darlingi* complex.
6+
7+
To set up the API, use the following code::
8+
9+
import malariagen_data
10+
adar1 = malariagen_data.Adar1()
11+
12+
All the functions below can then be accessed as methods on the ``adar1`` object. E.g., to call the
13+
``sample_metadata()`` function, do::
14+
15+
df_samples = adar1.sample_metadata()
16+
17+
For more information about the data and terms of use, please see the
18+
`MalariaGEN website <https://www.malariagen.net/data>`_ or contact support@malariagen.net.
19+
20+
.. currentmodule:: malariagen_data.adar1.Adar1
21+
22+
Basic data access
23+
-----------------
24+
.. autosummary::
25+
:toctree: generated/
26+
27+
releases
28+
sample_sets
29+
lookup_release
30+
lookup_study
31+
32+
Reference genome data access
33+
----------------------------
34+
.. autosummary::
35+
:toctree: generated/
36+
37+
contigs
38+
genome_sequence
39+
genome_features
40+
plot_transcript
41+
plot_genes
42+
43+
Sample metadata access
44+
----------------------
45+
.. autosummary::
46+
:toctree: generated/
47+
48+
sample_metadata
49+
add_extra_metadata
50+
clear_extra_metadata
51+
lookup_sample
52+
count_samples
53+
plot_samples_bar
54+
plot_samples_interactive_map
55+
plot_sample_location_mapbox
56+
plot_sample_location_geo
57+
wgs_data_catalog
58+
cohorts
59+
60+
SNP data access
61+
---------------
62+
.. autosummary::
63+
:toctree: generated/
64+
65+
site_mask_ids
66+
snp_calls
67+
snp_allele_counts
68+
plot_snps
69+
is_accessible
70+
biallelic_snp_calls
71+
biallelic_diplotypes
72+
biallelic_snps_to_plink
73+
74+
SNP frequency analysis
75+
----------------------
76+
.. autosummary::
77+
:toctree: generated/
78+
79+
snp_allele_frequencies
80+
snp_allele_frequencies_advanced
81+
aa_allele_frequencies
82+
aa_allele_frequencies_advanced
83+
plot_frequencies_heatmap
84+
plot_frequencies_time_series
85+
plot_frequencies_interactive_map
86+
87+
Principal components analysis (PCA)
88+
-----------------------------------
89+
.. autosummary::
90+
:toctree: generated/
91+
92+
pca
93+
plot_pca_variance
94+
plot_pca_coords
95+
plot_pca_coords_3d
96+
97+
Genetic distance and neighbour-joining trees (NJT)
98+
--------------------------------------------------
99+
.. autosummary::
100+
:toctree: generated/
101+
102+
plot_njt
103+
njt
104+
biallelic_diplotype_pairwise_distances
105+
106+
Heterozygosity analysis
107+
-----------------------
108+
.. autosummary::
109+
:toctree: generated/
110+
111+
plot_heterozygosity
112+
roh_hmm
113+
plot_roh
114+
115+
Diversity analysis
116+
------------------
117+
.. autosummary::
118+
:toctree: generated/
119+
120+
cohort_diversity_stats
121+
diversity_stats
122+
plot_diversity_stats
123+
124+
Diplotype clustering
125+
--------------------
126+
.. autosummary::
127+
:toctree: generated/
128+
129+
plot_diplotype_clustering
130+
plot_diplotype_clustering_advanced
131+
132+
Fst analysis
133+
------------
134+
.. autosummary::
135+
:toctree: generated/
136+
137+
average_fst
138+
pairwise_average_fst
139+
plot_pairwise_average_fst
140+
fst_gwss
141+
plot_fst_gwss
6.25 KB
Loading

docs/source/index.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ API documentation
6666
:align: center
6767
:width: 100%
6868

69+
.. grid-item-card:: ``Adar1``
70+
:link: Adar1
71+
:link-type: doc
72+
73+
*Anopheles darlingi*
74+
.. image:: ./_static/images/anopheles_darlingi.jpg
75+
6976
Documentation for the `Pf7 <https://malariagen.github.io/parasite-data/pf7/api.html>`_ (*Plasmodium falciparum*)
7077
and `Pv4 <https://malariagen.github.io/parasite-data/pv4/api.html>`_ (*Plasmodium vivax*) APIs is also available,
7178
currently hosted on a separate site.

malariagen_data/adar1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def __repr__(self):
152152
f"Please note that data are subject to terms of use,\n"
153153
f"for more information see https://www.malariagen.net/data\n"
154154
f"or contact support@malariagen.net. For API documentation see \n"
155-
f"https://malariagen.github.io/malariagen-data-python/v{malariagen_data.__version__}/Adir1.html"
155+
f"https://malariagen.github.io/malariagen-data-python/v{malariagen_data.__version__}/Adar1.html"
156156
)
157157
return text
158158

@@ -167,7 +167,7 @@ def _repr_html_(self):
167167
Please note that data are subject to terms of use,
168168
for more information see <a href="https://www.malariagen.net/data">
169169
the MalariaGEN website</a> or contact support@malariagen.net.
170-
See also the <a href="https://malariagen.github.io/malariagen-data-python/v{malariagen_data.__version__}/Adir1.html">Adir1 API docs</a>.
170+
See also the <a href="https://malariagen.github.io/malariagen-data-python/v{malariagen_data.__version__}/Adar1.html">Adar1 API docs</a>.
171171
</td></tr>
172172
</thead>
173173
<tbody>

malariagen_data/pf8.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ class Pf8(PlasmodiumDataResource):
99
Parameters
1010
----------
1111
url : str, optional
12-
Base path to data. Default uses Sanger S3 Storage "s3://pf8-release/".
13-
Alternative access through Google Cloud Storage "gs://pf8-release/" which requires authentication (https://malariagen.github.io/parasite-data/cloud_data_access/parasite-cloud-data-access.html#),
12+
Base path to data. Default uses Google Cloud Storage "gs://pf8-release/" which requires authentication (https://malariagen.github.io/parasite-data/cloud_data_access/parasite-cloud-data-access.html#),
1413
or specify a local path on your file system if data have been downloaded.
1514
data_config : str, optional
1615
Path to config for structure of Pf8 data resource. Defaults to config included
@@ -20,7 +19,7 @@ class Pf8(PlasmodiumDataResource):
2019
2120
Examples
2221
--------
23-
Access data from Sanger S3 Storage (default):
22+
Access data from Google Cloud Storage (default):
2423
2524
>>> import malariagen_data
2625
>>> pf8 = malariagen_data.Pf8()

0 commit comments

Comments
 (0)