diff options
| -rw-r--r-- | uploader/genotypes/models.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/uploader/genotypes/models.py b/uploader/genotypes/models.py index f3e6798..0a1a1e2 100644 --- a/uploader/genotypes/models.py +++ b/uploader/genotypes/models.py @@ -163,7 +163,19 @@ def genotype_dataset( ) -> Optional[dict]: """Retrieve genotype datasets from the database. - Apparently, you should only ever have one genotype dataset for a population. + There should only ever be one genotype dataset for each population. + + :param conn: The SQL database connection object. + :type conn: MySQLdb.Connection + :param species_id: The ID of the species. + :type species_id: int + :param population_id: The ID of the population. + :type population_id: int + :param dataset_id: The ID of the dataset. + :type dataset_id: int + + :rtype: dict + :raises uploader.dataerrors.NotFoundError: If dataset is not found. """ _query = ( "SELECT gf.* FROM Species AS s INNER JOIN InbredSet AS iset " |
