-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expansion of the documentation #592
Changes from 38 commits
00247ad
9a561ee
9736285
e5a0af1
bd67bfa
3866dd5
f6a8ebd
2d51e8f
aa3fce4
95eceff
9d58e40
1bb4df9
8a656f3
e606b65
23fe73c
f5ec504
53376b7
5e090ea
1ef4e59
57b94f3
0982367
a0f8830
6768bc4
db07c05
6acb3d2
2f915e0
d185551
21b09a0
3544169
ffdefc0
f96ed6b
437fe54
c28b956
7f3880f
88a2d16
7416a35
4ed941b
e328e66
b02f13a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,7 +65,11 @@ def _prep_aims_param(self, *, aims: aim_params.aims) -> str: | |
@check_types | ||
@doc( | ||
summary="Access ancestry informative marker variants.", | ||
returns="A dataset containing AIM positions and discriminating alleles.", | ||
returns=""" | ||
A dataset with 2 dimensions: **variants** the number of AIMs sites, and **alleles** which will always be 2, each representing one of the species. It contains 2 coordinates: | ||
**variant_contig** has **variants** values and contains the chromosome arm of each AIM, and **variant_position** has **variants** values and contains the position of each AIM. It contains 1 data variable: | ||
**variant_allele** has (**variants**, **allele**) values and contains the discriminating alleles for each AIM. | ||
""", | ||
) | ||
def aim_variants(self, aims: aim_params.aims) -> xr.Dataset: | ||
self._require_aim_analysis() | ||
|
@@ -113,7 +117,16 @@ def _aim_calls_dataset(self, *, aims, sample_set): | |
calls. | ||
""", | ||
returns=""" | ||
A dataset containing AIM SNP sites, alleles and genotype calls. | ||
A dataset with 4 dimensions: | ||
**variants** the number of AIMs sites, | ||
**samples** the number of samples, | ||
**ploidy** the ploidy (2), | ||
and **alleles** which will always be 2, each representing one of the species. It contains 3 coordinates: | ||
**sample_id** has **samples** values and contains the identifier of each sample, | ||
**variant_contig** has **variants** values and contains the chromosome arm of each AIM, | ||
and **variant_position** has **variants** values and contains the position of each AIM. It contains 2 data variables: | ||
**call_genotype** has (**variants**, **samples**, **ploidy**) values and contains both calls for each sample and each AIM, | ||
**variant_allele** has (**variants**, **allele**) values and contains the discriminating alleles for each AIM. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Swap ** for `. |
||
""", | ||
) | ||
def aim_calls( | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -397,7 +397,16 @@ def _read_sample_sets(self, *, single_release: str): | |
@check_types | ||
@doc( | ||
summary="Access a dataframe of sample sets", | ||
returns="A dataframe of sample sets, one row per sample set.", | ||
returns="""A dataframe of sample sets, one row per sample set. It contains five columns: | ||
**sample_set** is the name of the sample set, | ||
**sample_count** is the number of samples the sample set contains, | ||
**study_id** is the identifier for the study that generated the sample set, | ||
**study_url** is the URL of the study on the MalariaGEN website, | ||
**term_of_use_expiry** is the date when the terms of use expire, | ||
**terms_of_use_url** is the URL of the terms of use, | ||
**release** is the identifier of the release containing the sample set, | ||
**unrestricted_use** whether the sample set can be without restriction (e.g., if the terms of use have expired). | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Swap ** for `. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, it took me 3 files to figure out how to do a find and replace on my Mac ;). I should have rechecked the files where I used another method. |
||
""", | ||
) | ||
def sample_sets( | ||
self, | ||
|
@@ -441,6 +450,7 @@ def sample_sets( | |
@check_types | ||
@doc( | ||
summary="Find which release a sample set was included in.", | ||
returns="The release the sample set is part of.", | ||
) | ||
def lookup_release(self, sample_set: base_params.sample_set) -> str: | ||
if self._cache_sample_set_to_release is None: | ||
|
@@ -455,6 +465,7 @@ def lookup_release(self, sample_set: base_params.sample_set) -> str: | |
@check_types | ||
@doc( | ||
summary="Find which study a sample set belongs to.", | ||
returns="The study the sample set belongs to.", | ||
) | ||
def lookup_study(self, sample_set: base_params.sample_set) -> str: | ||
if self._cache_sample_set_to_study is None: | ||
|
@@ -468,6 +479,7 @@ def lookup_study(self, sample_set: base_params.sample_set) -> str: | |
@check_types | ||
@doc( | ||
summary="Find the study info for a sample set.", | ||
returns="The info for the study the sample set belongs to.", | ||
) | ||
def lookup_study_info(self, sample_set: base_params.sample_set) -> dict: | ||
if self._cache_sample_set_to_study_info is None: | ||
|
@@ -483,6 +495,7 @@ def lookup_study_info(self, sample_set: base_params.sample_set) -> dict: | |
@check_types | ||
@doc( | ||
summary="Find the terms-of-use info for a sample set.", | ||
returns="The terms-of-use info for the sample set.", | ||
) | ||
def lookup_terms_of_use_info(self, sample_set: base_params.sample_set) -> dict: | ||
if self._cache_sample_set_to_terms_of_use_info is None: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Swap ** for `.