<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>R: Linear relation for SNVs</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="R.css" />
</head><body>

<table width="100%" summary="page for l.s"><tr><td>l.s</td><td style="text-align: right;">R Documentation</td></tr></table>

<h2>Linear relation for SNVs</h2>

<h3>Description</h3>

<p>l.s is the linear relation between B allele frequence and the proportion of SNVs mutation(PS).
</p>


<h3>Usage</h3>

<pre>
l.s(cnt, cnb1, cnb2, pc = 0, ps = NULL, baf = NULL)
</pre>


<h3>Arguments</h3>

<table summary="R argblock">
<tr valign="top"><td><code>cnt</code></td>
<td>
<p>is number with the total copy number after the CNAs mutation.</p>
</td></tr>
<tr valign="top"><td><code>cnb1</code></td>
<td>
<p>is number with the B copy number of two types of periods. The first period, the proportion of CNAs mutation is more than the proportion of SNVs mutation then cnb1 is B copy number after SNVs mutation. The second period, the proportion of CNAs mutation is less than the proportion of SNVs mutation then cnb1 is B copy number between the SNVs mutation and CNAs mutation.</p>
</td></tr>
<tr valign="top"><td><code>cnb2</code></td>
<td>
<p>is number with the B copy number of two types of periods. The first period, the proportion of CNAs mutation is less than the proportion of SNVs mutation then cnb1 is B copy number after CNAs mutation. The second period, the proportion of CNAs mutation is more than the proportion of SNVs mutation then cnb1 is B copy number between the CNAs mutation and SNVs mutation.</p>
</td></tr>
<tr valign="top"><td><code>pc</code></td>
<td>
<p>is number with the proportion of CNAs mutation and the default is 0.</p>
</td></tr>
<tr valign="top"><td><code>ps</code></td>
<td>
<p>is number with the proportion of SNVs mutation and the default is NULL.</p>
</td></tr>
<tr valign="top"><td><code>baf</code></td>
<td>
<p>is number with the B allele frequence and the default is NULL.</p>
</td></tr>
</table>


<h3>Details</h3>

<p>l.s is bidirection function. The first function is given the proportion of SNVs mutation(ps) to predict the B allele frequence(baf). The second function is given the B allele frequence(baf) to predict the proportion of SNVs mutation(ps).
</p>


<h3>Value</h3>

<p>baf is number with B allele frequence(baf) if the input is given the proportion of SNVs mutation(ps).
</p>
<p>ps is number with the proportion of SNVs mutation(ps) if the input is given the B allele frequence(baf).
</p>


<h3>Author(s)</h3>

<p>Peter Wu (peter123wu0@gmail.com)
</p>


</body></html>
