Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
891 commits
Select commit Hold shift + click to select a range
82da85f
change method name
harmatt Sep 16, 2022
dbe9b0a
edit imports
harmatt Sep 16, 2022
765eecd
edit imports
harmatt Sep 16, 2022
b36f583
import custom pydantic validation
harmatt Sep 16, 2022
b3044ab
edit imports
harmatt Sep 16, 2022
e9df9af
edit error messages
harmatt Sep 16, 2022
967a4fe
rename file
harmatt Sep 16, 2022
8accfcd
add target constants and validation code
harmatt Sep 16, 2022
15b20a9
reformat file
harmatt Sep 16, 2022
850c15a
edit imports
harmatt Sep 16, 2022
7a07ff2
add setUp methods to test classes
harmatt Sep 16, 2022
8a62511
refactor test cases to work with setUp methods
harmatt Sep 16, 2022
8529a56
delete unneeded test cases
harmatt Sep 16, 2022
0ab0f26
add target test cases
harmatt Sep 16, 2022
fc08322
add urn test cases
harmatt Sep 16, 2022
7eb1d11
add urn test cases
harmatt Sep 16, 2022
cec5bee
edit imports
harmatt Sep 16, 2022
3d24cc3
delete files
harmatt Sep 16, 2022
3a6fda2
add note to file
harmatt Sep 16, 2022
aaa4564
add TODO to resolve issues with tmp urn
harmatt Sep 16, 2022
602841a
refactor validate dataframe function
harmatt Sep 16, 2022
158d676
replace and reimplement validate_variants with validate_values_by_column
harmatt Sep 16, 2022
e2adddf
delete unused function and declare validate score function
harmatt Sep 16, 2022
4ad50f0
outline unittests for dataframe
harmatt Sep 16, 2022
ef2d554
delete notes and reformat file
harmatt Sep 16, 2022
0a1ad9b
edit ScoreSet pydantic model and validation to reflect API changes
harmatt Sep 19, 2022
32345bf
edit Identifier pydantic model to reflect API changes
harmatt Sep 19, 2022
129a7d2
add ExternalIdentifier pydantic models to reflect API changes
harmatt Sep 19, 2022
7f3d26a
edit TargetGene pydantic model to reflect API changes
harmatt Sep 19, 2022
20f746a
edit imports
harmatt Sep 19, 2022
26fcf62
make note to update regex for tmp URN to UUID
harmatt Sep 19, 2022
6dc2d0f
comment out tmp URN constants
harmatt Sep 19, 2022
2551181
edit imports
harmatt Sep 19, 2022
8d553e0
update URN validation for tmp URN
harmatt Sep 19, 2022
9f5ec67
catch pydantic errors when validating
harmatt Sep 19, 2022
fe94065
edit imports
harmatt Sep 19, 2022
04cb681
edit format
harmatt Sep 19, 2022
4fa55d8
update pydantic urn validation
harmatt Sep 19, 2022
77d793a
edit setup method for TestScoreSet test model
harmatt Sep 19, 2022
1b6c603
delete optional attributes in test method
harmatt Sep 19, 2022
c02fc9d
update urn validation functions
harmatt Sep 19, 2022
8139f73
edit validate_dataframes function signature
harmatt Sep 20, 2022
4d967f2
update validate_values_by_column implementation
harmatt Sep 20, 2022
246ceb3
update calls to validate_values_by_column to reflect changes in funct…
harmatt Sep 20, 2022
17c3135
delete TODO
harmatt Sep 20, 2022
7a7d081
update call to validate_dataframes to reflect changes in function sig…
harmatt Sep 20, 2022
7aee2b0
add notes
harmatt Sep 20, 2022
cfe34c8
implement validate score
harmatt Sep 20, 2022
169c72f
update model unittests to reflect pydantic model changes
harmatt Sep 20, 2022
c99b98a
reformat file
harmatt Sep 23, 2022
def399e
edit imports
harmatt Sep 23, 2022
541d1a2
edit function calling
harmatt Sep 23, 2022
87396b2
comment out ExternalIdentifierId
harmatt Sep 23, 2022
66f0715
reimplement ExternalIdentifier
harmatt Sep 23, 2022
8537f58
add valid list of dbnames
harmatt Sep 23, 2022
fc00387
add function for validating external identifiers
harmatt Sep 23, 2022
9d0eeed
edit imports
harmatt Sep 23, 2022
6e24bf0
test ExternalIdentifier
harmatt Sep 23, 2022
919e1b3
edit attribute fields to pass validation
harmatt Sep 23, 2022
b3db7c3
edit attribute fields to pass validation
harmatt Sep 23, 2022
924c2e7
update imports
harmatt Sep 23, 2022
5d9fea0
add test cases for validating column names
harmatt Sep 23, 2022
d9f1c84
delete redundant test cases
harmatt Sep 23, 2022
5f5985e
add dataset validation test cases
harmatt Sep 23, 2022
886e0ad
delete redundant test cases
harmatt Sep 23, 2022
ad9c382
add dictionaries for converting values to utilities
harmatt Sep 27, 2022
6b17e39
edit attribute values to for unittest setUp
harmatt Sep 27, 2022
8f97ecb
edit imports
harmatt Sep 27, 2022
b3c1720
edit parameters to reflect changes in function signature
harmatt Sep 27, 2022
5cde344
edit validation to check for presence or absence of score column and …
harmatt Sep 27, 2022
f5ab4df
reimplement validate_values_by_column to check for inconsistencies be…
harmatt Sep 27, 2022
d5eda13
delete obsolete code
harmatt Sep 27, 2022
553ba23
remove comment
harmatt Sep 27, 2022
020692b
implement function to ensure hgvs nt and pro define same change
harmatt Sep 27, 2022
69681a8
edit call to function to reflect change in function signature
harmatt Sep 27, 2022
11c5ce1
edit imports
harmatt Sep 27, 2022
5416d46
add utility functions for parsing and reconstructing hgvs strings of …
harmatt Sep 27, 2022
546321c
add test cases for utilities functions
harmatt Sep 27, 2022
48cc6ce
outline test cases for utilities functions
harmatt Sep 27, 2022
00c1d40
edit imports
harmatt Sep 27, 2022
dbb1405
edit function signature and write documentation for construct_hgvs_pro
harmatt Sep 27, 2022
8d1f356
remove comment
harmatt Sep 27, 2022
93ac86d
edit function signature and update documentation for convert_hgvs_nt_…
harmatt Sep 27, 2022
972662e
update error messages
harmatt Sep 27, 2022
9d4a283
declare variables ouside of if else statements
harmatt Sep 27, 2022
385181a
refactor code and edit return value of conversion function
harmatt Sep 27, 2022
639cdbf
delete comment
harmatt Sep 27, 2022
cc045de
delete redundant unittests
harmatt Sep 27, 2022
c553cce
add test cases for validating datasets
harmatt Sep 27, 2022
fb5e2b0
delete comments
harmatt Sep 27, 2022
0c14580
move code to utilities
harmatt Sep 27, 2022
93a69db
edit imports
harmatt Sep 27, 2022
b8f5c58
delete TODO edit comments
harmatt Sep 27, 2022
f70ee43
update validation function implementation
harmatt Sep 27, 2022
69fe207
add builtin python typing to function signatures
harmatt Sep 27, 2022
e2f3a68
edit imports
harmatt Sep 27, 2022
c3e9e2a
update validate_values_by_column documentation
harmatt Sep 27, 2022
9db8b32
edit function calls for hgvs string validation
harmatt Sep 27, 2022
2aa3e90
mark TODO
harmatt Sep 27, 2022
4be7919
update documentation for validating variants represent the same change
harmatt Sep 27, 2022
478966e
add values to valid_dbnames
harmatt Sep 27, 2022
c3bbd13
update parameter types in validation documentation
harmatt Sep 27, 2022
9be09d0
add typing to function signature
harmatt Sep 27, 2022
7870b76
update function signature and docstring, and refactor implementation …
harmatt Sep 27, 2022
58670ac
write documentation and include python typing for category validation…
harmatt Sep 27, 2022
868245c
update function signatures for helper functions
harmatt Sep 27, 2022
e1785eb
refactor code to reflect changes in function signatures
harmatt Sep 27, 2022
f646c31
add values to __all__
harmatt Sep 27, 2022
5f95a13
reformat file
harmatt Sep 27, 2022
3c7069f
reformat file
harmatt Sep 29, 2022
46d2446
reformat docstrings
harmatt Sep 29, 2022
87c3fa9
edit imports
harmatt Sep 29, 2022
eed29f6
reformat
harmatt Sep 29, 2022
392a0eb
add condition to only perform validation when there is a protein sing…
harmatt Sep 29, 2022
40a5764
reformat
harmatt Sep 29, 2022
37b0e46
delete TODO and reformat
harmatt Sep 29, 2022
b8c19c0
correct placement of if else statements
harmatt Sep 29, 2022
53f8cb2
delete comment
harmatt Sep 29, 2022
6f442bd
edit import
harmatt Sep 29, 2022
9145f0b
edit docstring to take target_seq as argument
harmatt Sep 29, 2022
90af7c2
pass optional attributes for more precise validation
harmatt Sep 29, 2022
002dfc4
add type hints to function signature
harmatt Sep 29, 2022
7ac01a3
edit return value to reflect changes in function signature
harmatt Sep 29, 2022
ddd55e0
add type hints to function signatures
harmatt Sep 29, 2022
19ee4e6
edit imports
harmatt Oct 4, 2022
9851ec0
edit function call to reflect changes in function signature
harmatt Oct 4, 2022
ace1948
update parameter name
harmatt Oct 4, 2022
6357c4c
update validate_column_names implementation
harmatt Oct 4, 2022
72f1bef
check for empty dataset
harmatt Oct 4, 2022
34845cf
update function calls
harmatt Oct 4, 2022
c52b822
add note
harmatt Oct 4, 2022
5ecaf4e
edit imports
harmatt Oct 4, 2022
724c1e2
reimplement column name validation methods
harmatt Oct 4, 2022
cf95726
edit imports
harmatt Oct 4, 2022
70a01f7
add addtional test cases for column name validation
harmatt Oct 4, 2022
9b0261d
add data validation test methods
harmatt Oct 4, 2022
cf41612
outline additional data validation test methods
harmatt Oct 4, 2022
6d4395e
delete redundant test methods
harmatt Oct 4, 2022
4e5780e
reimplement validation in helper function
harmatt Oct 4, 2022
20fca29
update __all__ variable
harmatt Oct 4, 2022
59136bc
edit imports
harmatt Oct 12, 2022
a4f81f1
make sure splice is not defined when nt is not defined
harmatt Oct 12, 2022
5caa854
make sure hgvs_pro or hgvs_nt column is present
harmatt Oct 12, 2022
5ba2738
check that prefixes are consistent and edit variant validation arguments
harmatt Oct 12, 2022
84f81a5
edit score validation and variant validation arguments
harmatt Oct 12, 2022
4271d6b
define and implement index column validation
harmatt Oct 12, 2022
e2648ed
reimplement score validation to cast values to float if allowed, else…
harmatt Oct 12, 2022
fb5f719
edit imports
harmatt Oct 12, 2022
6b35cbc
delete redundant imports, add comment
harmatt Oct 12, 2022
d3ba718
change None to np.nan in test cases
harmatt Oct 12, 2022
3f7a21b
add test case for column names
harmatt Oct 12, 2022
19a3e4f
edit setUp method to validate values by column
harmatt Oct 12, 2022
2ee0ff6
add test case to test for valid dataframe when validating values by c…
harmatt Oct 12, 2022
acf4860
drop extra rows to reflect changes in setUp method
harmatt Oct 12, 2022
70b65b9
refactor test case into three separate test cases
harmatt Oct 12, 2022
a624abf
refactor test case into two separate test cases
harmatt Oct 12, 2022
81d71bf
implement suite of new test cases
harmatt Oct 12, 2022
c5f7154
implement test cases to check for missing values in primary columns
harmatt Oct 12, 2022
2c0fc44
delete redundant test cases
harmatt Oct 12, 2022
3c714ea
add test class to validate target seq with regards to variants
harmatt Oct 12, 2022
91e03b8
update test method to reflect changes in validation
harmatt Oct 12, 2022
f8ede3e
update test method to reflect changes in validation
harmatt Oct 12, 2022
cd054d3
refactor test methods to prevent error messages
harmatt Oct 12, 2022
5486d63
remove print statement
harmatt Oct 12, 2022
85c76cf
remove print statement
harmatt Oct 12, 2022
7855aa6
add notes
harmatt Oct 12, 2022
e53c034
update test cases to remove errors
harmatt Oct 12, 2022
de90aff
update docstring
harmatt Oct 17, 2022
c0592af
update inputs
harmatt Oct 17, 2022
29446f2
add unittest for checking mismatched variants and column names
harmatt Oct 17, 2022
b6dc403
delete redundant test class and methods
harmatt Oct 17, 2022
dafa924
implement test class and methods for checking that variants represent…
harmatt Oct 17, 2022
fcb9b1d
outline unittest for target
harmatt Oct 17, 2022
a7a3219
remove pass
harmatt Oct 17, 2022
34a2351
add code to validate target sequence
harmatt Oct 17, 2022
cbceaca
update setUp methods to reflect changes in validation
harmatt Oct 17, 2022
b1fc10a
add import statement
harmatt Oct 17, 2022
a523b04
refactor code to be more modular, call helper function instead of wri…
harmatt Oct 17, 2022
782afc5
delete redundant test cases, this is tested elsewhere
harmatt Oct 17, 2022
740c2b4
delete redundant test cases and class, this is tested elsewhere
harmatt Oct 17, 2022
e27f618
reformat
harmatt Oct 17, 2022
44d3400
validate pydantic attribute
harmatt Oct 17, 2022
7eb6303
update attribute values to reflect changes in validation code
harmatt Oct 17, 2022
3948245
add target test cases for valid inputs
harmatt Oct 24, 2022
bb0fc55
edit imports
harmatt Oct 24, 2022
2f53b64
define target test cases for invalid inputs
harmatt Oct 24, 2022
fbb205f
implement target test cases for invalid inputs
harmatt Oct 24, 2022
acfe06b
update imports
harmatt Oct 24, 2022
8663086
edit is_null implementation to return boolean values
harmatt Oct 24, 2022
c14977d
update documentation for construct_hgvs_pro function
harmatt Oct 24, 2022
df7bec3
update implementation for construct_hgvs_pro function, raise errors w…
harmatt Oct 24, 2022
6d41bc4
edit imports
harmatt Oct 24, 2022
d5512e0
edit imports
harmatt Oct 24, 2022
48463c9
implement is_null test methods
harmatt Oct 24, 2022
f2083ea
implement test methods for utility test cases
harmatt Oct 24, 2022
ef303cd
add TODO for test method in utility test cases
harmatt Oct 24, 2022
ee28eb0
correct invalid function signatures for utility test cases
harmatt Oct 24, 2022
1beb259
mark TODO, do not apply this function until it has been fully tested
harmatt Oct 24, 2022
22ba97d
remove todo
harmatt Nov 4, 2022
ba4569d
reimplement to cover cases where None values are allowed in columns
harmatt Nov 4, 2022
afb1658
remove TODO
harmatt Nov 4, 2022
bccec5e
remove TODO and check that there are no duplicates in column names
harmatt Nov 4, 2022
965d620
reimplement, change list of invalid column names
harmatt Nov 4, 2022
8151304
delete comments
harmatt Nov 4, 2022
b1f18eb
reimplement, consider scenarios where column values can take None
harmatt Nov 4, 2022
21b2469
consider case where hgvs_pro should not take value when hgvs_nt is no…
harmatt Nov 4, 2022
723a666
consider scenario where column values can take None
harmatt Nov 4, 2022
95691bf
reimplement validate score, only consider float and int as valid
harmatt Nov 4, 2022
e4cbc70
add TODO
harmatt Nov 4, 2022
59adeab
add import
harmatt Nov 4, 2022
212fd37
reformat
harmatt Nov 4, 2022
64950ac
add case for testing duplicate column names
harmatt Nov 4, 2022
c8b83cb
add new list of null values that a column name can take
harmatt Nov 4, 2022
1d7fdd0
delete redundant code
harmatt Nov 4, 2022
975d474
edit test case to check for error when string is passes as score valu…
harmatt Nov 4, 2022
66a1916
remove unneeded test case
harmatt Nov 4, 2022
e9de63e
add test cases to check value in hgvs_pro column depending on prefix …
harmatt Nov 4, 2022
547e607
implement test to check that 0 is not parsed as None
harmatt Nov 4, 2022
3663669
implement test to check that close to 0 is not parsed as None
harmatt Nov 4, 2022
5f52215
edit docstring
harmatt Nov 4, 2022
1be4173
reformat
harmatt Nov 4, 2022
69627aa
add notes to improve utility functions
harmatt Nov 4, 2022
17c44ec
edit imports
harmatt Nov 4, 2022
9df1473
update test cases
harmatt Nov 4, 2022
8a97908
add to outline of unittests
harmatt Nov 4, 2022
5265298
comment out partial function calls
harmatt Nov 4, 2022
eb50e99
add dataset validation
harmatt Nov 8, 2022
c362945
create dictionary validation functions
harmatt Nov 8, 2022
bbd43eb
edit import
harmatt Nov 8, 2022
6bd39f4
write documentation for scoreset and experiment dictionary validation
harmatt Nov 8, 2022
7893751
return a validated dictionary from the dictionary validation functions
harmatt Nov 8, 2022
95e63f8
create test file for dataset validation
harmatt Nov 8, 2022
e8a6acd
outline dataset test cases
harmatt Nov 8, 2022
1cdaadd
resolved merge conflict
harmatt Nov 9, 2022
f90f072
update dbname
harmatt Nov 9, 2022
80efe63
update targetseq and dbname to pass unittests
harmatt Nov 9, 2022
2d4ab84
update validate null columns or rows tests to reflect changes in vali…
harmatt Nov 9, 2022
2a3ef7d
update conditional to accurately validate column names
harmatt Nov 9, 2022
3320c6c
update valid experimentset urn test and mark variant urn test as TODO
harmatt Nov 9, 2022
58b4598
Merge pull request #8 from VariantEffect/pydantic_validation_revised
afrubin Nov 20, 2022
b9f33ef
add camelCase conversion utility function
harmatt Nov 29, 2022
2dbe10d
import camelCase utilty function to pydantic model files
harmatt Nov 29, 2022
66a99a4
add pydantic to requirements file
harmatt Nov 29, 2022
cce4ff8
change model attributes to snake_case
harmatt Nov 29, 2022
761e067
add generator to pydantic models to create camelCase alias' to the sn…
harmatt Nov 29, 2022
b7276bc
add generator to pydantic models to create camelCase alias' to the sn…
harmatt Nov 29, 2022
29d366e
update decorator arguments to snake_case
harmatt Nov 29, 2022
ffa73fc
update decorator arguments to snake_case
harmatt Nov 29, 2022
324ce77
update pydantic attribute to snake_case
harmatt Nov 29, 2022
8718203
Merge pull request #9
harmatt Nov 30, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,6 @@ dmypy.json

# Pyre type checker
.pyre/

# PyCharm
.idea/
18 changes: 18 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: check-yaml
- id: check-json
- id: debug-statements
- id: detect-private-key
- id: end-of-file-fixer
files: \.py$
- id: pretty-format-json
- id: trailing-whitespace
files: \.py$
- repo: https://github.com/psf/black
rev: 22.3.0
hooks:
- id: black
language_version: python3
28 changes: 28 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
language: python
matrix:
include:
- python: "3.6"
- python: "3.7"
- python: "3.8"
- python: "3.9"
- python: "3.9-dev"
- python: "3.10-dev"
- python: "pypy3"
env: NO_MYPY=true
allow_failures:
- python: "3.9"
- python: "3.9-dev"
- python: "3.10-dev"
- python: "pypy3"
env: NO_MYPY=true
install:
- pip3 install .
before_script:
- pip3 install coverage
- pip3 install coveralls
- if ! $NO_MYPY; then pip3 install mypy; fi
script:
- coverage run --source mavecore -m unittest
- if ! $NO_MYPY; then mypy mavecore tests; fi
after_success:
- coveralls
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# MaveCore
Shared MaveDB and MaveTools functionality

## Contributing

To contribute to MaveCore development, please install the additional requirements:
```
pip install -r requirements-dev.txt
```

To run the tests and generate an HTML coverage report use:
```
coverage run -m unittest && coverage html
```

By default, the coverage report will be located at `htmlcov/index.html`.
Open this file in your browser to identify lines that have not been adequately covered by the test suite.
20 changes: 20 additions & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Minimal makefile for Sphinx documentation
#

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = source
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
35 changes: 35 additions & 0 deletions docs/make.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
@ECHO OFF

pushd %~dp0

REM Command file for Sphinx documentation

if "%SPHINXBUILD%" == "" (
set SPHINXBUILD=sphinx-build
)
set SOURCEDIR=source
set BUILDDIR=build

if "%1" == "" goto help

%SPHINXBUILD% >NUL 2>NUL
if errorlevel 9009 (
echo.
echo.The 'sphinx-build' command was not found. Make sure you have Sphinx
echo.installed, then set the SPHINXBUILD environment variable to point
echo.to the full path of the 'sphinx-build' executable. Alternatively you
echo.may add the Sphinx directory to PATH.
echo.
echo.If you don't have Sphinx installed, grab it from
echo.https://www.sphinx-doc.org/
exit /b 1
)

%SPHINXBUILD% -M %1 %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%
goto end

:help
%SPHINXBUILD% -M help %SOURCEDIR% %BUILDDIR% %SPHINXOPTS% %O%

:end
popd
68 changes: 68 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# Configuration file for the Sphinx documentation builder.
#
# This file only contains a selection of the most common options. For a full
# list see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html

# -- Path setup --------------------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
import os
import sys

sys.path.insert(0, os.path.abspath("../.."))


# -- Project information -----------------------------------------------------

project = "MaveCore"
copyright = "2022, Alan F Rubin"
author = "Alan F Rubin"

# The full version, including alpha/beta/rc tags
release = "0.0.1"


# -- General configuration ---------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.napoleon",
"sphinx.ext.intersphinx",
"sphinx.ext.autosectionlabel",
]
nbsphinx_allow_errors = True

# Add any paths that contain templates here, relative to this directory.
templates_path = ["_templates"]

# List of patterns, relative to source directory, that match files and
# directories to ignore when looking for source files.
# This pattern also affects html_static_path and html_extra_path.
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]

# Intersphinx information for documentation from other packages
intersphinx_mapping = {"python": ("https://docs.python.org/3", None)}


# -- Options for HTML output -------------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = "pyramid"

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ["static"]


def setup(app):
app.add_css_file("styles.css")
8 changes: 8 additions & 0 deletions docs/source/dataset_validators.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
dataset validation
==================

Dataset validation contains validation code for datasets.


.. automodule:: mavecore.validation.dataset_validators
:members:
8 changes: 8 additions & 0 deletions docs/source/genome_validators.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
genome validation
=================

Genome validation contains validation functions relating to wild type sequences,
reference genomes, target genes, reference maps, and genomic intervals.

.. automodule:: mavecore.validation.genome_validators
:members:
31 changes: 31 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.. MaveCore documentation master file, created by
sphinx-quickstart on Tue Mar 1 14:20:15 2022.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.

MaveCore
========
MaveCore is a pure Python Module for bioinformatics and computational biology.
It features all the shared functionality of MaveDB and MaveTools.

Install MaveCore using pip::

pip3 install MaveCore

Building a local copy of the documentation requires the following additional packages::

pip3 install sphinx

.. toctree::
:maxdepth: 2
:caption: Contents:

validation


Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`
8 changes: 8 additions & 0 deletions docs/source/metadata_validators.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
metadata validation
===================

Metadata validation contains functions designed to check the validity of metadata relating to
sra, keyword, pubmed, doi, ensembl, uniprot, refseq and genome identifiers and lists.

.. automodule:: mavecore.validation.metadata_validators
:members:
108 changes: 108 additions & 0 deletions docs/source/static/lato-fonts.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6u_w4BMUTPHjxsI9w2_FQft1dw.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6u_w4BMUTPHjxsI9w2_Gwft.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6u8w4BMUTPHjxsAUi-qJCY.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6u8w4BMUTPHjxsAXC-q.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6u_w4BMUTPHjxsI5wq_FQft1dw.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: italic;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6u_w4BMUTPHjxsI5wq_Gwft.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6u9w4BMUTPHh7USSwaPGR_p.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 300;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6u9w4BMUTPHh7USSwiPGQ.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6uyw4BMUTPHjxAwXjeu.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6uyw4BMUTPHjx4wXg.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6u9w4BMUTPHh6UVSwaPGR_p.woff2) format('woff2');
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Lato';
font-style: normal;
font-weight: 700;
font-display: swap;
src: url(https://fonts.gstatic.com/s/lato/v20/S6u9w4BMUTPHh6UVSwiPGQ.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
Loading