-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from Illumina/update-public
Bug fix for legacy datasets and added dumptext to replace interop2csv
- Loading branch information
Showing
103 changed files
with
2,674 additions
and
527 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,10 +18,6 @@ | |
language: cpp | ||
sudo: required | ||
|
||
env: | ||
global: | ||
- secure: "oALD7yjwurT4h4x/iATz8zP+q9y1bOG8l9wFucmM8HTIdThN+37YZDmLnhlRWKDZNt6NwBRom1vHmTZAmLGO0RohPxRV8RrceQGq5Jjq0gmXQafxjhbZetKxFbXKJ5/4RdUM0yxPCmYCscHEJG/1gk+F6y7hFiRPO8A5z8AhNabCZ8BMwaLaWpko7mHO1HqEs/MWExj32IF0DVQtzWyJeyO4RYkYKtBGfsGZMHfhsis3Nhfql5shN64AmlAxJewxApJg0wbnf5fbXyLYqZS92MW0GbPph+grdpEGEgGVgyGRV0Ys9EAj0CQs5ukmi+JP6TL2BbBnmreAOwiWMQDGzAKgwipOH3Phmcor4bFo5TU0vTBhP1RCxnPa/zyTrwI94KH96b+j2WT/6wDkXrixhVAeJntuWEhbJvklN/lC8/nlGnbRfyEB5Ists5yFzERxqIWd3x+qtknJO8/wcetbavBFUPcgEZdTXVv1zTquzLeUNlavseT9egFFQ7cDnGwg8b9LWb+sQeqiTjT3p6WQ/4+tw/EVn+xCfqkw746Gy8aXFdviJU3mcYeR7gvgYO84HXaoS0Mv7mxmJeWfoNopkv0U7cPNS3eXU3XZ2bg0WZl90i2LLXcQgtm8nz3NVEhGfpgjlQ+WBQcVOYG93vBcOa4powoCHojgzZn55T/J3nQ=" | ||
|
||
matrix: | ||
include: | ||
- compiler: clang | ||
|
@@ -36,24 +32,6 @@ matrix: | |
- compiler: gcc | ||
os: linux | ||
env: INTEROP_C89=ON BUILD_TYPE=Release BUILD_NAME=linux_gcc46_release DEPLOY_BUILD=true | ||
- compiler: gcc | ||
os: linux | ||
env: INTEROP_C89=ON BUILD_TYPE=Release BUILD_NAME=linux_gcc46_release COVERITY=1 | ||
addons: | ||
apt: | ||
sources: | ||
- george-edison55-precise-backports | ||
packages: | ||
- cmake | ||
- cmake-data | ||
coverity_scan: | ||
project: | ||
name: "Illumina/interop" | ||
description: "InterOp Libraries for Illumina Sequencers" | ||
build_command_prepend: "cmake .. -DENABLE_SWIG=OFF -DENABLE_DOCS=OFF" | ||
build_command: "cmake --build ." | ||
notification_email: [email protected] | ||
branch_pattern: master | ||
- compiler: gcc | ||
addons: &1 | ||
apt: | ||
|
@@ -141,7 +119,6 @@ before_script: | |
- export CXX="${CXX}${COMPILER_VERSION}" | ||
|
||
script: | ||
- if test ! -z ${COVERITY}; then exit 0; fi | ||
- export BUILD_PATH=${PWD}/${BUILD_NAME} | ||
- echo 'Configuring...' && echo -en 'travis_fold:start:script.1\\r' | ||
- cmake -DNUNIT_ROOT=$HOME/NUnit-2.6.4 ../ -DENABLE_BACKWARDS_COMPATIBILITY=$INTEROP_C89 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=${BUILD_PATH} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# InterOp Calculations {#calculated_metrics} | ||
|
||
This page describes the derived metrics calculated from the InterOp files. | ||
|
||
## Summary Tab | ||
|
||
This section describes each metric shown in the SAV summary tab. | ||
|
||
- @subpage q_metrics_requirement_q30 "% >= Q30" | ||
- @subpage q_metrics_requirement_yield "Yield (G)" | ||
- @subpage q_metrics_requirement_projected_yield "Projected Yield (G)" | ||
- @subpage error_metrics_requirement "% Error" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/** Metric format interface for the text format factory | ||
* | ||
* @file | ||
* @date 12/19/16 | ||
* @version 1.0 | ||
* @copyright GNU Public License. | ||
*/ | ||
|
||
#pragma once | ||
|
||
#include <iosfwd> | ||
#include "interop/util/cstdint.h" | ||
|
||
namespace illumina { namespace interop { namespace io | ||
{ | ||
/** Abstract class that provides an interface for the text format of a metric | ||
* | ||
* The template argument for this class corresponds to a specific type | ||
* of metric set. | ||
*/ | ||
template<class Metric> | ||
struct abstract_text_format | ||
{ | ||
/** Define the metric type */ | ||
typedef Metric metric_t; | ||
/** Define the metric header type */ | ||
typedef typename Metric::header_type header_t; | ||
/** ID type */ | ||
typedef typename metric_t::id_t id_t; | ||
|
||
/** Destructor | ||
*/ | ||
virtual ~abstract_text_format() {} | ||
/** Write the header for a set of metric records to the given output stream | ||
* | ||
* @param out output stream to write the binary InterOp file data | ||
* @param header header of a metric set | ||
* @param channel_names list of channel names | ||
* @param sep column seperator | ||
* @param eol row separator | ||
* @return number of column headers | ||
*/ | ||
virtual size_t write_header(std::ostream &out, | ||
const header_t &header, | ||
const std::vector<std::string>& channel_names, | ||
const char sep, | ||
const char eol) = 0; | ||
/** Write a metric record to the given output stream | ||
* | ||
* @param out output stream to write the binary InterOp file data | ||
* @param metric interop metric data to write | ||
* @param header interop metric header data to write | ||
* @param sep column seperator | ||
* @param eol row separator | ||
* @param missing missing value indicator | ||
* @return number of columns written | ||
*/ | ||
virtual size_t write_metric(std::ostream &out, | ||
const metric_t &metric, | ||
const header_t &header, | ||
const char sep, | ||
const char eol, | ||
const char missing) = 0; | ||
|
||
/** Get the version of this metric format | ||
* | ||
* @return version number | ||
*/ | ||
virtual ::int16_t version() const=0; | ||
}; | ||
}}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
/** Concrete text layout formats for the abstract text format interface. | ||
* | ||
* | ||
* @file | ||
* @date 12/19/16 | ||
* @version 1.0 | ||
* @copyright GNU Public License. | ||
*/ | ||
#pragma once | ||
#ifdef _MSC_VER | ||
#pragma warning(disable:4702) // MSVC warns that there is unreachable code | ||
#endif | ||
|
||
|
||
#include "interop/util/exception.h" | ||
#include "interop/io/format/abstract_text_format.h" | ||
#include "interop/io/format/generic_layout.h" | ||
|
||
namespace illumina { namespace interop { namespace io | ||
{ | ||
/** Shared functionality for writing text InterOp metrics | ||
*/ | ||
template<class Metric, class Layout> | ||
struct text_format; | ||
/** Shared functionality for writing text InterOp metrics | ||
* | ||
* Specialization for text_layout | ||
*/ | ||
template<class Metric, int Version> | ||
struct text_format<Metric, text_layout<Metric, Version> > : public abstract_text_format<Metric> | ||
{ | ||
private: | ||
typedef text_layout<Metric, Version> layout_t; | ||
typedef typename Metric::id_t id_t; | ||
public: | ||
/** Define the metric type */ | ||
typedef Metric metric_t; | ||
/** Define the metric header type */ | ||
typedef typename Metric::header_type header_t; | ||
|
||
/** Write the header of text format to the given output stream | ||
* | ||
* @param out output stream to write the binary InterOp file data | ||
* @param header header of a metric set | ||
* @param channel_names list of channel names | ||
* @param sep column seperator | ||
* @param eol row separator | ||
* @return number of column headers | ||
*/ | ||
size_t write_header(std::ostream &out, | ||
const header_t &header, | ||
const std::vector<std::string>& channel_names, | ||
const char sep, | ||
const char eol) | ||
{ | ||
out << "# " << Metric::prefix() << Metric::suffix() << sep; | ||
out << Version << eol; | ||
return layout_t::write_header(out, header, channel_names, sep, eol); | ||
} | ||
|
||
/** Write a text record to the given output stream | ||
* | ||
* @param out output stream | ||
* @param metric a metric to write | ||
* @param header metric set header | ||
* @param sep column seperator | ||
* @param eol row separator | ||
* @param missing missing value indicator | ||
* @return number of columns written | ||
*/ | ||
size_t write_metric(std::ostream &out, | ||
const metric_t &metric, | ||
const header_t &header, | ||
const char sep, | ||
const char eol, | ||
const char missing) | ||
{ | ||
return layout_t::write_metric(out, metric, header, sep, eol, missing); | ||
} | ||
|
||
/** Get the version of this metric format | ||
* | ||
* @return version number | ||
*/ | ||
::int16_t version() const | ||
{ | ||
return static_cast< ::int16_t >(Version); | ||
} | ||
}; | ||
}}} | ||
|
||
|
Oops, something went wrong.