| 1 |
\documentclass[twoside,11pt]{book} |
| 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 |
% |
| 11 |
% a mathematican is a machine that transforms coffee into theorems |
| 12 |
% a software engineer is a machine that transforms sugar and caffiene into software |
| 13 |
% a manager is a machine that transforms people into power point |
| 14 |
% |
| 15 |
|
| 16 |
\usepackage{longtable} |
| 17 |
|
| 18 |
% A few float parameters |
| 19 |
% |
| 20 |
\renewcommand{\dbltopfraction}{0.9} |
| 21 |
\renewcommand{\dblfloatpagefraction}{0.9} |
| 22 |
%\renewcommand{\textfraction}{0.05} |
| 23 |
|
| 24 |
|
| 25 |
\begin{document} |
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
\pagestyle{fancy} |
| 30 |
|
| 31 |
\rhead[]{} |
| 32 |
\chead[ESTmapper]{ESTmapper} |
| 33 |
\lhead[\today]{\today} |
| 34 |
|
| 35 |
|
| 36 |
\newcommand{\ESTmapper}{{\sc ESTmapper}} |
| 37 |
|
| 38 |
\normalem |
| 39 |
|
| 40 |
%\title{ESTmapper documentation\\ |
| 41 |
%{\small or, why algorithmists shouldn't write manuals}} |
| 42 |
%\author{ |
| 43 |
%Liliana Florea\thanks{[email protected]}, |
| 44 |
%Brian P. Walenz\thanks{[email protected]}} |
| 45 |
% |
| 46 |
%\maketitle |
| 47 |
|
| 48 |
\tableofcontents |
| 49 |
%\listoffigures |
| 50 |
%\listoftables |
| 51 |
|
| 52 |
|
| 53 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 54 |
\chapter{Introduction} |
| 55 |
\label{chap:intro} |
| 56 |
|
| 57 |
\if false |
| 58 |
The ESTMapper is a software package designed to efficiently map large EST data |
| 59 |
sets to a target genome. For each cDNA (EST or full-length mRNA) sequence |
| 60 |
in the input set, it will determine a set of instances of the EST in the |
| 61 |
target genome in a three-stage process. Stage I, 'signal finding', is an |
| 62 |
efficient similarity search which identifies potential EST-containing regions |
| 63 |
in the reference genome. In Stage II, 'signal filtering', regions containing |
| 64 |
weak signals are removed based on the extent of the cDNA matched and the |
| 65 |
number of regions. Stage III, 'signal polishing' uses an |
| 66 |
enhanced version of Sim4 to produce spliced alignments between the |
| 67 |
query EST sequence and each of the remaining genomic regions. |
| 68 |
\fi |
| 69 |
|
| 70 |
|
| 71 |
\ESTmapper\ is a software package designed to efficiently map large |
| 72 |
cDNA data sets to a target genome. |
| 73 |
% |
| 74 |
A three-stage process is used to locate each cDNA sequence in the |
| 75 |
target genome. |
| 76 |
% |
| 77 |
% For each cDNA (EST or full-length mRNA) sequence |
| 78 |
%in the input set, \ESTmapper\ will locate the cDNA sequence in the |
| 79 |
%target genome in a three-stage process. |
| 80 |
% |
| 81 |
The first stage, {\em signal finding}, is an efficient sequence |
| 82 |
similarity search which identifies regions on the genome which could |
| 83 |
potentially contain the cDNA sequence. |
| 84 |
%potential EST-containing regions |
| 85 |
%in the reference genome. |
| 86 |
% |
| 87 |
The second stage, {\em signal filtering}, discards regions containing |
| 88 |
weak signals based on the extent of the cDNA matched and the number of |
| 89 |
candidate genomic regions. |
| 90 |
% |
| 91 |
The final stage, {\em signal polishing} uses an enhanced version of |
| 92 |
the {\tt Sim4} program to produce spliced alignments between the |
| 93 |
cDNA sequences and their associated genomic regions. |
| 94 |
|
| 95 |
\section{Features} |
| 96 |
|
| 97 |
\ESTmapper\ offers the following features for high-throughput mapping |
| 98 |
of cDNA sequences to genomic sequences: |
| 99 |
\begin{itemize} |
| 100 |
%[Input] |
| 101 |
\item Simple input presentation, as multi-fasta files. |
| 102 |
\item Requires no pre-processing of sequences (typical procedures |
| 103 |
include vector and quality trimming, contaminant screening, assigning |
| 104 |
quality values, and repeat masking). |
| 105 |
%[Output] |
| 106 |
\item Output formatted as easy-to-parse flat files. |
| 107 |
\item When converted to XML-feature files, the results can be viewed |
| 108 |
using Celera's Genome Browser, or loaded into a database. |
| 109 |
\item Output filtered into three user-specified quality levels |
| 110 |
corresponding to {\it good, full-length}, {\it good, but short} and |
| 111 |
{\it low quality}. |
| 112 |
%\item Flexible parameters for the quality of reported matches. |
| 113 |
%[USER INTERFACE] |
| 114 |
\item Choice of pre-packaged or fully customizable mapping procedures. |
| 115 |
%[Implementation] |
| 116 |
\item Parallel operation to take advantage of multi-processor environment. |
| 117 |
%[Algorithmics] |
| 118 |
\item The search stage employs a proprietary ultra-fast near-identity |
| 119 |
search program, which uses an efficient k-mer index to quickly |
| 120 |
identify match seeds. |
| 121 |
\item The combined search and filtering stages offer high sensivity at |
| 122 |
relatively low computational cost. |
| 123 |
\item The differential filtering for mRNA and EST sequences takes full |
| 124 |
advantage of their mapping characteristics to reduce the computational |
| 125 |
cost for polishing false positives. |
| 126 |
\item Efficient run-time screening for repetitive elements. |
| 127 |
\item Extensions and improvements to the industry-standard EST-to-genome |
| 128 |
alignment program Sim4: |
| 129 |
\begin{itemize} |
| 130 |
\item detection of multiple occurrences of the query in the genomic sequence |
| 131 |
\item improved input and output mechanisms for high-throughput processing |
| 132 |
of different sequences |
| 133 |
\item better memory management allows for processing of large sequences |
| 134 |
\end{itemize} |
| 135 |
\item Whole chromosomal sequences can be used --- no segmentation of |
| 136 |
the genomic sequences is necessary. Consequently, matches are not |
| 137 |
pruned to fit in fixed size intervals, which allows arbitrarily long |
| 138 |
introns. |
| 139 |
\end{itemize} |
| 140 |
|
| 141 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 142 |
\chapter{Installation} |
| 143 |
\label{chap:install} |
| 144 |
|
| 145 |
{\tt bzip2 -dc ESTmapper.tar.bz2 | tar -xf - } |
| 146 |
|
| 147 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 148 |
\chapter{Software Overview} |
| 149 |
\label{chap:overview} |
| 150 |
|
| 151 |
This chapter provides an overview of the \ESTmapper\ process. |
| 152 |
Understanding the process will assist in operation of \ESTmapper, and |
| 153 |
is necessary for using the advanced modes of operation. |
| 154 |
|
| 155 |
\ESTmapper\ is comprised of five stages. |
| 156 |
|
| 157 |
\begin{tabular}{|c|l|l|} |
| 158 |
\hline |
| 159 |
Stage & Name & Description \\ |
| 160 |
\hline |
| 161 |
\hline |
| 162 |
1 & Preparation & Prepare the input files. \\ |
| 163 |
2 & Searching & Locate cDNA signals in the genome. \\ |
| 164 |
3 & Filtering & Remove weak signals. \\ |
| 165 |
4 & Polishing & Resolve signals into spliced alignments. \\ |
| 166 |
5 & Output & Assemble the output and collect statistics. \\ |
| 167 |
\hline |
| 168 |
\end{tabular} |
| 169 |
|
| 170 |
The stages are implemented so that they will not recompute a |
| 171 |
previously computed results. This makes it easy to chain the stages |
| 172 |
together in a pipeline, or to associate specific hardware with a |
| 173 |
stage. For example, the compute intensive stage 4 can be processed on |
| 174 |
a fast, but expensive computer, while the I/O intensive stage 5 can be |
| 175 |
processed on an inexpensive workstation. |
| 176 |
|
| 177 |
The stages are explained in the sections that follow. |
| 178 |
|
| 179 |
{\bf A CPU-hour is defined as one hour of processing on a one |
| 180 |
processor of a 500MHz Compaq ES40. Timing is given only to give a |
| 181 |
feeling for the expense of a particular stage.} |
| 182 |
|
| 183 |
\subsection*{Preparation} |
| 184 |
|
| 185 |
{\bf Prepare the input files.} This stage prepares the input to |
| 186 |
improve the efficiency of later stages. First, an index is built for |
| 187 |
each sequence file to allow random access to the sequences. Second, |
| 188 |
the genomic sequences are examined and grouped into approximately |
| 189 |
equally-sized groups to allow the search stage to execute in a specific |
| 190 |
memory footprint. |
| 191 |
|
| 192 |
This stage typically takes only a few minutes, and requires no |
| 193 |
significant resources. |
| 194 |
|
| 195 |
\subsection*{Searching} |
| 196 |
|
| 197 |
{\bf Search the genome for cDNA signals.} This stage executes the |
| 198 |
search algorithm for each group of sequences determined in the |
| 199 |
previous stage. The search algorithm uses a fast, but memory |
| 200 |
intensive, data structure to find all common $20$-mers between each |
| 201 |
cDNA sequence and each genomic sequence. Genomic regions which |
| 202 |
contain words consistent with an exon model are reported as potential |
| 203 |
cDNA containing regions. |
| 204 |
|
| 205 |
Because the search algorithm needs to use large amounts of memory to |
| 206 |
execute efficiently, it is multi-threaded. |
| 207 |
|
| 208 |
By default, this phase requires 4GB of main memory. For {\tt dbEST} |
| 209 |
size EST input, it will generate 70GB of output, and requires 50 CPU |
| 210 |
hours. For {\tt RefSeq} size mRNA input, it will generate {\bf XXXGB} |
| 211 |
of output, and requires a few CPU hours. |
| 212 |
|
| 213 |
\subsection*{Filtering} |
| 214 |
|
| 215 |
{\bf Filter the signals.} The signal filtering stage examines the |
| 216 |
output generated by the search, and discards regions that |
| 217 |
are relatively weak among the candidate regions for the same cDNA sequence. |
| 218 |
|
| 219 |
The ESTMapper implements two different protocols for filtering EST and |
| 220 |
full-length mRNA matches, respectively, taking into the account the |
| 221 |
different characteristics of the two types of sequences. ESTs are |
| 222 |
shorter and less accurate due to sequencing errors and contamination |
| 223 |
with vector sequences, and therefore will generate weaker |
| 224 |
imprints on the genome than full-length mRNAs. They are also more |
| 225 |
likely to contain repeat sequences. Consequently, a more sensitive |
| 226 |
filter should be used. In contrast, full-length mRNA sequences are |
| 227 |
longer and more accurate, and in general have fewer expected occurrences |
| 228 |
on the genome. This makes it easier to differentiate between the false |
| 229 |
positive and true signals, and therefore the filter can be more specific. |
| 230 |
|
| 231 |
All candidate regions produced by the search are scored based on the |
| 232 |
portion of the cDNA match they contain, and the highest scoring of |
| 233 |
these will be selected for polishing. For EST input, at most 100 |
| 234 |
regions are selected for each query. If the number of regions exceeds |
| 235 |
this threshold, weak signals are discarded, and the procedure is |
| 236 |
repeated. ESTs with more than 100 candidate regions after the second |
| 237 |
filter are labeled as containing repetitive elements, and for these no |
| 238 |
regions are selected. |
| 239 |
|
| 240 |
For mRNAs, a fixed portion at the top of the scoring range is selected, |
| 241 |
and all regions with scores in this interval are selected in a first phase. |
| 242 |
In addition, all regions containing at least a fraction $p$ of the mRNA |
| 243 |
will be chosen. |
| 244 |
|
| 245 |
As mentioned, for EST input the \ESTmapper\ is able to detect |
| 246 |
repeat-containing cDNA sequences. {\bf Experiments have confirmed |
| 247 |
indicate that sequences flagged as such are confirmed by RepeatMasker. |
| 248 |
-- do we want to include some evidence?} |
| 249 |
|
| 250 |
This stage requires three CPU hours, and four wall-clock hours to |
| 251 |
process {\tt dbEST} size EST input. It does not have any significant |
| 252 |
memory requirements, however, it makes heavy use of disk. |
| 253 |
|
| 254 |
It generates 6GB of output. |
| 255 |
|
| 256 |
After this phase completes, the full output of the search is no longer |
| 257 |
needed, and can be removed. |
| 258 |
|
| 259 |
\subsection*{Polishing} |
| 260 |
|
| 261 |
{\bf Polish the filtered signals.} This stage applies the {\tt Sim4} |
| 262 |
algorithm to each cDNA-genomic region to generate a spliced-alignment. |
| 263 |
The output presents in a condensed form information about the |
| 264 |
boundaries of exons and introns in the two sequences, predicted intron |
| 265 |
orientations, sequence similarity scores for the global and for the |
| 266 |
individual exons' alignments, and other sequence and alignment |
| 267 |
statistics. The complete list is reviewed in |
| 268 |
Section~\ref{subsec:matchformat}. |
| 269 |
|
| 270 |
{\bf NEEDS WORK ON MEMORY USAGE! How much? When?} |
| 271 |
|
| 272 |
{\tt dbEST} size EST input requires approximately 600 CPU hours, and |
| 273 |
generates 10GB of output. When processing large (more than 120Mb) genomic |
| 274 |
sequences, each {\tt Sim4} process can use over 1GB of memory. |
| 275 |
|
| 276 |
{\tt RefSeq} size mRNA inputs can be polished in a few CPU hours. |
| 277 |
|
| 278 |
\subsection*{Output} |
| 279 |
|
| 280 |
{\bf Process the output.} This stage collects the |
| 281 |
output from the polishing stage, and performs a final quality-based |
| 282 |
filtering of the matches and the cDNA. |
| 283 |
|
| 284 |
Matches are classified as ``good'', ``good, but short'' or |
| 285 |
``low-quality'' based on the two statistics: {\em query-sequence |
| 286 |
identity}, and {\em alignment-sequence identity}. |
| 287 |
|
| 288 |
\begin{tabular}{|p{1.7in}|p{3.0in}|} |
| 289 |
\hline |
| 290 |
query-sequence identity & the percentage of nucleotides in the cDNA, excluding the polyA(T) tails, exactly matching the genomic sequence \\ |
| 291 |
alignment-sequence identity & the percentage of nucleotide matches in the spliced alignment \\ |
| 292 |
\hline |
| 293 |
\end{tabular} |
| 294 |
|
| 295 |
The ESTMapper will generate all spliced alignments of matches |
| 296 |
identified in the search stage which have at least $p$ percent |
| 297 |
alignment-sequence identity, and at least $c$ percent query-sequence |
| 298 |
identity. |
| 299 |
|
| 300 |
\begin{tabular}{|p{1.7in}|p{3.0in}|} |
| 301 |
\hline |
| 302 |
good & believed with high confidence \\ |
| 303 |
good, but short & would be believed with high confidence, except that |
| 304 |
only a small piece of the cDNA sequence matched \\ |
| 305 |
low-quality & a match was reported from the polishing stage, but |
| 306 |
the percent alignment-sequence identity is low \\ |
| 307 |
\hline |
| 308 |
\end{tabular} |
| 309 |
|
| 310 |
Note that it is possible for a cDNA sequence to have matches in any |
| 311 |
number of categories, for example, the true match would be labeled as |
| 312 |
``good'', a partial match would be placed as ``good, but short'', and |
| 313 |
a paralogous match might be placed in ``low-quality''. |
| 314 |
|
| 315 |
cDNA sequences are classified as ``good'', ``good, but short'', |
| 316 |
``low-quality'', ``missing'', or ``zero'', based on the quality of the |
| 317 |
best match for the cDNA, the lack of a match, or the lack of a cDNA |
| 318 |
signal, respectively. |
| 319 |
|
| 320 |
\begin{tabular}{|p{1.7in}|p{3.0in}|} |
| 321 |
\hline |
| 322 |
good & the best match for these sequences is classified as ``good'' \\ |
| 323 |
good, but short & the best match for these sequences is classified as ``good, but short'' \\ |
| 324 |
low-quality & the best match for these sequences is classified as ``low-quality'' \\ |
| 325 |
missing & signals were detected, but polishing did not generate |
| 326 |
any matches. Had a match been produced, they would have been |
| 327 |
``very low-quality''. \\ |
| 328 |
zero & no signals were detected. These cDNA sequences are probably not |
| 329 |
present on the genome. \\ |
| 330 |
\hline |
| 331 |
\end{tabular} |
| 332 |
|
| 333 |
Unlike the classification of matches, each cDNA is classified into exactly one category. |
| 334 |
|
| 335 |
Section~\ref{sec:quality} discusses quality. |
| 336 |
|
| 337 |
|
| 338 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 339 |
\chapter{Getting Started} |
| 340 |
\label{chap:start} |
| 341 |
|
| 342 |
{\bf |
| 343 |
Example of running an est search, example of an mrna search (using the |
| 344 |
same genomic). Layout of the directories. |
| 345 |
} |
| 346 |
|
| 347 |
Is the label a useful concept? Why not just use a full directory for |
| 348 |
each mapping. Simpler. The only thing we gain with labels is that we |
| 349 |
skip configuration, which takes minutes anyway. Where to put the |
| 350 |
config files? genome partition can go into search, and just leave the |
| 351 |
genome sequence in the same place. |
| 352 |
|
| 353 |
% |
| 354 |
% Liliana suggested to put the example in the distribution, then to |
| 355 |
% refer to the files. I disagree; you can't read it offline. We |
| 356 |
% should still provide some sample data for playing around. |
| 357 |
% |
| 358 |
|
| 359 |
\section{Small-scale EST Mapping} |
| 360 |
|
| 361 |
In this section we demonstrate \ESTmapper by mapping a small set of ESTs to a 1Mb genomic region. |
| 362 |
|
| 363 |
%{\tt ESTmapper.pl -mapest /dev5/walenz/FY |
| 364 |
% /dev5/walenz/ESTs/dbEST\_human\_01.fasta |
| 365 |
% /dev5/walenz/SCF/FY.fasta} |
| 366 |
|
| 367 |
The \ESTmapper\ command line |
| 368 |
\small |
| 369 |
\begin{verbatim} |
| 370 |
ESTmapper.pl -mapest /dev5/walenz/FY \ |
| 371 |
/dev5/walenz/ESTs/dbEST_human_01.fasta \ |
| 372 |
/dev5/walenz/SCF/FY.fasta |
| 373 |
\end{verbatim} |
| 374 |
\normalsize |
| 375 |
says to map ESTs, creating the directory {\tt /dev5/walenz/FY} for |
| 376 |
work and ouptut files, reading ESTs from {\tt |
| 377 |
/dev5/walenz/ESTs/dbEST\_human\_01.fasta} and genomic sequences from |
| 378 |
{\tt /dev5/walenz/SCF/FY.fasta}. |
| 379 |
|
| 380 |
This particular EST set contains about {\bf 30,000} ESTs. The |
| 381 |
genomic sequence is a {\bf 1Mb} scaffold. |
| 382 |
|
| 383 |
The screen output from \ESTmapper\ is explained next. |
| 384 |
|
| 385 |
\footnotesize |
| 386 |
\begin{verbatim} |
| 387 |
ESTmapper: Performing a configure. |
| 388 |
ESTmapper/configure-- Use about 3800MB -> 398458880 bases per chunk. |
| 389 |
ESTmapper/configure-- Generating the info for '/dev5/walenz/FY/0-input/genomic.fasta' |
| 390 |
ESTmapper/configure-- WARNING: This is done in the work directory! |
| 391 |
ESTmapper/configure-- Created group with 590724 bases. |
| 392 |
\end{verbatim} |
| 393 |
\normalsize |
| 394 |
|
| 395 |
\ESTmapper\ is performing its configure phase. It is grouping genomic sequences |
| 396 |
into groups with no more than 398,458,880 bases, and it estimates that the |
| 397 |
search process will require about 3800MB to compute. |
| 398 |
|
| 399 |
The warning refers to the fact that the index files for the genomic sequences |
| 400 |
do not already exist, and that they will be created and stored in the work |
| 401 |
directory, not with the original file. |
| 402 |
|
| 403 |
\footnotesize |
| 404 |
\begin{verbatim} |
| 405 |
ESTmapper: Performing a search. |
| 406 |
ESTmapper/search-- Local mode requested; 1 processes. |
| 407 |
ESTmapper/search-- search 000 |
| 408 |
ESTmapper: searchGENOME required 1.792912 seconds system time. |
| 409 |
ESTmapper: searchGENOME required 40.95784 seconds user time. |
| 410 |
ESTmapper: Search script finished in 19 wall-clock seconds. |
| 411 |
\end{verbatim} |
| 412 |
\normalsize |
| 413 |
|
| 414 |
\ESTmapper\ is performing the search phase. This input requires only |
| 415 |
one search process. Time statistics are reported. The search |
| 416 |
algorithm used about 43 seconds of CPU time, and the entire search |
| 417 |
phase took 19 wall-clock seconds. The search algorithm is capable of |
| 418 |
using multiple processors, which explains why it used more CPU time |
| 419 |
than wall-clock time. |
| 420 |
|
| 421 |
\footnotesize |
| 422 |
\begin{verbatim} |
| 423 |
ESTmapper: Performing a filter. |
| 424 |
ESTmapper/search-- Merging counts. |
| 425 |
ESTmapper/search-- Writing counts. |
| 426 |
\end{verbatim} |
| 427 |
\normalsize |
| 428 |
|
| 429 |
As each search process outputs the number of signals detected for each |
| 430 |
cDNA sequence, after all search processes finish, these counts are |
| 431 |
merged together, for use in the filtering phase. |
| 432 |
|
| 433 |
\footnotesize |
| 434 |
\begin{verbatim} |
| 435 |
ESTmapper/filter-- Filtering. |
| 436 |
ESTmapper/filterEST-- uniqThresh= 100 reptThresh= 100 qualityThresh=0.20 |
| 437 |
ESTmapper/filterEST-- UNIQ: 3996( 9979) FILT: 0( 0/ 0) REPT: 0( 0/ 0) |
| 438 |
ESTmapper/filter-- Sorting. |
| 439 |
\end{verbatim} |
| 440 |
\normalsize |
| 441 |
|
| 442 |
\ESTmapper\ is now filtering the signals. Filtering is explained in |
| 443 |
detail in Chapter~/ref{chap:filtering}. |
| 444 |
|
| 445 |
\footnotesize |
| 446 |
\begin{verbatim} |
| 447 |
ESTmapper: Performing a polish. |
| 448 |
ESTmapper/polish-- Creating scripts with 500 lines in each. |
| 449 |
ESTmapper/polish-- Created 020 scripts. |
| 450 |
ESTmapper/polish-- Running locally, 4 at a time. |
| 451 |
ESTmapper: sim4db required 188.127737 seconds wall-clock time. |
| 452 |
ESTmapper: sim4db required 18.927568 seconds system time. |
| 453 |
ESTmapper: sim4db required 112.960288 seconds user time. |
| 454 |
ESTmapper: Polish script finished in 50 wall-clock seconds. |
| 455 |
\end{verbatim} |
| 456 |
\normalsize |
| 457 |
|
| 458 |
\ESTmapper\ is performing the {\tt Sim4} polishing of signals. It |
| 459 |
creates 20 batches, with each batch containing 500 signals to |
| 460 |
process\footnote{Yes, except probably for the last one.}. The |
| 461 |
polishing is run on the local hardware, using four processors. |
| 462 |
|
| 463 |
Like the search phase, the polishing phase reports statistics on |
| 464 |
the time used. In this example, the {\tt Sim4} processes needed a |
| 465 |
total of 188 wall clock seconds, and 130 CPU seconds. The polishing |
| 466 |
stage required 50 wall-clock seconds. |
| 467 |
|
| 468 |
\footnotesize |
| 469 |
\begin{verbatim} |
| 470 |
ESTmapper: Performing an assembleOutput. |
| 471 |
ESTmapper/assembleOutput-- WARNING: 'short' quality levels too low for existing polishing! |
| 472 |
ESTmapper/assembleOutput-- WARNING: Polished at percent query-sequence identity = 45, requested filtration at 0. |
| 473 |
ESTmapper/assembleOutput-- WARNING: Polished at percent align-sequence identity = 85, requested filtration at 95. |
| 474 |
ESTmapper/assembleOutput-- filtering polishes by quality. |
| 475 |
ESTmapper/assembleOutput-- GOOD: percent query-sequence identity: 50 |
| 476 |
ESTmapper/assembleOutput-- GOOD: percent align-sequence identity: 95 |
| 477 |
ESTmapper/assembleOutput-- SHORT: percent query-sequence identity: 0 |
| 478 |
ESTmapper/assembleOutput-- SHORT: percent align-sequence identity: 95 |
| 479 |
ESTmapper/assembleOutput-- finding 'good' cDNA. |
| 480 |
ESTmapper/assembleOutput-- finding 'good, but short' cDNA. |
| 481 |
ESTmapper/assembleOutput-- finding 'low quality' cDNA. |
| 482 |
ESTmapper/assembleOutput-- finding 'repeat' cDNA. |
| 483 |
ESTmapper/assembleOutput-- finding 'zero hit' cDNA. |
| 484 |
ESTmapper/assembleOutput-- finding 'missing' cDNA. |
| 485 |
ESTmapper/assembleOutput-- counting 'good' matches. |
| 486 |
ESTmapper/assembleOutput-- counting 'good, but short' matches. |
| 487 |
ESTmapper/assembleOutput-- counting 'all the good' matches. |
| 488 |
ESTmapper/assembleOutput-- counting 'low quality' matches. |
| 489 |
ESTmapper/assembleOutput-- counting cDNA. |
| 490 |
ESTmapper: assembleOutput script finished in 52 wall-clock seconds. |
| 491 |
\end{verbatim} |
| 492 |
\normalsize |
| 493 |
|
| 494 |
\ESTmapper\ is processing the output from the polishing, classifying |
| 495 |
matches and cDNA. We can safely ignore the warning; it is telling us |
| 496 |
that even though we requested filtration down to 0\% query-sequence |
| 497 |
identity, polishes only exist down to 45\%. |
| 498 |
|
| 499 |
\footnotesize |
| 500 |
\begin{verbatim} |
| 501 |
ESTmapper: script finished everything in 122 wall-clock seconds. |
| 502 |
\end{verbatim} |
| 503 |
\normalsize |
| 504 |
|
| 505 |
Finally, the script is completed. Our mapping finished in a little |
| 506 |
under three minutes. |
| 507 |
|
| 508 |
The contents of the output directory are explained in |
| 509 |
Chapter~\ref{chap:output}, but we'll quickly peek at the |
| 510 |
statistics contained in the {\tt summary} file: |
| 511 |
|
| 512 |
\footnotesize |
| 513 |
\begin{verbatim} |
| 514 |
GOOD: |
| 515 |
cDNA-genomic matches 51 matches (51 different cDNA and 1 genomic) |
| 516 |
Matches per cDNA 1 matches/cDNA |
| 517 |
Matches per genomic 51 matches/genomic |
| 518 |
|
| 519 |
GOOD but SHORT: |
| 520 |
cDNA-genomic matches None. |
| 521 |
|
| 522 |
ALL THE GOOD: (both 'GOOD' and 'GOOD but SHORT') |
| 523 |
cDNA-genomic matches 51 matches (51 different cDNA and 1 genomic) |
| 524 |
Matches per cDNA 1 matches/cDNA |
| 525 |
Matches per scaffold 51 matches/genomic |
| 526 |
|
| 527 |
LOW-QUALITY: |
| 528 |
cDNA-genomic matches 2712 matches (564 different cDNA and 1 genomic) |
| 529 |
Matches per cDNA 4.80851063829787 matches/cDNA |
| 530 |
Matches per scaffold 2712 matches/genomic |
| 531 |
|
| 532 |
cDNA COUNTS: |
| 533 |
cDNA: 39182 |
| 534 |
cDNA-good: 51 |
| 535 |
cDNA-goodshort: 0 |
| 536 |
cDNA-lowquality: 563 |
| 537 |
cDNA-missing: 3382 |
| 538 |
cDNA-zero: 35186 |
| 539 |
\end{verbatim} |
| 540 |
\normalsize |
| 541 |
|
| 542 |
This is fully described in Section~\ref{sec:summary}. |
| 543 |
|
| 544 |
|
| 545 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 546 |
\chapter{Input Files} |
| 547 |
\label{chap:input} |
| 548 |
|
| 549 |
cDNA and genomic sequences are read from two multi-FastA format file. |
| 550 |
|
| 551 |
EST-type and full-length mRNA-type sequences are processed differently, |
| 552 |
therefore the input data should be a priori separated in files by these |
| 553 |
categories. |
| 554 |
|
| 555 |
It is {\em not} necessary to repeat mask the sequences. \ESTmapper's mechanism |
| 556 |
will be able to identify and separate those sequences that contain highly |
| 557 |
repetitive elements. |
| 558 |
|
| 559 |
It is {\em not} necessary to fragment the genomic sequences. \ESTmapper\ |
| 560 |
can process full-length chromosomal sequences, which allows it to identify |
| 561 |
maximal cDNA matches even when long introns are present. |
| 562 |
|
| 563 |
It is {\em not} necessary to quality- and vector-trim the EST sequences, but |
| 564 |
doing so will increase the accuracy of the match statistics. In principle, the |
| 565 |
quality thresholds used for validating and classifying the matches include a |
| 566 |
margin of error that could account for the effects of such factors. |
| 567 |
|
| 568 |
\section{High Frequency $k$-Mer Masking} |
| 569 |
|
| 570 |
The search phase in \ESTmapper\ ignores $k$-mers that occur at least |
| 571 |
1000 times in the genomic sequence. |
| 572 |
|
| 573 |
Computing the list of $k$-mers to ignore requires large amounts of |
| 574 |
memory and CPU, and is {\em not} performed by \ESTmapper. Lists |
| 575 |
appropriate for human and mouse are provided as data files. See the |
| 576 |
{\tt -maskmers} entry in Advanced Usage. |
| 577 |
|
| 578 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 579 |
\chapter{Output Files} |
| 580 |
\label{chap:output} |
| 581 |
|
| 582 |
The work directory contains several files and directories: |
| 583 |
|
| 584 |
\setlongtables |
| 585 |
\begin{longtable}{|l|p{3.4in}|} |
| 586 |
\hline |
| 587 |
File Name & Description \\ |
| 588 |
\hline |
| 589 |
\hline |
| 590 |
\endhead |
| 591 |
\hline |
| 592 |
\endfoot |
| 593 |
0-input & Symbolic links to input files, and any indices and other files needed to later stages. \\ |
| 594 |
\hline |
| 595 |
1-search & The temporary work directory for the search step. The contents are undocumented. \\ |
| 596 |
\hline |
| 597 |
2-filter & The temporary work directory for the filter step. The contents are undocumented.\\ |
| 598 |
\hline |
| 599 |
3-polish & The temporary work directory for the polishing step. The contents are undocumented.\\ |
| 600 |
\hline |
| 601 |
cDNA-good.fasta & These cDNA sequences were successfully mapped.\\ |
| 602 |
\hline |
| 603 |
cDNA-goodshort.fasta & These cDNA sequences were mapped at the correct percent alignment-sequence identity, but below the desired percent query-sequence identity.\\ |
| 604 |
\hline |
| 605 |
cDNA-lowquality.fasta & These cDNA sequences were mapped, but at low percent query- and alignment-sequence identities.\\ |
| 606 |
\hline |
| 607 |
cDNA-missing.fasta & These cDNA sequences had at least one signal detected, but the signal(s) were spurious. The polishing step did not find a match.\\ |
| 608 |
\hline |
| 609 |
cDNA-repeat.fasta & These cDNA sequences were classified as repeat-containing by the filter.\\ |
| 610 |
\hline |
| 611 |
cDNA-zero.fasta & These cDNA sequences had no signals detected.\\ |
| 612 |
\hline |
| 613 |
polishes-good & All the ``good'' polishes.\\ |
| 614 |
\hline |
| 615 |
polishes-goodshort & All the ``good, but short'' polishes.\\ |
| 616 |
\hline |
| 617 |
polishes-lowquality & All the remaining polishes.\\ |
| 618 |
\hline |
| 619 |
summary & A summary of the mapping.\\ |
| 620 |
\end{longtable} |
| 621 |
|
| 622 |
\subsection{Summary File} |
| 623 |
\label{sec:summary} |
| 624 |
|
| 625 |
The {\tt summary} file describes the results of the mapping. |
| 626 |
|
| 627 |
\footnotesize |
| 628 |
\begin{verbatim} |
| 629 |
GOOD: 50% composite, 95% identity |
| 630 |
cDNA-genomic matches 4028809 matches (3060666 different cDNA and 5377 genomic) |
| 631 |
Matches per cDNA 1.31631775567801 matches/cDNA |
| 632 |
Matches per genomic 749.267063418263 matches/genomic |
| 633 |
|
| 634 |
GOOD but SHORT: 0% composite, 95% identity |
| 635 |
cDNA-genomic matches 26825 matches (22017 different cDNA and 1614 genomic) |
| 636 |
Matches per cDNA 1.21837670890675 matches/cDNA |
| 637 |
Matches per genomic 16.6201982651797 matches/genomic |
| 638 |
|
| 639 |
ALL THE GOOD: (both 'GOOD' and 'GOOD but SHORT') |
| 640 |
cDNA-genomic matches 4055634 matches (3071297 different cDNA and 5461 genomic) |
| 641 |
Matches per cDNA 1.32049554308815 matches/cDNA |
| 642 |
Matches per scaffold 742.654092657022 matches/genomic |
| 643 |
|
| 644 |
LOW-QUALITY: |
| 645 |
cDNA-genomic matches 7664890 matches (1263273 different cDNA and 6054 genomic) |
| 646 |
Matches per cDNA 6.06748501709448 matches/cDNA |
| 647 |
Matches per scaffold 1266.08688470433 matches/genomic |
| 648 |
|
| 649 |
cDNA COUNTS: |
| 650 |
cDNA: 3992939 |
| 651 |
cDNA-good: 3060666 |
| 652 |
cDNA-goodshort: 10631 |
| 653 |
cDNA-lowquality: 433295 |
| 654 |
cDNA-missing: 440037 |
| 655 |
cDNA-zero: 48310 |
| 656 |
\end{verbatim} |
| 657 |
\normalsize |
| 658 |
|
| 659 |
cDNA sequences are classified into one of six categories: {\tt good}, |
| 660 |
{\tt goodshort}, {\tt lowquality}, {\tt missing}, {\tt repeat}, or |
| 661 |
{\tt zero}. Each cDNA in the input is in exactly one of the |
| 662 |
categories. |
| 663 |
|
| 664 |
\begin{tabular}{|l|p{4.3in}|} |
| 665 |
\hline |
| 666 |
category & description \\ |
| 667 |
\hline |
| 668 |
\hline |
| 669 |
good & A match exists that meets both query-sequence identity and alignment-sequence identity requirements. \\ |
| 670 |
goodshort & A match exists that meets both query-sequence identity and alignment-sequence identity requirements, for ``short''. \\ |
| 671 |
lowquality & A match exists, but it does not meet at least one quality requirement. \\ |
| 672 |
missing & A signal was detected, but no match was produced. \\ |
| 673 |
repeat & Many signals were detected, and the filter stage declared this cDNA to be repeat-containing. \\ |
| 674 |
zero & No signals were detected for this cDNA. \\ |
| 675 |
\hline |
| 676 |
\end{tabular} |
| 677 |
|
| 678 |
Likewise, matches generated by the polishing stage are placed into |
| 679 |
three categories: {\tt good}, {\tt goodshort} or {\tt lowquality}. |
| 680 |
This is done match by match, so it is possible to have matches for a |
| 681 |
specific cDNA sequence in all three categories. |
| 682 |
|
| 683 |
For each category, the {\tt summary} file counts the number of matches |
| 684 |
it contains, the number of distinct cDNA / genomic sequences used by |
| 685 |
those matches, and the matches per cDNA or genomic. |
| 686 |
|
| 687 |
\subsection{Polished Match Format} |
| 688 |
\label{subsec:matchformat} |
| 689 |
|
| 690 |
The files {\tt polishes-good}, {\tt polishes-goodshort}, and {\tt |
| 691 |
polishes-lowquality} contain the results of the polishing stage. All |
| 692 |
matches are placed in the same file. Each match starts with the line |
| 693 |
{\tt sim4begin}, and ends with the line {\tt sim4end}. Matches have |
| 694 |
the following format: |
| 695 |
|
| 696 |
\begin{tabular}{c|l} |
| 697 |
1 & {\tt sim4begin} \\ |
| 698 |
2 & {\it cDNAidx}{\tt [}{\it cDNAlen}{\tt -}{\it pA}{\tt -}{\it pT}{\tt ]} {\it GENidx}{\tt [}{\it GENlo}{\tt -}{\it GENhi}{\tt ]} {\tt <}{\it M}{\tt -}{\it N}{\tt -}{\it P}{\tt -}{\it O}{\tt -}{\it S}{\tt >} \\ |
| 699 |
3 & {\tt edef=}{\it cDNA defline} \\ |
| 700 |
4 & {\tt ddef=}{\it Genomic defline} \\ |
| 701 |
5 & {\it cDNAbgn}{\tt -}{\it cDNAend} {\tt (}{\it GENbgn}{\tt -}{\it GENend}{\tt )} {\tt <}{\it M}{\tt -}{\it N}{\tt -}{\it P}{\tt >} {\it intonOrientation} \\ |
| 702 |
& . \\ |
| 703 |
& . \\ |
| 704 |
6 & {\it cDNAbgn}{\tt -}{\it cDNAend} {\tt (}{\it GENbgn}{\tt -}{\it GENend}{\tt )} {\tt <}{\it M}{\tt -}{\it N}{\tt -}{\it P}{\tt >} {\it intonOrientation} \\ |
| 705 |
7 & {\it cDNAbgn}{\tt -}{\it cDNAend} {\tt (}{\it GENbgn}{\tt -}{\it GENend}{\tt )} {\tt <}{\it M}{\tt -}{\it N}{\tt -}{\it P}{\tt >} \\ |
| 706 |
8 & {\it cDNA alignment sequence for exon \#1} \\ |
| 707 |
9 & {\it genomic alignment sequence for exon \#1} \\ |
| 708 |
& . \\ |
| 709 |
& . \\ |
| 710 |
& . \\ |
| 711 |
& . \\ |
| 712 |
10 & {\it cDNA alignment sequence for exon \#n} \\ |
| 713 |
11 & {\it genomic alignment sequence for exon \#n} \\ |
| 714 |
12 & {\tt sim4end} |
| 715 |
\end{tabular} |
| 716 |
|
| 717 |
Line 1 begins the match description. |
| 718 |
|
| 719 |
Line 2 contains the match description line. The fields have the following meanings: |
| 720 |
|
| 721 |
\begin{tabular}{|l|l|} |
| 722 |
\hline |
| 723 |
Field & Description \\ |
| 724 |
\hline |
| 725 |
\hline |
| 726 |
cDNAidx & Internal index of the cDNA sequence used. \\ |
| 727 |
cDNAlen & Length of the cDNA sequence. \\ |
| 728 |
pA & Amount of poly-A masking performed. \\ |
| 729 |
pT & Amount of poly-T masking performed. \\ |
| 730 |
GENidx & Internal index of the genomic sequence used. \\ |
| 731 |
GENlo & Beginning position of the genomic region that was polished. \\ |
| 732 |
GENhi & Ending position of the genomic region that was polished. \\ |
| 733 |
M & Number of matching bases in the match. \\ |
| 734 |
N & Number of matching N's in the match. \\ |
| 735 |
P & Percent sequence identity of the match. \\ |
| 736 |
O & Orientation of the match. \\ |
| 737 |
S & Strand this match is predicted to occur on. \\ |
| 738 |
\hline |
| 739 |
\end{tabular} |
| 740 |
|
| 741 |
%{\tt M} and {\tt N} are the number of matches, and the number of |
| 742 |
%non-ACGT matches, respectively. {\tt P} is the percent sequence |
| 743 |
%similarity for this exon. |
| 744 |
|
| 745 |
The {\it match orientation} is {\tt forward} when the cDNA sequence |
| 746 |
aligns to the genomic sequence directly. It is {\tt complement} when |
| 747 |
the reverse-complement of the cDNA sequence matches the genomic |
| 748 |
sequence. These are the only two values possible. |
| 749 |
|
| 750 |
The {\it strand prediction} is either {\tt forward}, {\tt |
| 751 |
reverse} or {\tt unknown}. It is \ESTmapper's best guess which strand |
| 752 |
the cDNA is on, based on the quality of the match and the intron |
| 753 |
signals. |
| 754 |
|
| 755 |
Lines 3 and 4 contain the entire defline for the two sequences. These lines are |
| 756 |
optional. |
| 757 |
|
| 758 |
Lines 5, 6 and 7 the {\tt Sim4} exon lines. There will be one line |
| 759 |
for each exon found. The fields have the following meanings: |
| 760 |
|
| 761 |
\begin{tabular}{|l|l|} |
| 762 |
\hline |
| 763 |
Field & Description \\ |
| 764 |
\hline |
| 765 |
\hline |
| 766 |
cDNAbgn & Beginning of the exon, in the cDNA sequence. \\ |
| 767 |
cDNAend & End of the exon, in the cDNA sequence. \\ |
| 768 |
GENbgn & Beginning of the exon, in the genomic sequence. \\ |
| 769 |
GENend & End of the exon, in the genomic sequence. \\ |
| 770 |
M & Number of matching bases in the exon. \\ |
| 771 |
N & Number of matching N's in the exon. \\ |
| 772 |
P & Percent identity of the exon. \\ |
| 773 |
intronOrientation & Predicted orientation of the intron. \\ |
| 774 |
\hline |
| 775 |
\end{tabular} |
| 776 |
|
| 777 |
Coordinates in the exon are nucleotide-based. Coordinates in the |
| 778 |
genomic sequence are relative to the {\tt GENlo} value from the match |
| 779 |
description line. The true location of the exon in the genomic sequence is |
| 780 |
{\tt GENlo + GENbgn} and {\tt GENlo + GENend}. |
| 781 |
|
| 782 |
The {\it intron orientation} is one of {\tt ->}, {\tt <-}, {\tt --}, |
| 783 |
or {\tt ==}, representing forward, reverse, ambiquous, and |
| 784 |
internal gap in cDNA, respectively. All exons, except the last, |
| 785 |
contain the intron orientation field. |
| 786 |
|
| 787 |
When requested, pairwise alignments between the cDNA sequence and the |
| 788 |
genomic sequence within each exon follow the exon level descriptions |
| 789 |
(see Section~\ref{sec:polish}). In the alignments, dashes ({\tt -}) |
| 790 |
are used to represent insertion/deletion. Lower-case characters |
| 791 |
represent a match, while upper-case characters represent a non-match. |
| 792 |
|
| 793 |
Line 12 closes the match descrption. |
| 794 |
|
| 795 |
\subsection{Examples} |
| 796 |
|
| 797 |
A few examples of match output are shown. {\bf should explain the |
| 798 |
examples more; picture?} |
| 799 |
|
| 800 |
{\bf Example 1:} A minimal match description. The deflines and |
| 801 |
alignments are not present. |
| 802 |
|
| 803 |
\footnotesize |
| 804 |
\begin{verbatim} |
| 805 |
sim4begin |
| 806 |
54[484-0-0] 0[0-590724] <477-0-98-forward-forward> |
| 807 |
1-96 (454213-454308) <92-0-94> -> |
| 808 |
97-266 (455410-455579) <170-0-100> -> |
| 809 |
267-377 (458098-458208) <111-0-100> -> |
| 810 |
378-465 (458297-458384) <88-0-100> -> |
| 811 |
466-484 (514282-514297) <16-0-84> |
| 812 |
sim4end |
| 813 |
\end{verbatim} |
| 814 |
\normalsize |
| 815 |
|
| 816 |
{\bf Example 2}: This is the same match as above, but was generated by |
| 817 |
limiting the genomic sequence to the range 430000 through 520000 |
| 818 |
|
| 819 |
\footnotesize |
| 820 |
\begin{verbatim} |
| 821 |
sim4begin |
| 822 |
54[484-0-0] 0[430000-520000] <477-0-98-forward-forward> |
| 823 |
1-96 (24213-24308) <92-0-94> -> |
| 824 |
97-266 (25410-25579) <170-0-100> -> |
| 825 |
267-377 (28098-28208) <111-0-100> -> |
| 826 |
378-465 (28297-28384) <88-0-100> -> |
| 827 |
466-484 (84282-84297) <16-0-84> |
| 828 |
sim4end |
| 829 |
\end{verbatim} |
| 830 |
\normalsize |
| 831 |
|
| 832 |
{\bf Example 3:} A full match description. Deflines have been trimmed |
| 833 |
to fit on the page, and alignment lines are wrapped. |
| 834 |
|
| 835 |
\footnotesize |
| 836 |
\begin{verbatim} |
| 837 |
sim4begin |
| 838 |
618[453-0-26] 482[450000-460000] <425-0-99-complement-forward> |
| 839 |
edef=>CRA|70647962 /altid=gi|6798356 /dataset=dbest /taxon=9606 ... |
| 840 |
ddef=>CRA|GA_x2HTBKM80FY:1..590724 /organism=Homo sapiens ... |
| 841 |
1-71 (4238-4308) <71-0-100> -> |
| 842 |
72-241 (5410-5579) <170-0-100> -> |
| 843 |
242-352 (8098-8208) <110-0-99> -> |
| 844 |
353-427 (8297-8371) <74-0-98> |
| 845 |
tcatgaaacctgggaaggtggtgcttgtcctggctggacgctactccggacgcaaagctgtcatcgtgaag |
| 846 |
tcatgaaacctgggaaggtggtgcttgtcctggctggacgctactccggacgcaaagctgtcatcgtgaag |
| 847 |
aacattgatgatggcacctcagatcgcccctacagccatgctctggtggctggaattgaccgctacccccgcaaa \ |
| 848 |
gtgacagctgccatgggcaagaagaagatcgccaagagatcaaagataaaatcttttgtgaaagtgtataact \ |
| 849 |
acaatcacctaatgcccacaag |
| 850 |
aacattgatgatggcacctcagatcgcccctacagccatgctctggtggctggaattgaccgctacccccgcaaa \ |
| 851 |
gtgacagctgccatgggcaagaagaagatcgccaagagatcaaagataaaatcttttgtgaaagtgtataact \ |
| 852 |
acaatcacctaatgcccacaag |
| 853 |
gtactctgtggatatccccttggacaaaactgtcgtcaataaggatgtcttcaNagatcctgctcttaaacgcaa \ |
| 854 |
ggcccgacgggaggccaaggtcaagtttgaagagag |
| 855 |
gtactctgtggatatccccttggacaaaactgtcgtcaataaggatgtcttcaGagatcctgctcttaaacgcaa \ |
| 856 |
ggcccgacgggaggccaaggtcaagtttgaagagag |
| 857 |
atacaagacaggcaagaacaagtggttcttccagaaactgcggttttagatgctttgttttgaNcattaaaaatt |
| 858 |
atacaagacaggcaagaacaagtggttcttccagaaactgcggttttagatgctttgttttgaTcattaaaaatt |
| 859 |
sim4end |
| 860 |
\end{verbatim} |
| 861 |
\normalsize |
| 862 |
|
| 863 |
|
| 864 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 865 |
\chapter{Basic Usage} |
| 866 |
\label{chap:basic} |
| 867 |
|
| 868 |
Using the \ESTmapper\ in automatic mapping mode is the simplest mode of operation. |
| 869 |
|
| 870 |
To map ESTs to a genome: |
| 871 |
|
| 872 |
{\tt ESTmapper.pl -mapest} {\it work-directory} {\it ests.fasta} {\it genomic.fasta} |
| 873 |
|
| 874 |
Options implicit in {\tt -mapest}: |
| 875 |
|
| 876 |
\begin{tabular}{|ll|} |
| 877 |
\hline |
| 878 |
{\tt -directory} & {\it work-directory} \\ |
| 879 |
{\tt -cdna} & {\it ests.fasta} \\ |
| 880 |
{\tt -genomic} & {\it genomic.fasta} \\ |
| 881 |
{\tt -mersize} & 20 \\ |
| 882 |
{\tt -maskmers} & {\it install-directory}{\tt /data/frequentMers-C4-20.fasta} \\ |
| 883 |
{\tt -mincoverage} & 45 \\ |
| 884 |
{\tt -minidentity} & 85 \\ |
| 885 |
{\tt -local} & 4 \\ |
| 886 |
{\tt -good} & 50 95 \\ |
| 887 |
{\tt -goodshort} & 0 95 \\ |
| 888 |
\hline |
| 889 |
\end{tabular} |
| 890 |
|
| 891 |
To map mRNA to a genome: |
| 892 |
|
| 893 |
{\tt ESTmapper.pl -mapmrna} {\it work-directory} {\it mrna.fasta} {\it genomic.fasta} |
| 894 |
|
| 895 |
\begin{tabular}{|ll|} |
| 896 |
\hline |
| 897 |
{\tt -directory} & {\it work-directory} \\ |
| 898 |
{\tt -cdna} & {\it ests.fasta} \\ |
| 899 |
{\tt -genomic} & {\it genomic.fasta} \\ |
| 900 |
{\tt -mersize} & 20 \\ |
| 901 |
{\tt -maskmers} & {\it install-directory}{\tt /data/frequentMers-C4-20.fasta} \\ |
| 902 |
{\tt -mincoverage} & 45 \\ |
| 903 |
{\tt -minidentity} & 85 \\ |
| 904 |
{\tt -relink} & 1000 \\ |
| 905 |
{\tt -abort} & \\ |
| 906 |
{\tt -local} & 4 \\ |
| 907 |
{\tt -good} & 50 95 \\ |
| 908 |
{\tt -goodshort} & 0 95 \\ |
| 909 |
\hline |
| 910 |
\end{tabular} |
| 911 |
|
| 912 |
Be sure that the multi-FastA files are stored on a disk local to the |
| 913 |
machine --- it will work if the sequences are accessed over NFS, but |
| 914 |
performance might suffer. |
| 915 |
|
| 916 |
The automatic mapping modes may be customized by using the options |
| 917 |
listed in Section~\ref{sec:adv}. For example, {\tt ESTmapper.pl |
| 918 |
-mapest} {\it work-directory} {\it ests.fasta} {\it genomic.fasta} |
| 919 |
{\tt -numcpus 2} {\tt -memory 2000} will {\bf probably -- should test} |
| 920 |
allow the \ESTmapper\ to run on a two processor machine with 2GB of |
| 921 |
RAM. |
| 922 |
|
| 923 |
|
| 924 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 925 |
\chapter{Advanced Usage} |
| 926 |
\label{sec:adv} |
| 927 |
|
| 928 |
\ESTmapper\ recognizes seven commands, and has one required argument. The general |
| 929 |
usage is: |
| 930 |
|
| 931 |
{\tt ESTmapper.pl {\it command} -directory} {\it work-directory} [{\it options}] |
| 932 |
|
| 933 |
The seven commands: |
| 934 |
|
| 935 |
\begin{tabular}{ll} |
| 936 |
-configure &-- prepare the genomic sequences for searching \\ |
| 937 |
-searchest &-- perform signal finding on EST sequences \\ |
| 938 |
-searchmrna &-- perform signal finding on mRNA sequences \\ |
| 939 |
-filterest &-- filter EST signals \\ |
| 940 |
-filtermrna &-- filter mRNA signals \\ |
| 941 |
-polish &-- polish filtered signals \\ |
| 942 |
-assembleoutput &-- prepare the output \\ |
| 943 |
\end{tabular} |
| 944 |
|
| 945 |
The one required argument: |
| 946 |
|
| 947 |
\begin{tabular}{lp{3.0in}} |
| 948 |
-directory {\it /full/path/to/work/directory} & |
| 949 |
The \ESTmapper\ will use the supplied directory as it's work directory. |
| 950 |
This option must be present for all steps. |
| 951 |
\end{tabular} |
| 952 |
|
| 953 |
|
| 954 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 955 |
\section{configure} |
| 956 |
\label{sec:configure} |
| 957 |
|
| 958 |
This step creates the work directory, and prepares the genomic sequence |
| 959 |
for mapping. |
| 960 |
|
| 961 |
\begin{tabular}{lp{3.0in}} |
| 962 |
|
| 963 |
-configure & |
| 964 |
Instruct the \ESTmapper\ to perform the {\tt configure} command. \\ |
| 965 |
|
| 966 |
-genomic {\it g.fasta} & |
| 967 |
The sequences in {\tt g.fasta} will be used as the genomic sequence. |
| 968 |
The file is a multi-FastA format, and all sequences are used. There |
| 969 |
are no special requirements for the format of the defline, nor are |
| 970 |
there limits on the length or number of sequences.\\ |
| 971 |
|
| 972 |
-memory {\it n} & |
| 973 |
The sequences in {\tt g.fasta} will be partitioned into sets so that |
| 974 |
the search phase will use no more than {\it n} MB of memory per process. |
| 975 |
|
| 976 |
Any sequences in {\tt g.fasta} that are larger than the partition |
| 977 |
size, are placed into a set containing one sequence. A warning is |
| 978 |
printed for such sequences. |
| 979 |
|
| 980 |
{\bf memory usage computation is not rigorously tested; it works for 4000} |
| 981 |
|
| 982 |
The memory usage is approximately 10 bytes per base of genomic sequence. |
| 983 |
|
| 984 |
\end{tabular} |
| 985 |
|
| 986 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 987 |
\section{searchest and searchmrna} |
| 988 |
\label{sec:search} |
| 989 |
|
| 990 |
This step performs the search. |
| 991 |
|
| 992 |
\begin{tabular}{lp{3.0in}} |
| 993 |
|
| 994 |
-searchest {\it label} & |
| 995 |
Instruct the \ESTmapper\ to perform the {\tt search} stage, using |
| 996 |
parameters appropriate for EST sequences. The {\tt label} marks this |
| 997 |
run; it is possible to search multiple sets of sequences against the |
| 998 |
same genomic database without multiple {\tt configure} steps. The |
| 999 |
benefit of this is marginal. |
| 1000 |
\\ |
| 1001 |
-searchmrna {\it label} & |
| 1002 |
Instruct the \ESTmapper\ to perform the {\tt search} stage, using |
| 1003 |
parameters appropriate for mRNA sequencess. See {\tt searchest} for |
| 1004 |
discussion of {\tt label}. |
| 1005 |
\\ |
| 1006 |
-cdna {\it c.fasta} & |
| 1007 |
The sequences in {\tt c.fasta} will be searched. The file is a |
| 1008 |
multi-FastA format, and all sequences are used. There are no |
| 1009 |
special requirements for the format of a defline, nor are there limits |
| 1010 |
on the length or number of sequences. |
| 1011 |
|
| 1012 |
Attempting to map sequences that are not of the specified type (mapping |
| 1013 |
mRNA with EST parameters; mapping non-coding genomic sequence with |
| 1014 |
{\em any} parameters) is not advised. |
| 1015 |
|
| 1016 |
The sequences {\em MUST NOT} be repeat masked. |
| 1017 |
\\ |
| 1018 |
-mersize {\it m} & |
| 1019 |
Instructs the search to use $m$ for the size of the exact-match |
| 1020 |
blocks. A value of $m=20$ seems to be optimal; larger values use more |
| 1021 |
memory, run faster, and are less sensitive. Smaller values use less |
| 1022 |
memory, run slower and result in fewer signals due to spurious |
| 1023 |
matches. |
| 1024 |
|
| 1025 |
Note that in automatic mapping mode, changing the mersize without |
| 1026 |
explicitly specifying the maskmers file is an error. |
| 1027 |
\\ |
| 1028 |
-maskmers {\it m.fasta} & |
| 1029 |
The sequences in {\tt m.fasta} are used to build a list of mers that |
| 1030 |
will be discarded from any matches. While this is generally |
| 1031 |
considered to be a ``Poor Man's RepeatMasker'', the \ESTmapper\ |
| 1032 |
achieves better performance and sensitivity using this strategy than |
| 1033 |
with full-blown repeat masking. |
| 1034 |
|
| 1035 |
The sequences are usually in the {\tt data} subdirectory of the |
| 1036 |
\ESTmapper\ installation. |
| 1037 |
|
| 1038 |
\end{tabular} |
| 1039 |
|
| 1040 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1041 |
\section{filterest and filtermrna} |
| 1042 |
\label{sec:filter} |
| 1043 |
|
| 1044 |
This step filters the signals detected in the search phase, discarding |
| 1045 |
weak signals and keeping strong signals. |
| 1046 |
|
| 1047 |
There are no user-tunable parameters at the present time. |
| 1048 |
|
| 1049 |
\begin{tabular}{lp{3.0in}} |
| 1050 |
|
| 1051 |
-filterest label & |
| 1052 |
Instruct the \ESTmapper\ to perform the {\tt search} stage, using |
| 1053 |
parameters appropriate for EST sequencess. The {\tt label} must |
| 1054 |
be the same as used in the search stage. |
| 1055 |
\\ |
| 1056 |
-filtermrna label & |
| 1057 |
Instruct the \ESTmapper\ to perform the {\tt search} stage, using |
| 1058 |
parameters appropriate for mRNA sequencess. The {\tt label} must |
| 1059 |
be the same as used in the search stage. |
| 1060 |
|
| 1061 |
\end{tabular} |
| 1062 |
|
| 1063 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1064 |
\section{polish} |
| 1065 |
\label{sec:polish} |
| 1066 |
|
| 1067 |
This stage prepares, and optionally performs, the polishing of the |
| 1068 |
signals detected. |
| 1069 |
|
| 1070 |
\begin{tabular}{lp{3.0in}} |
| 1071 |
|
| 1072 |
-polish {\it label} & |
| 1073 |
Instruct the \ESTmapper\ to perform the {\tt polish} stage. The {\tt |
| 1074 |
label} must be the same as used in the search stage. |
| 1075 |
\\ |
| 1076 |
-mincoverage {\it mc} & |
| 1077 |
Polishing is performed so that all results have a {\it percent query-sequence |
| 1078 |
identity} of at least {\tt mc}. See the discussion about quality below. |
| 1079 |
\\ |
| 1080 |
-minidentity {\it mi} & |
| 1081 |
Polishing is performed so that all results have an {\it |
| 1082 |
percent alignment-sequence identity} of at least {\tt mi}. See the discussion about quality below. |
| 1083 |
\\ |
| 1084 |
-alwaysprint {\it ap} & |
| 1085 |
The polisher will always print at least the top $ap$ matches, no |
| 1086 |
matter what their quality. This can be used to find both full-length |
| 1087 |
matches and the top scoring matches for signals without full-length |
| 1088 |
matches. See the discussion about quality below. |
| 1089 |
\\ |
| 1090 |
-relink {\it r} & |
| 1091 |
Sets the {\it Sim4} relink weight. {\bf This is used only for mRNA, and Liliana should probably explain |
| 1092 |
what it does.} |
| 1093 |
\\ |
| 1094 |
-batchsize {\it w} & |
| 1095 |
Signals are processed in batches of size $w$. See the discussion about execution below. |
| 1096 |
\\ |
| 1097 |
-numbatches {\it b} & |
| 1098 |
Signals are processed in $b$ batches. See the discussion about execution below. |
| 1099 |
\\ |
| 1100 |
-farm {\it queue} {\it projectname} & |
| 1101 |
Runs the polishes on the Celera internal compute farm. The {\tt projectname} |
| 1102 |
should be the resource code to use, e.g. {\tt 00006:MRNA:L}. See the |
| 1103 |
discussion about execution below. |
| 1104 |
\\ |
| 1105 |
-local {\it numprocessors} & |
| 1106 |
Runs the polishes on the local machine, using $numprocessors$ concurrent |
| 1107 |
processes. See the discussion about execution below. |
| 1108 |
\\ |
| 1109 |
-runlater & |
| 1110 |
The \ESTmapper\ will generate all the script files needed to perform |
| 1111 |
the polishing step, but will not perform any computation. |
| 1112 |
\\ |
| 1113 |
-aligns & |
| 1114 |
Instruct {\tt Sim4} to also include the alignment lines. This will |
| 1115 |
make your output files VERY large. |
| 1116 |
\\ |
| 1117 |
-abort & |
| 1118 |
Instruct {\tt Sim4} to abort polishing any matches with an unusually large number |
| 1119 |
of MSPs. The aborted matches are saved for later examination. {\bf Need to explain the output format for this!} |
| 1120 |
|
| 1121 |
\end{tabular} |
| 1122 |
|
| 1123 |
\subsection{Polishing Quality} |
| 1124 |
\label{sec:quality} |
| 1125 |
|
| 1126 |
In the absence of {\tt -minidentity} and {\tt -mincoverage} and {\tt |
| 1127 |
-alwaysprint} only the best match is found for each signal. |
| 1128 |
|
| 1129 |
The result of specifying exactly one of {\tt -minidentity} and {\tt |
| 1130 |
-mincoverage} is undefined. Always specify both, even if one is $0$. |
| 1131 |
|
| 1132 |
Specifying {\tt -alwaysprint} without either {\tt -minidentity} and |
| 1133 |
{\tt -mincoverage} will print the best $ap$ matches. |
| 1134 |
|
| 1135 |
The effect of specifying values {\tt -minidentity} and {\tt |
| 1136 |
-mincoverage} and {\tt -alwaysprint} is almost the same as asking for |
| 1137 |
``the good matches, unless none are found, then only the best''. This |
| 1138 |
overcomes the problem {\bf XXX: what problem?} encountered when attempting to map mRNA |
| 1139 |
sequences at very low percent query-sequence identities. mRNA that have |
| 1140 |
excellent full-length matches can also have many inferrior paralogous |
| 1141 |
(partial-)matches. If {\tt -mincoverage 10} is specified, all |
| 1142 |
paralogous matches would be output, in addition to the true |
| 1143 |
match. On the otherhand, for mRNA without full-length matches, we |
| 1144 |
still want to find partial matches, even if they have a query-sequence |
| 1145 |
identity of, say, 20\%. |
| 1146 |
|
| 1147 |
Polishing for a single signal terminates when any of three conditions is met: |
| 1148 |
|
| 1149 |
\begin{tabular}{l} |
| 1150 |
$coverage < mc$ \\ |
| 1151 |
$identity < mc$ \\ |
| 1152 |
$printed > ap$ |
| 1153 |
\end{tabular} |
| 1154 |
|
| 1155 |
\subsection{Execution} |
| 1156 |
|
| 1157 |
The output from the filter step is a large list of signals (4 |
| 1158 |
million human ESTs produce about 60 million filtered signals). |
| 1159 |
To run these efficiently, they are divided into batches. If {\tt |
| 1160 |
-batchsize} is specified, then each batch will contain exactly $w$ |
| 1161 |
signals (except for the last batch), otherwise, {\tt -numbatches b} |
| 1162 |
batches are formed. |
| 1163 |
|
| 1164 |
It neither of {\tt -batchsize} and {\tt -numbatches} are specified, |
| 1165 |
then the signals are divided into 256 or fewer batches. A batch will |
| 1166 |
always contain at least 500 signals. |
| 1167 |
|
| 1168 |
These batches can be processed on the local hardware ({\tt -local} |
| 1169 |
option) or on the Celera internal compute farm ({\tt -farm} option). |
| 1170 |
If they are processed locally, then $p$ {\tt Sim4} processes will run |
| 1171 |
concurrently (regardless of the number of CPUs actually available --- |
| 1172 |
yes, it is possible to do {\tt -local 256}. It is optimal to run |
| 1173 |
exactly one {\tt Sim4} process per available processor. If they are |
| 1174 |
processed on the farm, they are submitted to the specified queue / |
| 1175 |
project name. The \ESTmapper\ will terminate immediately after the |
| 1176 |
jobs are submitted; when they have finished, simply rerun the script |
| 1177 |
to continue. |
| 1178 |
|
| 1179 |
|
| 1180 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 1181 |
\section{assembleoutput} |
| 1182 |
\label{sec:assembleoutput} |
| 1183 |
|
| 1184 |
This stage collects the output from the polishing stage, and classifies the |
| 1185 |
matches into quality groups. |
| 1186 |
|
| 1187 |
\begin{tabular}{lp{3.0in}} |
| 1188 |
|
| 1189 |
-assembleoutput {\it label} & |
| 1190 |
Instruct the \ESTmapper\ to assemble the output. The {\tt |
| 1191 |
label} must be the same as used in the search stage. |
| 1192 |
\\ |
| 1193 |
-good {\it mi} & |
| 1194 |
Labels matches with $mi$ or better percent alignment-sequence identity as ``good''. |
| 1195 |
\\ |
| 1196 |
-short {\it mc} & |
| 1197 |
Labels matches with less than $mc$ percent query-sequence identity as ``short''. |
| 1198 |
|
| 1199 |
\end{tabular} |
| 1200 |
|
| 1201 |
{\bf Note about the filter values being at least +5 the polish values here....} |
| 1202 |
|
| 1203 |
\end{document} |