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

rewriting_trending_from_mip6_into_mip5 for delivery reports #25

Merged
merged 7 commits into from
Apr 26, 2018

Conversation

patrikgrenfeldt
Copy link
Contributor

…azer

@patrikgrenfeldt patrikgrenfeldt changed the title Merge branch 'master' of https://github.com/Clinical-Genomics/trailbl… rewriting_trending_from_mip6_into_mip5 for delivery reports Apr 25, 2018
@coveralls
Copy link

coveralls commented Apr 25, 2018

Pull Request Test Coverage Report for Build 387

  • 53 of 53 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.8%) to 58.888%

Totals Coverage Status
Change from base Build 372: 2.8%
Covered Lines: 487
Relevant Lines: 827

💛 - Coveralls

Copy link
Contributor

@ingkebil ingkebil left a comment

Choose a reason for hiding this comment

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

Looking good! Really glad we ploughed through this

### Define output dict
outdata = {
'analysis_sex': {},
'at_dropout': {},
Copy link
Contributor

Choose a reason for hiding this comment

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

We could comment this one out

Copy link
Contributor

Choose a reason for hiding this comment

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

This is an important qc-metric to trend as was decided previously. Are you adding this info from some other source?
I think it is bad practise to leave lines of code that are not used in a "commented form". It clutteres the code and makes it more complicated than it is. Removing the unused line is prefered and then adding it in when required. In this case I do not really understand why you want to comment it out as you can just ignore this key when parsing the output in the downstream process (if it is not ready for the "at_dropout"), but I am not up to speed on what you are planning here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, now I see you are just trying to get it to be compatible with the mip5.0 in production, right?

Copy link
Contributor

Choose a reason for hiding this comment

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

... like the title said ;)

'at_dropout': {},
'family': None,
'duplicates': {},
'gc_dropout': {},
Copy link
Contributor

Choose a reason for hiding this comment

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

This one as well

Copy link
Contributor

Choose a reason for hiding this comment

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

This is an important qc-metric to trend as was decided previously. Are you adding this info from some other source?

'duplicates': {},
'gc_dropout': {},
'genome_build': None,
'insert_size_standard_deviation': {},
Copy link
Contributor

Choose a reason for hiding this comment

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

And this one

Copy link
Contributor

Choose a reason for hiding this comment

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

This is an important qc-metric to trend as was decided previously. Are you adding this info from some other source?

'genome_build': None,
'insert_size_standard_deviation': {},
'mapped_reads': {},
'median_insert_size': {},
Copy link
Contributor

Choose a reason for hiding this comment

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

And this one

Copy link
Contributor

Choose a reason for hiding this comment

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

This is an important qc-metric to trend as was decided previously. Are you adding this info from some other source?

dict: parsed data
"""

### Define output dict
Copy link
Contributor

Choose a reason for hiding this comment

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

What's up with these triple #?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's just a way of commenting what the next block of code is handling. If you have another system in place in trailblazer feel free to modify accordingly.

Copy link
Contributor

Choose a reason for hiding this comment

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

Python has a style guide which we are following: https://www.python.org/dev/peps/pep-0008/
e.g. Pycharm automatically highlights any deviations from pep-8.

'sample_ids': [],
}
### Config
## Parse raw mip_config into dict
Copy link
Contributor

Choose a reason for hiding this comment

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

What's up with these dual #?

Copy link
Contributor

Choose a reason for hiding this comment

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

see above

## Add mip version
outdata['mip_version'] = sampleinfo_data['version']

## Add mip version
Copy link
Contributor

Choose a reason for hiding this comment

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

# Add genome build

@patrikgrenfeldt
Copy link
Contributor Author

All requested changes performed, what do you think of it now?

@henrikstranneheim
Copy link
Contributor

Wow, You really went all in for utility subs, 😁. Very nice and clear! 👍

@ingkebil
Copy link
Contributor

Let's merge and 🚢

@patrikgrenfeldt patrikgrenfeldt merged commit 5bae0cc into master Apr 26, 2018
@patrikgrenfeldt patrikgrenfeldt deleted the rewriting_trending_from_mip6_into_mip5 branch August 20, 2018 13:48
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.

None yet

4 participants