Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

Af 146 configargparse #444

Merged
merged 99 commits into from Jan 24, 2019
Merged

Af 146 configargparse #444

merged 99 commits into from Jan 24, 2019

Conversation

afaulconbridge
Copy link
Contributor

@afaulconbridge afaulconbridge commented Jan 24, 2019

Solves 90% of opentargets/issues#146

This is attempt two to merge this branch. Now config is split over two files - an ops config and a data config.

Some work still to do, but better to get this merged into master well ahead of 19.02 code freeze even if there are a few rough bits to be ironed out later. Tested locally to work end-to-end.

Note, please don't use git hub automerge from master to update this branch. It doesn't seem to handle some of the changes well.

@codecov
Copy link

codecov bot commented Jan 24, 2019

Codecov Report

Merging #444 into master will decrease coverage by 1.7%.
The diff coverage is 20.22%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #444      +/-   ##
==========================================
- Coverage   26.19%   24.49%   -1.71%     
==========================================
  Files          33       35       +2     
  Lines        5410     5255     -155     
==========================================
- Hits         1417     1287     -130     
+ Misses       3993     3968      -25
Impacted Files Coverage Δ
mrtarget/common/DataStructure.py 82.69% <ø> (+1.21%) ⬆️
mrtarget/common/ElasticsearchLoader.py 18.56% <ø> (+1.04%) ⬆️
mrtarget/modules/ChEMBL.py 0% <0%> (-27.05%) ⬇️
mrtarget/modules/DataDrivenRelation.py 0% <0%> (ø) ⬆️
mrtarget/modules/Ensembl.py 0% <0%> (ø) ⬆️
mrtarget/modules/Evidences.py 0% <0%> (ø) ⬆️
mrtarget/modules/HPA.py 0% <0%> (ø) ⬆️
mrtarget/CommandLine.py 0% <0%> (ø) ⬆️
mrtarget/modules/QC.py 0% <0%> (ø) ⬆️
mrtarget/common/EvidencesHelpers.py 0% <0%> (ø) ⬆️
... and 21 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update abab031...ac37901. Read the comment docs.

--input-file $(JSON_PATH)/slapenrich.json.gz \
--input-file $(JSON_PATH)/uniprot.json.gz \
$(ES_PREFIX) 2>&1 | tee $(LOG_PATH)/out.$(ES_PREFIX).val.log
$(MRTARGET_CMD) --val 2>&1 | tee $(LOG_PATH)/out.val.log
Copy link
Contributor

Choose a reason for hiding this comment

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

wow so clean now! @afaulconbridge


def main():
#parse config file, environment, and command line arguments
mrtarget.cfg.setup_ops_parser()
args = mrtarget.cfg.get_ops_args()
Copy link
Contributor

Choose a reason for hiding this comment

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

@afaulconbridge quite neat!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants