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

Qc check rnaseqc #392

Merged
merged 45 commits into from
May 25, 2017
Merged

Qc check rnaseqc #392

merged 45 commits into from
May 25, 2017

Conversation

rbbits
Copy link
Contributor

@rbbits rbbits commented Dec 8, 2016

All changes are about RNA-SeQC template in SeQC. Requires rna_seqc table in npg_qc db (npgqctest_rb11 schema in npgtest-db can be used).

Ruben E. Bautista added 30 commits August 10, 2015 14:37
- Done some code reformatting
- Use npg_qc::autoqc::results::collection instead to iterate
  through a list of available results
…Readonly::Array

- Move all POD at the end of module
- Update data/schema.txt: added new table to npg_qc database to store
  QC check: rna_seqc
- New file: lib/npg_qc/Schema/Result/RnaSeqc.pm: added new object
  for storage using DBIx
- Schema::Result::SeqComposition was updated with a new ER
  relationship
- rna_seqc is no longer a non-storable qc check and does not have to
  be skiped by qc_store any more.
- Create new template file for RNA-SeQC check:
  npg_qc_viewer/root/src/ui_checks/rna_seqc.tt2
- about.tt2: Rearrange list of available checks alphabetically and
- add rna_seqc to the list of available checks
- about_qc_checks.tt2: rearrange information about qc checks
  alphabetically and
- add "about" information for rna_seqc metrics
- Bug fix: mega bug in which the value of metrics were being rounded
  up because the type of the columns was integer instead of floating
  point.
- Bug fix: Value of "End 2 % Sense" is not being stored because of a
  trailing \n (being the last column). Use chomp on keys to fix.
- rna_seqc check template shows nicely formatted results and
  includes a link to the qc/rna_seqc directory where all of the
  reports are stored
- reorganize keys in hash of labels alphabetically in the
  summary table's template(what's wrong with that?)
- add rna_seqc label and its 3 chosen metrics to said list
- add selected rna_seqc metrics to summary table in lanes
  template
- fix misspelled name for the Broad in info page
… anymore

- New attribute allows schema object to play nice with qc_store new capabilities
…aseqc_with_mgcam_rpt4composition

Conflicts:
	scripts/npgqc_dbix_schema_loader.pl
Ruben E. Bautista added 7 commits December 5, 2016 14:52
- Reverse previous change that prevented rendering metrics for
  rna_seqc check because they was no rna_seqc template
- Link to RNA-SeQC report can be display only if id_run is defined,
  and this is true only when check results are being loaded from disk.
- Metrics in summary table are shown in a single line to reduce
  scrolling.
- Travis complains about unexpected closing tags
[fixed] Conflicts: Changes
@rbbits rbbits requested review from ces and dkj December 8, 2016 18:10

has [ @ATTRIBUTES ] => (
is => 'rw',
isa => 'Maybe[Num]',
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Would like to chat this particular case over. I think important here are

  • reflecting what data we are capturing and
  • consistency serializing to the DB.

CREATE TABLE `rna_seqc` (
`id_rna_seqc` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Auto-generated primary key',
`id_seq_composition` bigint(20) unsigned NOT NULL COMMENT 'A foreign key referencing the id_seq_composition column of the seq_composition table',
`path` varchar(256) DEFAULT NULL,
Copy link
Member

Choose a reason for hiding this comment

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

I am not sure that this field is going to be filled by this check. This is a historic feature, which we probably can discontinue.

@mgcam
Copy link
Member

mgcam commented Dec 9, 2016

A file with an SQL statement that will update a database is needed in https://github.com/wtsi-npg/npg_qc/tree/devel/scripts/upgrade_schema

Ruben E. Bautista added 2 commits December 12, 2016 13:46
…pes where appropriate

- Change data type of rna_seqc result attributes from
  Maybe[Num] to Num.
- Update rna_seqc Schema to reflect removed column.
- Add file upgrade_schema-60.x to create table rna_seqc.
- Update Changes file
Ruben E. Bautista added 2 commits January 5, 2017 17:18
Check:
- Make attributes lazy+build instead of lazy_build
- Add new attribute to create a directory by default into
  which RNA-SeQC's report will be stored (the directory
  itself is created by RNA-SeQC)
- Fix the parsing code to reflect this change
- Set to undef fields with value of NaN when parsing

Result:
- Add new output_dir directory to RNA-SeQC result object

Tests:
- Create subtests for categories of tests
- Add tests for parsing the metrics file
- Improve testing by adding more units
- Add auxiliary files for testing
- Add missing auxiliary tests files
Ruben E. Bautista added 3 commits January 18, 2017 14:37
…in npg_qc_viewer

- This is to reflect the changes that happened in the check, i.e. the
  creation of the directory inside the archive/lane/qc directory by
  default.
- This is necessary for the npg_autoqc_data.pl script to work
  for this check.
`end_3_norm` float unsigned DEFAULT NULL,
`other_metrics` text,
PRIMARY KEY (`id_rna_seqc`),
KEY `rna_seqc_compos` (`id_seq_composition`),
Copy link
Contributor

Choose a reason for hiding this comment

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

needs updating now - change to;
UNIQUE KEY rna_seqc_id_compos_unq (id_seq_composition),

- Modify SQL commands to reflect changes in rna_seqc table.
- Update upgrade-schema-60.x SQL script as well as data/schema.txt.
- Change rna_seqc check POD 'DESCRIPTION' to be more accurate.
- Delete instances of the qc_report_dir attribute which is no longer used.
- Update Changes file with latest er... changes.
@dkj dkj self-assigned this May 23, 2017
@dkj dkj merged commit ecff38d into wtsi-npg:devel May 25, 2017
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.

4 participants