• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

broadinstitute / gamgee / 1412
87%
master: %

Build:
Build:
LAST BUILD BRANCH: jt_rbs_vb2
DEFAULT BRANCH: master
Ran 13 Nov 2014 09:48PM UTC
Jobs 1
Files 188
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
1412

push

travis-ci

droazen
VariantBuilderMultiSampleVector: simple class to make it easier to prepare multi-sample data for VariantBuilder

Made the efficient one-dimensional vector option for setting individual fields MUCH easier
to use by providing a VariantBuilderMultiSampleVector class that handles the work of
setting missing values and padding the vector to the maximum field width.

To use, first determine the number of samples and the maximum number of values per sample
for the field, then get a pre-initialized vector from the builder. Eg.,

auto multi_sample_vector = builder.get_integer_multi_sample_vector(num_samples, max_values_per_sample);

This vector will have missing values for all samples, with appropriate padding to the maximum field width.

Then, fill in the values for each non-missing sample by invoking the set_sample_value() and/or
set_sample_values() functions on your multi-sample vector (set_sample_value() is more efficient
than set_sample_values() since it doesn't require a vector construction/destruction for each call).
You don't have to worry about samples with no values, since all samples start out with missing values.

Finally, pass your multi-sample vector to the builder (ideally by move):

builder.set_integer_individual_field(field_index, std::move(multi_sample_vector));

-Works with integer and float individual fields, as well as the GT field
 (string fields are still set by passing in a one-dimensional vector of strings).

-Removed the ability to pass in a raw one-dimensional vector directly for int/float
 fields -- you must use a VariantBuilderMultiSampleVector if you want to work
 with flattened multi-sample data.

-Updated tests as necessary.

Resolves #325

2734 of 2848 relevant lines covered (96.0%)

1364.13 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1412.2 13 Nov 2014 09:48PM UTC 0
96.0
Travis Job 1412.2
Source Files on build 1412
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1412
  • f742b87c on github
  • Next Build on dr_vb_flattened_vector_helper_functions (#1427)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc