There is a newer version of this record available.

Dataset Open Access

# Code and data archive for Nettle et al. 'Consequences of measurement error in qPCR telomere data: A simulation study'

Nettle, Daniel

### JSON Export

{
"files": [
{
"self": "https://zenodo.org/api/files/02bd048b-73a2-40db-b377-a845148d508a/dataset1.csv"
},
"checksum": "md5:e4b9d1dc9e3b4d569f26d057b08b8507",
"bucket": "02bd048b-73a2-40db-b377-a845148d508a",
"key": "dataset1.csv",
"type": "csv",
"size": 81368
},
{
"self": "https://zenodo.org/api/files/02bd048b-73a2-40db-b377-a845148d508a/dataset2.csv"
},
"checksum": "md5:0d75626481beef56dbc4cc6e444ab679",
"bucket": "02bd048b-73a2-40db-b377-a845148d508a",
"key": "dataset2.csv",
"type": "csv",
"size": 2101
},
{
"self": "https://zenodo.org/api/files/02bd048b-73a2-40db-b377-a845148d508a/paper.results.r"
},
"checksum": "md5:1b145c5d0d0f7f0fc8f8cd84489fc4b2",
"bucket": "02bd048b-73a2-40db-b377-a845148d508a",
"key": "paper.results.r",
"type": "r",
"size": 15617
},
{
"self": "https://zenodo.org/api/files/02bd048b-73a2-40db-b377-a845148d508a/simulation.functions.r"
},
"checksum": "md5:e3a09a06957daf15b9457354c9a4f7da",
"bucket": "02bd048b-73a2-40db-b377-a845148d508a",
"key": "simulation.functions.r",
"type": "r",
"size": 6076
}
],
"owners": [
32062
],
"doi": "10.5281/zenodo.1994387",
"stats": {
"unique_views": 19.0,
"views": 21.0,
"version_unique_views": 25.0,
"volume": 1148985.0,
"version_views": 30.0,
"version_volume": 2034513.0
},
"doi": "https://doi.org/10.5281/zenodo.1994387",
"conceptdoi": "https://doi.org/10.5281/zenodo.1994386",
"bucket": "https://zenodo.org/api/files/02bd048b-73a2-40db-b377-a845148d508a",
"html": "https://zenodo.org/record/1994387",
"latest_html": "https://zenodo.org/record/2615735",
"latest": "https://zenodo.org/api/records/2615735"
},
"conceptdoi": "10.5281/zenodo.1994386",
"created": "2018-12-06T09:39:09.854789+00:00",
"updated": "2019-04-10T00:56:02.879720+00:00",
"conceptrecid": "1994386",
"revision": 6,
"id": 1994387,
"access_right_category": "success",
"doi": "10.5281/zenodo.1994387",
"description": "<p>Code and data for&nbsp;Nettle et al. &#39;Consequences of measurement error in qPCR telomere data: A simulation study&#39;</p>\n\n<p>Main simulation functions are contained in the script &lsquo;simulation.functions.r&rsquo;. When called, these functions (listed below) return datasets with requested properties containing both the ideal values of the quantities (Cqs, TS, etc.), and their post-error measured values. This allows the user to determine the differences between ideal and measured values, and perform other analyses. All simulation parameter values are user-specifiable. The script &lsquo;paper.results.r&rsquo; reproduces all the figures and simulation results from the main paper. &#39;paper.results.r&#39; also reads in the two .csv files of empirical data (dataset1 and dataset2).</p>\n\n<p>Datasets consist of observations from <em>n</em> individuals. The steps common to all of the simulation functions are as follows:</p>\n\n<ul>\n\t<li>A vector of <em>n </em>true single copy gene abundances, <em>true.dna.scg</em> is defined, drawn from a normal distribution with mean <em>b</em> and standard deviation <em>var.sample.size</em> (<em>b </em>is a constant).</li>\n\t<li>A vector of <em>n </em>relative telomere lengths, <em>true.telo.var</em> is defined, drawn from a normal distribution with mean 1 and standard deviation <em>telomere.var.</em></li>\n\t<li>Hence, the true abundance of the telomere sequence is defined, as <em>a*true.dna.scg*true.telo.var</em>. Here, <em>a</em> is a scaling constant representing how many copies of the telomeric sequence there are per single copy gene in the average sample.</li>\n\t<li>Ideal Cq values for both reactions are defined as <em>f &ndash; log<sub>2</sub>(true.dna.scg)</em> and <em>f &ndash; log<sub>2</sub>(true.dna.telo),</em> where <em>f</em> is a constant representing the chosen fluorescence threshold.</li>\n\t<li>Measurement errors in the Cqs are generated from a normal distribution with mean 0; standard deviations given by <em>error.scg</em> and <em>error.telo</em>; and a correlation between <em>error.scg</em> and <em>error.telo</em> given by <em>error.cor</em>.</li>\n\t<li>Hence, measured Cqs are generated, which can be compared to the ideal Cq values.</li>\n\t<li>TS ratios are calculated both on the measured Cqs, and the ideal ones.</li>\n</ul>\n\n<p>The following functions are available. Specify desired parameter values in the parenthesis, e.g. <em>generate.one.dataset(n=10000, error.telo=0.1, error.scg=0.1, error.cor=0</em>). Default values in the simulation functions are generally those given in table 1 of the main paper.</p>\n\n<ul>\n\t<li><em>generate.one.dataset()</em> returns a simple dataset (one telomere measurement per individual) for chosen values of all the variables described in section 1. As well as ideal and measured Cqs, it returns ideal and measured TS ratios. It also returns the difference between the ideal and measured TS ratio, calculated two ways, computed (<em>error.computed</em>), and using equation (11) of online supplement 1 (<em>error.analytic</em>). Both methods produce the same number. This was included as an additional check of correctness of the simulation.</li>\n\t<li><em>generate.repeated.measure()</em> returns a dataset where telomere lengths from the same individuals are measured twice, via two independent biological samples, and the true telomere length of each individual is assumed not to have changed at all. The data frame it returns is as for <em>generate.one.dataset()</em>, except that there are two of each variable (e.g. <em>true.ts.1, true.ts.2, measured.ts.1, measured.ts.2</em>, etc.).</li>\n\t<li><em>calculate.repeatability()</em> calculates the repeatability of the measured T/S ratio (intra-class correlation coefficient) when <em>generate.repeated.measure()</em> is implemented using the given values for all the parameters. It requires prior installation of R package &lsquo;irr&rsquo;.</li>\n\t<li><em>compare.repeatability()</em> returns the repeatability of the T/S ratio and the repeatability calculated on the raw Cq for the telomere reaction, for the given parameter values.</li>\n</ul>\n\n<p>&nbsp;</p>",
"id": "CC-BY-4.0"
},
"title": "Code and data archive for Nettle et al. 'Consequences of measurement error in qPCR telomere data: A simulation study'",
"relations": {
"version": [
{
"count": 3,
"index": 0,
"parent": {
"pid_type": "recid",
"pid_value": "1994386"
},
"is_last": false,
"last_child": {
"pid_type": "recid",
"pid_value": "2615735"
}
}
]
},
"grants": [
{
"code": "666669",
"self": "https://zenodo.org/api/grants/10.13039/501100000780::666669"
},
"title": "The effects of early-life adversity on cognition: A comparative approach.",
"acronym": "COMSTAR",
"program": "H2020",
"funder": {
"doi": "10.13039/501100000780",
"acronyms": [
"EC"
],
"name": "European Commission",
"self": "https://zenodo.org/api/funders/10.13039/501100000780"
}
}
}
],
"publication_date": "2018-12-06",
"creators": [
{
"affiliation": "Newcastle University",
"name": "Nettle, Daniel"
}
],
"access_right": "open",
"resource_type": {
"type": "dataset",
"title": "Dataset"
},
"related_identifiers": [
{
"scheme": "doi",
"relation": "isVersionOf",
"identifier": "10.5281/zenodo.1994386"
}
]
}
}
30
44
views