Skip to content
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

Docstrings #289

Merged
merged 25 commits into from
Nov 25, 2023
Merged

Docstrings #289

merged 25 commits into from
Nov 25, 2023

Conversation

lill28
Copy link
Collaborator

@lill28 lill28 commented Oct 24, 2023

Add and update docstrings and create documentation from the docstrings

PR checklist

  • main-branch has been merged into local branch to resolve conflicts
  • tests and linter have passed AFTER local merge
  • at least one other dev reviewed and approved
  • documentation
  • tests

@github-actions
Copy link

github-actions bot commented Oct 24, 2023

Coverage report

The coverage rate went from 71.58% to 70.25% ⬇️
The branch rate is 63%.

100% of new lines are covered.

Diff Coverage details (click to unfold)

protzilla/constants/location_mapping.py

100% of new lines are covered (100% of the complete file).

protzilla/data_analysis/classification.py

100% of new lines are covered (48.05% of the complete file).

protzilla/data_analysis/clustering.py

100% of new lines are covered (82.66% of the complete file).

protzilla/data_analysis/differential_expression_anova.py

100% of new lines are covered (94.73% of the complete file).

protzilla/data_analysis/differential_expression_linear_model.py

100% of new lines are covered (84.74% of the complete file).

protzilla/data_analysis/differential_expression_t_test.py

100% of new lines are covered (100% of the complete file).

protzilla/data_analysis/dimension_reduction.py

100% of new lines are covered (86.04% of the complete file).

protzilla/data_analysis/model_evaluation.py

100% of new lines are covered (100% of the complete file).

protzilla/data_analysis/model_evaluation_plots.py

100% of new lines are covered (100% of the complete file).

protzilla/data_analysis/plots.py

100% of new lines are covered (93.8% of the complete file).

protzilla/data_analysis/protein_graphs.py

100% of new lines are covered (88.92% of the complete file).

protzilla/data_integration/database_download.py

100% of new lines are covered (0% of the complete file).

protzilla/data_integration/database_integration.py

100% of new lines are covered (85.55% of the complete file).

protzilla/data_integration/database_query.py

100% of new lines are covered (60% of the complete file).

protzilla/data_integration/di_plots.py

100% of new lines are covered (82.41% of the complete file).

protzilla/data_integration/enrichment_analysis.py

100% of new lines are covered (72.16% of the complete file).

protzilla/data_integration/enrichment_analysis_gsea.py

100% of new lines are covered (94.59% of the complete file).

protzilla/data_integration/enrichment_analysis_helper.py

100% of new lines are covered (93.04% of the complete file).

protzilla/data_preprocessing/filter_proteins.py

100% of new lines are covered (76.19% of the complete file).

protzilla/data_preprocessing/filter_samples.py

100% of new lines are covered (100% of the complete file).

protzilla/data_preprocessing/imputation.py

100% of new lines are covered (96.92% of the complete file).

protzilla/data_preprocessing/normalisation.py

100% of new lines are covered (97.47% of the complete file).

protzilla/data_preprocessing/outlier_detection.py

100% of new lines are covered (88.6% of the complete file).

protzilla/data_preprocessing/peptide_filter.py

100% of new lines are covered (75% of the complete file).

protzilla/data_preprocessing/plots.py

100% of new lines are covered (90% of the complete file).

protzilla/data_preprocessing/transformation.py

100% of new lines are covered (82.14% of the complete file).

protzilla/history.py

100% of new lines are covered (90.72% of the complete file).

protzilla/run.py

100% of new lines are covered (85.35% of the complete file).

protzilla/utilities/clustergram.py

100% of new lines are covered (67.31% of the complete file).

protzilla/utilities/dunn_score.py

100% of new lines are covered (25% of the complete file).

protzilla/utilities/transform_dfs.py

100% of new lines are covered (100% of the complete file).

protzilla/utilities/utilities.py

100% of new lines are covered (93.33% of the complete file).

ui/main/upload_handler.py

100% of new lines are covered (0% of the complete file).

ui/runs/fields.py

100% of new lines are covered (9.89% of the complete file).

ui/runs/views.py

100% of new lines are covered (13.42% of the complete file).

@hendraet
Copy link
Collaborator

Looking forward to this PR :)

Copy link
Collaborator

@BelanaZ BelanaZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed in the order provided by GitHub until (and including) the data_analysis package -> So overall: the docs, source, constants and data_analysis packages. Thus, some changes still need to be reviewed.

docs/source/conf.py Outdated Show resolved Hide resolved
protzilla/data_analysis/classification.py Outdated Show resolved Hide resolved
protzilla/data_analysis/clustering.py Outdated Show resolved Hide resolved
protzilla/data_analysis/differential_expression_t_test.py Outdated Show resolved Hide resolved
protzilla/data_analysis/differential_expression_t_test.py Outdated Show resolved Hide resolved
protzilla/data_analysis/dimension_reduction.py Outdated Show resolved Hide resolved
protzilla/data_analysis/dimension_reduction.py Outdated Show resolved Hide resolved
protzilla/data_analysis/dimension_reduction.py Outdated Show resolved Hide resolved
protzilla/data_analysis/dimension_reduction.py Outdated Show resolved Hide resolved
protzilla/data_analysis/plots.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@fynnkroeger fynnkroeger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the rest except for

protzilla/data_integration/database_integration.py
protzilla/data_integration/database_query.py
ui/main/upload_handler.py

which I wrote, so someone else should please do it.

Mostly small changes and formatting to do, great work :)

protzilla/data_preprocessing/filter_proteins.py Outdated Show resolved Hide resolved
protzilla/data_preprocessing/imputation.py Outdated Show resolved Hide resolved
protzilla/data_preprocessing/imputation.py Outdated Show resolved Hide resolved
protzilla/data_preprocessing/normalisation.py Outdated Show resolved Hide resolved
protzilla/data_preprocessing/normalisation.py Outdated Show resolved Hide resolved
ui/runs/views.py Outdated Show resolved Hide resolved
ui/runs/views.py Show resolved Hide resolved
ui/runs/views.py Show resolved Hide resolved
ui/runs/views.py Show resolved Hide resolved
ui/runs/views.py Show resolved Hide resolved
Copy link
Collaborator Author

@lill28 lill28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the remaining 3 files (database_integration.py, database_query.py and upload_handler.py) and just suggested some minor changes.

protzilla/data_integration/database_integration.py Outdated Show resolved Hide resolved
protzilla/data_integration/database_query.py Outdated Show resolved Hide resolved
protzilla/data_integration/database_query.py Outdated Show resolved Hide resolved
@antonneubauer antonneubauer merged commit 67c3a6f into main Nov 25, 2023
1 check passed
@antonneubauer antonneubauer deleted the docstrings branch November 25, 2023 08:56
henninggaertner pushed a commit that referenced this pull request Nov 26, 2023
* correct docstring syntax of data_analysis package

* Fix docstring syntax in data_integration package

* Fix docstring syntax in utilities package

* Fix more docstring syntax

* format code

* add docstrings for database_integration.py

* add returns for database_download.py

* add docstrings for database_query.py

* add docstrings for upload_handler.py

* docstrings runs/views part1

* docstrings 2 runs/views.py

* docstrings for runs/fields.py

* docstrings for clustergram copy

* docstrings for data_analysis/dimension_reduction.py

* docstrings for data_analysis/classification.py

* add __init__.py

* Fix run docstring

* Add docs build instructions and packages

* update docs build instructions

* Implement review suggestions

* remove \ in data_preprocessing docstrings

* remove more \ in docstrings

* adopt PR suggestions

---------

Co-authored-by: Fynn <[email protected]>
Co-authored-by: BelanaZ <[email protected]>
Co-authored-by: Sara Grau <[email protected]>
Co-authored-by: antonneubauer <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants