| 1 |
\documentclass[twoside]{article} |
| 2 |
\usepackage{amsmath,amssymb} |
| 3 |
\usepackage{moreverb} |
| 4 |
\usepackage{fancyheadings} |
| 5 |
\usepackage{ulem} |
| 6 |
\usepackage{parskip} |
| 7 |
\usepackage{calc,ifthen,epsfig} |
| 8 |
\sloppy |
| 9 |
|
| 10 |
\begin{document} |
| 11 |
|
| 12 |
% See page 63-64, LaTeX Companion |
| 13 |
% |
| 14 |
% leftmargin controls the left margin for EVERYTHING in the list! |
| 15 |
% |
| 16 |
\newcommand{\entrylabel}[1]{\mbox{\texttt{#1:}}\hfil} |
| 17 |
\newenvironment{entry} |
| 18 |
{\begin{list}{}% |
| 19 |
{\renewcommand{\makelabel}{\entrylabel}% |
| 20 |
%\setlength{\leftmargin}{1.5in}% |
| 21 |
}} |
| 22 |
{\end{list}} |
| 23 |
|
| 24 |
% The first parbox width controls the indent on the first text line |
| 25 |
% The makebox width seems to do nothing. |
| 26 |
\newcommand{\Lentrylabel}[1]{% |
| 27 |
{\parbox[b]{0pt}{\makebox[0pt][l]{\texttt{#1:}}\\}}\hfil\relax} |
| 28 |
\newenvironment{Lentry} |
| 29 |
{\renewcommand{\entrylabel}{\Lentrylabel}\begin{entry}} |
| 30 |
{\end{entry}} |
| 31 |
|
| 32 |
\title{Filtering mRNA signal} |
| 33 |
\author{Brian P. Walenz} |
| 34 |
\maketitle |
| 35 |
|
| 36 |
\pagestyle{fancy} |
| 37 |
|
| 38 |
\rhead[Brian Walenz]{Brian Walenz} |
| 39 |
\chead[Filtering mRNA signal]{Filtering mRNA signal} |
| 40 |
\lhead[\today]{\today} |
| 41 |
|
| 42 |
\normalem |
| 43 |
|
| 44 |
\begin{abstract} |
| 45 |
Given signals detected by chaining 20-mers, a method is presented for |
| 46 |
deciding which signals potentially contain real matches. |
| 47 |
\end{abstract} |
| 48 |
|
| 49 |
\section{What is a signal} |
| 50 |
|
| 51 |
Signal has three values associated with it. The amount 'covered', the |
| 52 |
amount 'matched' and the total 'length'. |
| 53 |
% |
| 54 |
The amount covered is the number of |
| 55 |
bases in the mRNA that are contained in least one mer. |
| 56 |
% |
| 57 |
The amount matched is the number of paired bases (for example, position |
| 58 |
$i$ in the cDNA paired with position $j$ in the genomic) covered by a mer. |
| 59 |
% |
| 60 |
The length is the number of mers in the mRNA (roughly equivalent to the |
| 61 |
number of bases in the mRNA that could be covered by a mer, but easier |
| 62 |
to compute). |
| 63 |
|
| 64 |
From these, we can derive two scores, the coverage and the multiplicity. |
| 65 |
The coverage, $\frac{covered}{length}$, represents the fraction of the mRNA |
| 66 |
that we found, while the multiplicity, $\frac{matched}{covered}$, represents |
| 67 |
the amount of the mRNA that we found too many times. |
| 68 |
|
| 69 |
A high multiplicity usually indicates a repeat-containing mRNA. High |
| 70 |
multiplicity and high coverage can indicate that the mRNA is not cDNA. |
| 71 |
|
| 72 |
\section{Filter} |
| 73 |
|
| 74 |
In order to filter signals, we need to decide, for each mRNA, which |
| 75 |
signals are bad, and which are good (duh!), which means that we'll |
| 76 |
need to look at {\em all} signals for a single mRNA. |
| 77 |
|
| 78 |
For the filter presented below, we need to know the best and worst |
| 79 |
coverage values that occur for any signal associated with a specific |
| 80 |
mRNA. Once those are known, the signals can be filtered in any order. |
| 81 |
This is important in the case where the signals are detected |
| 82 |
chromosome by chromosome. Instead of sorting all signals, we can save |
| 83 |
the best and worst coverage for each mRNA. |
| 84 |
|
| 85 |
\begin{figure} |
| 86 |
\begin{center} |
| 87 |
\begin{tabular}{|c|c|c|l|} |
| 88 |
\hline |
| 89 |
Switch & Variable & Default Value & Description \\ |
| 90 |
\hline |
| 91 |
\hline |
| 92 |
-l & $L$ & 0.2 & \text{Signal spread low range} \\ |
| 93 |
-h & $H$ & 0.6 & \text{Signal spread high range} \\ |
| 94 |
-v & $V$ & 0.3 & \text{Pass value} \\ |
| 95 |
-m & $M$ & 0.3 & \text{Signal quality floor} \\ |
| 96 |
-mc & $M_c$ & 0.2 & \text{Minimum signal quality} \\ |
| 97 |
-ml & $M_l$ & 150 & \text{Minimum signal size} \\ |
| 98 |
\hline |
| 99 |
\end{tabular} |
| 100 |
\end{center} |
| 101 |
\caption{Parameters, default values and descriptions} |
| 102 |
\label{table:defvalues} |
| 103 |
\end{figure} |
| 104 |
|
| 105 |
The filter has six parameters, summarized in Table~/ref{table:defvals}. |
| 106 |
|
| 107 |
If the signals for a specific mRNA are all very similar, it is |
| 108 |
probable that the weaker signals are weak only because of a few |
| 109 |
mismatches that break 20-mers. In this case, we cannot reliably pick |
| 110 |
the signals that are true, and should consider all of them. |
| 111 |
|
| 112 |
On the other hand, if there is a large range in the quality of signals, |
| 113 |
we can safely discard low scoring signals, and still be confident that |
| 114 |
we will find the good stuff. |
| 115 |
|
| 116 |
Therefore, the filter will discard no signals if the range in quality |
| 117 |
values is small, and will gradually discard more, proportional to the |
| 118 |
range. So that we don't discard too much, we limit the increase in |
| 119 |
filtering to $V$ (0.3). |
| 120 |
\begin{align*} |
| 121 |
h &= bestCoverage - worstCoverage \\ |
| 122 |
p &= \begin{cases} |
| 123 |
0.0 & \text{if $h \le L$} \\ |
| 124 |
V * \frac{h-L}{H-L} & \text{if $L < h < H$} \\ |
| 125 |
V & \text{if $H \le h$} |
| 126 |
\end{cases} \\ |
| 127 |
c &= min(worstCoverage + p \cdot h, M) |
| 128 |
\end{align*} |
| 129 |
|
| 130 |
\begin{figure} |
| 131 |
\begin{center} |
| 132 |
\epsfig{figure=mRNAfilt.eps, silent=, width=4.5in} |
| 133 |
\end{center} |
| 134 |
\caption{The $p$ curve.} |
| 135 |
\label{fig:pcurve} |
| 136 |
\end{figure} |
| 137 |
|
| 138 |
$p$ is the amount of filtering, ranging from minimum (0.0) to maximum |
| 139 |
($V$, a parameter). |
| 140 |
|
| 141 |
The $c$ value computed above is the filtering threshold. Signals with |
| 142 |
coverage below $c$ are considered weak, and are discarded. |
| 143 |
|
| 144 |
If the score range is small ($\le L$), then $c$ will be |
| 145 |
$worstCoverage$, and we do no filtering. If the score range is large |
| 146 |
($\ge H$), then $c$ will be $M$ of the best score. $c$ is the minimum |
| 147 |
coverage that will be accepted. It is derived from the range of |
| 148 |
scores, not the number of scores. |
| 149 |
|
| 150 |
Finally, it is possible that {\em all} signals are good. If we used the |
| 151 |
above filtering we would be discarding the low scoring (but still valid) |
| 152 |
signals. To overcome this, absolute limits $M_c$ and $M_l$ are enforced. |
| 153 |
|
| 154 |
A signal is saved if both of the following conditions are met: |
| 155 |
\begin{enumerate} |
| 156 |
\item ($c <= coverage$) |
| 157 |
\item ($M_c <= coverage$) or ($M_l <= coveredBases$) |
| 158 |
\end{enumerate} |
| 159 |
|
| 160 |
\section{Results} |
| 161 |
This filter is overly permissive, throwing out only signals that are |
| 162 |
obviously garbage. |
| 163 |
|
| 164 |
\end{document} |