class documentation
class Dataset(loggers.ModelLoggerMixin, models.Model):
Class |
|
Undocumented |
Static Method | get |
Return the institution that provided the dataset. |
Method | __str__ |
Undocumented |
Method | check |
Check whether the dataset is still consistent with the GitHub repo. |
Method | compute |
Dynamically compute fields from the GitHub repository. |
Method | delete |
Delete the model instance from the database. |
Method | fetch |
Return the dataset as a pandas DataFrame. |
Method | fetch |
Return the GitHub file object. |
Method | fetch |
Return the README.md file of the dataset as a string. |
Method | fetch |
Return the GitHub repository object. |
Method | import |
Import the dataset from the CSV file into the database. |
Method | lock |
Lock the dataset, so that it cannot be edited anymore. |
Method | save |
Save the model instance to the database. |
Method | unlock |
Unlock the dataset, so that it can be edited again. |
Instance Variable | data |
Path to the CSV file containing the patient data inside the git repo. |
Instance Variable | data |
SHA of the CSV file in the GitHub repo. |
Instance Variable | date |
Date and time when the dataset was created. |
Instance Variable | git |
Name of the GitHub repository that contains the dataset. |
Instance Variable | git |
Owner of the GitHub repository that contains the dataset. |
Instance Variable | institution |
The institution that provided the dataset. |
Instance Variable | is |
Whether the dataset is locked or not. Locked datasets cannot be edited. |
Instance Variable | is |
Whether the data file has been updated since the last import. |
Instance Variable | is |
Whether the dataset is public or not. Public datasets can be viewed by everyone. |
Instance Variable | revision |
Git revision in which to search for the data. E.g., a commit hash, or tag. |
Property | data |
Return the URL of the data file in the GitHub repository. |
Property | git |
Return the ID of the GitHub repository. |
Property | git |
Return the URL of the GitHub repository. |
Property | name |
Return the name of the dataset. |
Property | patient |
Return the number of patients in the dataset. |
Instance Variable | _dataframe |
Undocumented |
Instance Variable | _file |
Undocumented |
Instance Variable | _readme |
Undocumented |
Instance Variable | _repo |
Undocumented |
Return the institution that provided the dataset.
Parameters | |
table:pd.DataFrame | Undocumented |
fallback:Institution | Undocumented |
Returns | |
Institution | Undocumented |
Dynamically compute fields from the GitHub repository.
Parameters | |
gitstr | Undocumented |
revision:str | Undocumented |
datastr | Undocumented |
userInstitution | Undocumented |
**_kwargs | Undocumented |
overrides
lyprox.loggers.ModelLoggerMixin.delete
Delete the model instance from the database.
Rise an error if the dataset is locked and override is not set to True.
Parameters | |
*args | Undocumented |
override:bool | Undocumented |
**kwargs | Undocumented |
Import the dataset from the CSV file into the database.
This method lock the dataset right afterwards to prevent editing the uploaded patients.
overrides
lyprox.loggers.ModelLoggerMixin.save
Save the model instance to the database.
Rise an error if the dataset is locked and override is not set to True.
Parameters | |
*args | Undocumented |
override:bool | Undocumented |
**kwargs | Undocumented |