# Sample

## Overview

Sample data model hosts information about any biological material, normally extracted from an *Individual*, that is used for a particular analysis. This is the main data model, it stores the most basic and important information.

### Summary

| Field            |                                         Create                                        |                                         Update                                        |                                         Unique                                        |                                        Required                                       |
| ---------------- | :-----------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------: | :-----------------------------------------------------------------------------------: |
| id               | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |
| uuid             |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| source           | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| processing       | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| collection       | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| qualityControl   | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| creationDate     | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| modificationDate | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| description      | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| somatic          | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| phenotypes       | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| individualId     | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| fileIds          | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| cohortIds        | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| status           | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| attributes       | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) | ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/yes.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| release          |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| version          |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |
| internal         |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |  ![](https://github.com/opencb/opencga/blob/develop/docs/data-models/no.png?raw=true) |

## Data Model

### Sample

You can find the Java code [here](https://github.com/opencb/opencga/tree/TASK-1587/opencga-core/src/main/java/org/opencb/opencga/core/models/sample/Sample.java).

| Field                                                                                                                                                                                    | Description                                                                                                                                                                                                                          |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| <p><strong>id</strong><br><em>String</em><br></p>                                                                                                                                        | Sample data model hosts information about any biological material, normally extracted from an *Individual*, that is used for a particular analysis. This is the main data model, it stores the most basic and important information. |
| <p><strong>uuid</strong><br><em>String</em><br></p>                                                                                                                                      | Unique 32-character identifier assigned automatically by OpenCGA.                                                                                                                                                                    |
| <p><strong>source</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#externalsource"><em>ExternalSource</em></a><br><br><em>since</em>: 2.2</p>                     | The external source from where the example was imported.                                                                                                                                                                             |
| <p><strong>processing</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#sampleprocessing"><em>SampleProcessing</em></a><br><br><em>since</em>: 2.0</p>             | Describes how the sample was processed in the lab.                                                                                                                                                                                   |
| <p><strong>collection</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#samplecollection"><em>SampleCollection</em></a><br><br><em>since</em>: 2.0</p>             | Describes how the sample was collected.                                                                                                                                                                                              |
| <p><strong>qualityControl</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#samplequalitycontrol"><em>SampleQualityControl</em></a><br><br><em>since</em>: 2.0</p> | Contains different metrics to evaluate the quality of the sample.                                                                                                                                                                    |
| <p><strong>creationDate</strong><br><em>String</em><br><br><em>since</em>: 1.0</p>                                                                                                       | Autogenerated date following the format YYYYMMDDhhmmss containing the date when the entry was first registered.                                                                                                                      |
| <p><strong>modificationDate</strong><br><em>String</em><br><br><em>since</em>: 1.0</p>                                                                                                   | Autogenerated date following the format YYYYMMDDhhmmss containing the date when the entry was last modified.                                                                                                                         |
| <p><strong>description</strong><br><em>String</em><br></p>                                                                                                                               | Users may provide a description for the entry.                                                                                                                                                                                       |
| <p><strong>somatic</strong><br><em>boolean</em><br></p>                                                                                                                                  | Describes if the sample is somatic or not .                                                                                                                                                                                          |
| <p><strong>phenotypes</strong><br><em>List<</em><a href="https://docs.opencga.opencb.org/data-models/sample#phenotype"><em>Phenotype</em></a><em>></em><br></p>                          | List of phenotypes .                                                                                                                                                                                                                 |
| <p><strong>individualId</strong><br><em>String</em><br></p>                                                                                                                              | Individual id of the sample.                                                                                                                                                                                                         |
| <p><strong>fileIds</strong><br><em>List\<String></em><br></p>                                                                                                                            | File ids of the sample.                                                                                                                                                                                                              |
| <p><strong>cohortIds</strong><br><em>List\<String></em><br></p>                                                                                                                          | Cohort ids of the sample.                                                                                                                                                                                                            |
| <p><strong>status</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#status"><em>Status</em></a><br><br><em>since</em>: 2.0</p>                                     | Cohort ids of the sample.                                                                                                                                                                                                            |
| <p><strong>attributes</strong><br><em>Map\<String,Object></em><br><br><em>since</em>: 1.0</p>                                                                                            | You can use this field to store any other information, keep in mind this is not indexed so you cannot search by attributes.                                                                                                          |
| <p><strong>release</strong><br><em>int</em><br></p>                                                                                                                                      | An integer describing the current data release.                                                                                                                                                                                      |
| <p><strong>version</strong><br><em>int</em><br></p>                                                                                                                                      | Autoincremental version assigned to the registered entry. By default, updates does not create new versions. To enable versioning, users must set the `incVersion` flag from the /update web service when updating the document.      |
| <p><strong>internal</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#sampleinternal"><em>SampleInternal</em></a><br><br><em>since</em>: 2.0</p>                   | Sample internal information.                                                                                                                                                                                                         |

### SampleCollection

You can find the Java code [here](https://github.com/opencb/opencga/tree/TASK-1587/opencga-core/src/main/java/org/opencb/opencga/core/models/sample/SampleCollection.java).

| Field                                                                                                                                                                               | Description                                            |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| <p><strong>from</strong><br><em>List<</em><a href="https://docs.opencga.opencb.org/data-models/sample#ontologytermannotation"><em>OntologyTermAnnotation</em></a><em>></em><br></p> | OntologyTermAnnotation list.                           |
| <p><strong>type</strong><br><em>String</em><br></p>                                                                                                                                 | Type of the sample collection.                         |
| <p><strong>quantity</strong><br><em>String</em><br></p>                                                                                                                             | Quantity collected for the sample.                     |
| <p><strong>method</strong><br><em>String</em><br></p>                                                                                                                               | Describes which method was used to collect the sample. |
| <p><strong>date</strong><br><em>String</em><br></p>                                                                                                                                 | Date when the sample was collected.                    |
| <p><strong>attributes</strong><br><em>Map\<String,Object></em><br></p>                                                                                                              | Attributes of the sample collection.                   |

### Status

You can find the Java code [here](https://github.com/opencb/biodata/tree/develop/biodata-models/src/main/java/org/opencb/biodata/models/common/Status.java).

### SampleProcessing

You can find the Java code [here](https://github.com/opencb/opencga/tree/TASK-1587/opencga-core/src/main/java/org/opencb/opencga/core/models/sample/SampleProcessing.java).

| Field                                                                                                                                                          | Description                                                                   |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| <p><strong>product</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#ontologytermannotation"><em>OntologyTermAnnotation</em></a><br></p> | Describes which product was used to process the sample in the lab.            |
| <p><strong>preparationMethod</strong><br><em>String</em><br></p>                                                                                               | Describes which preparation method was used to process the sample in the lab. |
| <p><strong>preparationMethod</strong><br><em>String</em><br></p>                                                                                               | Describes which extraction method was used to process the samplein the lab.   |
| <p><strong>labSampleId</strong><br><em>String</em><br></p>                                                                                                     | Original id has the sample in the lab.                                        |
| <p><strong>quantity</strong><br><em>String</em><br></p>                                                                                                        | Number of process has done the sample.                                        |
| <p><strong>date</strong><br><em>String</em><br></p>                                                                                                            | Date when the sample was processed in the lab.                                |
| <p><strong>attributes</strong><br><em>Map\<String,Object></em><br></p>                                                                                         | Attributes of the processing.                                                 |

### SampleInternal

You can find the Java code [here](https://github.com/opencb/opencga/tree/TASK-1587/opencga-core/src/main/java/org/opencb/opencga/core/models/sample/SampleInternal.java).

| Field                                                                                                                                         | Description                                           |
| --------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- |
| <p><strong>RgaIndex.rga</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#rgaindex"><em>RgaIndex</em></a><br></p>       | Rga index for Sample internal.                        |
| <p><strong>status</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#internalstatus"><em>InternalStatus</em></a><br></p> | Status of the internal object.                        |
| <p><strong>registrationDate</strong><br><em>String</em><br></p>                                                                               | Registration date of the internal object.             |
| <p><strong>lastModified</strong><br><em>String</em><br></p>                                                                                   | Date of the last modification of the internal object. |

### SampleQualityControl

You can find the Java code [here](https://github.com/opencb/opencga/tree/TASK-1587/opencga-core/src/main/java/org/opencb/opencga/core/models/sample/SampleQualityControl.java).

| Field                                                                                                                                                                                  | Description                                       |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------- |
| <p><strong>files</strong><br><em>List\<String></em><br></p>                                                                                                                            | Files used for the quality control of the sample. |
| <p><strong>comments</strong><br><em>List<</em><a href="https://docs.opencga.opencb.org/data-models/sample#clinicalcomment"><em>ClinicalComment</em></a><em>></em><br></p>              | Comments for the quality control of the sample.   |
| <p><strong>variant</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#samplevariantqualitycontrolmetrics"><em>SampleVariantQualityControlMetrics</em></a><br></p> | Describes variant quality control.                |

### Phenotype

You can find the Java code [here](https://github.com/opencb/biodata/tree/develop/biodata-models/src/main/java/org/opencb/biodata/models/clinical/Phenotype.java).

| Field                                                                  | Description                                                                                        |
| ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| <p><strong>id</strong><br><em>String</em><br></p>                      | Id to identify the object                                                                          |
| <p><strong>ageOfOnset</strong><br><em>String</em><br></p>              | Indicates the age of on set of the phenotype                                                       |
| <p><strong>status</strong><br><em>Status</em><br></p>                  | Status of phenotype OBSERVED, NOT\_OBSERVED, UNKNOWN                                               |
| <p><strong>name</strong><br><em>String</em><br></p>                    | Object name                                                                                        |
| <p><strong>description</strong><br><em>String</em><br></p>             | Users may provide a description for the entry.                                                     |
| <p><strong>source</strong><br><em>String</em><br></p>                  | Ontology source                                                                                    |
| <p><strong>url</strong><br><em>String</em><br></p>                     | Ontology url                                                                                       |
| <p><strong>attributes</strong><br><em>Map\<String,String></em><br></p> | Dictionary that can be customised by users to store any additional information users may require.. |

### ExternalSource

You can find the Java code [here](https://github.com/opencb/opencga/tree/TASK-1587/opencga-core/src/main/java/org/opencb/opencga/core/models/common/ExternalSource.java).

| Field                                                      | Description           |
| ---------------------------------------------------------- | --------------------- |
| <p><strong>id</strong><br><em>String</em><br></p>          | Source ID...          |
| <p><strong>name</strong><br><em>String</em><br></p>        | Source name...        |
| <p><strong>description</strong><br><em>String</em><br></p> | Source description... |
| <p><strong>source</strong><br><em>String</em><br></p>      | Source ...            |
| <p><strong>url</strong><br><em>String</em><br></p>         | Source ID             |

### ClinicalComment

You can find the Java code [here](https://github.com/opencb/biodata/tree/develop/biodata-models/src/main/java/org/opencb/biodata/models/clinical/ClinicalComment.java).

| Field                                                      | Description                           |
| ---------------------------------------------------------- | ------------------------------------- |
| <p><strong>author</strong><br><em>String</em><br></p>      | Clinical comment author               |
| <p><strong>message</strong><br><em>String</em><br></p>     | Clinical comment message              |
| <p><strong>tags</strong><br><em>List\<String></em><br></p> | List of tags for the clinical comment |
| <p><strong>date</strong><br><em>String</em><br></p>        | Date of the clinical comment          |

### RgaIndex

You can find the Java code [here](https://github.com/opencb/opencga/tree/TASK-1587/opencga-core/src/main/java/org/opencb/opencga/core/models/common/RgaIndex.java).

| Field                                                 | Description                                                                                      |
| ----------------------------------------------------- | ------------------------------------------------------------------------------------------------ |
| <p><strong>status</strong><br><em>Status</em><br></p> | Status of the Rga index NOT\_INDEXED, INDEXED, INVALID\_PERMISSIONS, INVALID\_METADATA, INVALID. |
| <p><strong>date</strong><br><em>String</em><br></p>   | Date of Rga index.                                                                               |

### InternalStatus

You can find the Java code [here](https://github.com/opencb/opencga/tree/TASK-1587/opencga-core/src/main/java/org/opencb/opencga/core/models/common/InternalStatus.java).

### OntologyTermAnnotation

You can find the Java code [here](https://github.com/opencb/biodata/tree/develop/biodata-models/src/main/java/org/opencb/biodata/models/core/OntologyTermAnnotation.java).

| Field                                                                  | Description                                                                                        |
| ---------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| <p><strong>id</strong><br><em>String</em><br></p>                      | Id to identify the object                                                                          |
| <p><strong>name</strong><br><em>String</em><br></p>                    | Object name                                                                                        |
| <p><strong>description</strong><br><em>String</em><br></p>             | Users may provide a description for the entry.                                                     |
| <p><strong>source</strong><br><em>String</em><br></p>                  | Ontology source                                                                                    |
| <p><strong>url</strong><br><em>String</em><br></p>                     | Ontology url                                                                                       |
| <p><strong>attributes</strong><br><em>Map\<String,String></em><br></p> | Dictionary that can be customised by users to store any additional information users may require.. |

### SampleVariantQualityControlMetrics

You can find the Java code [here](https://github.com/opencb/opencga/tree/TASK-1587/opencga-core/src/main/java/org/opencb/opencga/core/models/sample/SampleVariantQualityControlMetrics.java).

| Field                                                                                                                                                                                   | Description                                          |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------- |
| <p><strong>variantStats</strong><br><em>List<</em><a href="https://docs.opencga.opencb.org/data-models/sample#sampleqcvariantstats"><em>SampleQcVariantStats</em></a><em>></em><br></p> | Variant stats for the quality control of the sample. |
| <p><strong>signatures</strong><br><em>List<</em><a href="https://docs.opencga.opencb.org/data-models/sample#signature"><em>Signature</em></a><em>></em><br></p>                         | Signature for the quality control of the sample.     |
| <p><strong>genomePlot</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#genomeplot"><em>GenomePlot</em></a><br></p>                                               | Genome plot for the quality control of the sample.   |
| <p><strong>files</strong><br><em>List\<String></em><br></p>                                                                                                                             | File for the quality control metrics of the sample.  |

### GenomePlot

You can find the Java code [here](https://github.com/opencb/biodata/tree/develop/biodata-models/src/main/java/org/opencb/biodata/models/clinical/qc/GenomePlot.java).

| Field                                                                                                                                             | Description                                    |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| <p><strong>id</strong><br><em>String</em><br></p>                                                                                                 | Id to identify the object                      |
| <p><strong>description</strong><br><em>String</em><br></p>                                                                                        | Users may provide a description for the entry. |
| <p><strong>config</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#genomeplotconfig"><em>GenomePlotConfig</em></a><br></p> | Config of the genomePlot                       |
| <p><strong>file</strong><br><em>String</em><br></p>                                                                                               | File of the genomePlot                         |

### SampleQcVariantStats

You can find the Java code [here](https://github.com/opencb/biodata/tree/develop/biodata-models/src/main/java/org/opencb/biodata/models/clinical/qc/SampleQcVariantStats.java).

| Field                                                             | Description                                    |
| ----------------------------------------------------------------- | ---------------------------------------------- |
| <p><strong>id</strong><br><em>String</em><br></p>                 | Id to identify the object                      |
| <p><strong>description</strong><br><em>String</em><br></p>        | Users may provide a description for the entry. |
| <p><strong>query</strong><br><em>Map\<String,String></em><br></p> | Map for query                                  |
| <p><strong>stats</strong><br><em>SampleVariantStats</em><br></p>  | Stats result set                               |
| <p><strong>sampleId</strong><br><em>String</em><br></p>           | Stats result set                               |

### Signature

You can find the Java code [here](https://github.com/opencb/biodata/tree/develop/biodata-models/src/main/java/org/opencb/biodata/models/clinical/qc/Signature.java).

| Field                                                                                                                                                                         | Description                                    |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| <p><strong>id</strong><br><em>String</em><br></p>                                                                                                                             | Id to identify the object                      |
| <p><strong>description</strong><br><em>String</em><br></p>                                                                                                                    | Users may provide a description for the entry. |
| <p><strong>query</strong><br><em>ObjectMap</em><br></p>                                                                                                                       | Map for query                                  |
| <p><strong>type</strong><br><em>String</em><br></p>                                                                                                                           | Signature type SNV, INDEL...                   |
| <p><strong>counts</strong><br><em>List<</em><a href="https://docs.opencga.opencb.org/data-models/sample#genomecontextcount"><em>GenomeContextCount</em></a><em>></em><br></p> | List of GenomeContextCount                     |
| <p><strong>files</strong><br><em>List\<String></em><br></p>                                                                                                                   | List of files of signature                     |
| <p><strong>fitting</strong><br><a href="https://docs.opencga.opencb.org/data-models/sample#signaturefitting"><em>SignatureFitting</em></a><br></p>                            | Signature fitting                              |

### GenomePlotConfig

You can find the Java code [here](https://github.com/opencb/biodata/tree/develop/biodata-models/src/main/java/org/opencb/biodata/models/clinical/qc/GenomePlotConfig.java).

| Field                                                                                                                                                                   | Description                                                |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| <p><strong>title</strong><br><em>String</em><br></p>                                                                                                                    | Title of the genome plot configuration                     |
| <p><strong>density</strong><br><em>String</em><br></p>                                                                                                                  | Density of the genome plot configuration                   |
| <p><strong>generalQuery</strong><br><em>Map\<String,String></em><br></p>                                                                                                | Map for the general query of the genome plot configuration |
| <p><strong>tracks</strong><br><em>List<</em><a href="https://docs.opencga.opencb.org/data-models/sample#genomeplottrack"><em>GenomePlotTrack</em></a><em>></em><br></p> | List of GenomePlotTrack                                    |

### SignatureFitting

You can find the Java code [here](https://github.com/opencb/biodata/tree/develop/biodata-models/src/main/java/org/opencb/biodata/models/clinical/qc/SignatureFitting.java).

| Field                                                           | Description                                |
| --------------------------------------------------------------- | ------------------------------------------ |
| <p><strong>method</strong><br><em>String</em><br></p>           | Method used to fit the signature           |
| <p><strong>signatureSource</strong><br><em>String</em><br></p>  | Source of the fitting signature            |
| <p><strong>signatureVersion</strong><br><em>String</em><br></p> | Signature version of the fitting signature |
| <p><strong>scores</strong><br><em>List\<Score></em><br></p>     | Scores of the fitting signature            |
| <p><strong>coeff</strong><br><em>double</em><br></p>            | Coefficient of the fitting signature       |
| <p><strong>file</strong><br><em>String</em><br></p>             | Files of the fitting signature             |

### GenomeContextCount

You can find the Java code [here](https://github.com/opencb/biodata/tree/develop/biodata-models/src/main/java/org/opencb/biodata/models/clinical/qc/Signature/GenomeContextCount.java).

| Field                                                  | Description             |
| ------------------------------------------------------ | ----------------------- |
| <p><strong>context</strong><br><em>String</em><br></p> | Genome context to count |
| <p><strong>total</strong><br><em>int</em><br></p>      | Counted integer         |

### GenomePlotTrack

You can find the Java code [here](https://github.com/opencb/biodata/tree/develop/biodata-models/src/main/java/org/opencb/biodata/models/clinical/qc/GenomePlotTrack.java).

| Field                                                             | Description                     |
| ----------------------------------------------------------------- | ------------------------------- |
| <p><strong>type</strong><br><em>String</em><br></p>               | Genome Plot Track Type          |
| <p><strong>description</strong><br><em>String</em><br></p>        | Genome Plot Track description   |
| <p><strong>query</strong><br><em>Map\<String,String></em><br></p> | Genome Plot Track map for query |
