opencb / opencga

An Open Computational Genomics Analysis platform for big data genomics analysis. OpenCGA is maintained and develop by its parent company Zetta Genomics. Please contact support@zettagenomics.com for bug report and feature requests.
Apache License 2.0
166 stars 98 forks source link

Extend QueryResult as VariantQueryResult adding the list of sample names in the variants. #519

Closed j-coll closed 7 years ago

j-coll commented 7 years ago

Variant model does not contains the name of the samples, or any other metadata. The option samplesMetadata in the REST api, or the param --samples-metadata in the CLI was returning this metadata instead of the variants.

Extending the QueryResult as VariantQueryResult we can add there the list of samples in the same order as their genotypes.

j-coll commented 7 years ago

Will need to add a Mixin to the VariantClient to parse the List from the QueryResponse as List

    public static class QueryResponseMixing<T> {
        @JsonDeserialize(contentAs = VariantQueryResult.class)
        private List<QueryResult<T>> response;
    }