-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathHiC-Bench_manual.tex
272 lines (248 loc) · 11.4 KB
/
HiC-Bench_manual.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
\documentclass{article}\usepackage[]{graphicx}\usepackage[]{color}
%% maxwidth is the original width if it is less than linewidth
%% otherwise use linewidth (to make sure the graphics do not exceed the margin)
\makeatletter
\def\maxwidth{ %
\ifdim\Gin@nat@width>\linewidth
\linewidth
\else
\Gin@nat@width
\fi
}
\makeatother
\definecolor{fgcolor}{rgb}{0.345, 0.345, 0.345}
\newcommand{\hlnum}[1]{\textcolor[rgb]{0.686,0.059,0.569}{#1}}%
\newcommand{\hlstr}[1]{\textcolor[rgb]{0.192,0.494,0.8}{#1}}%
\newcommand{\hlcom}[1]{\textcolor[rgb]{0.678,0.584,0.686}{\textit{#1}}}%
\newcommand{\hlopt}[1]{\textcolor[rgb]{0,0,0}{#1}}%
\newcommand{\hlstd}[1]{\textcolor[rgb]{0.345,0.345,0.345}{#1}}%
\newcommand{\hlkwa}[1]{\textcolor[rgb]{0.161,0.373,0.58}{\textbf{#1}}}%
\newcommand{\hlkwb}[1]{\textcolor[rgb]{0.69,0.353,0.396}{#1}}%
\newcommand{\hlkwc}[1]{\textcolor[rgb]{0.333,0.667,0.333}{#1}}%
\newcommand{\hlkwd}[1]{\textcolor[rgb]{0.737,0.353,0.396}{\textbf{#1}}}%
\usepackage{framed}
\makeatletter
\newenvironment{kframe}{%
\def\at@end@of@kframe{}%
\ifinner\ifhmode%
\def\at@end@of@kframe{\end{minipage}}%
\begin{minipage}{\columnwidth}%
\fi\fi%
\def\FrameCommand##1{\hskip\@totalleftmargin \hskip-\fboxsep
\colorbox{shadecolor}{##1}\hskip-\fboxsep
% There is no \\@totalrightmargin, so:
\hskip-\linewidth \hskip-\@totalleftmargin \hskip\columnwidth}%
\MakeFramed {\advance\hsize-\width
\@totalleftmargin\z@ \linewidth\hsize
\@setminipage}}%
{\par\unskip\endMakeFramed%
\at@end@of@kframe}
\makeatother
\definecolor{shadecolor}{rgb}{.97, .97, .97}
\definecolor{messagecolor}{rgb}{0, 0, 0}
\definecolor{warningcolor}{rgb}{1, 0, 1}
\definecolor{errorcolor}{rgb}{1, 0, 0}
\newenvironment{knitrout}{}{} % an empty environment to be redefined in TeX
\usepackage{alltt}
\usepackage[sc]{mathpazo} %
\renewcommand{\familydefault}{\sfdefault} % sets the default font type to sans-serif
\usepackage{helvet} % sets the font to Helvetica, scaled 95%
\usepackage[T1]{fontenc}
\usepackage{geometry}
\geometry{verbose,tmargin=2.5cm,bmargin=2.5cm,lmargin=2.5cm,rmargin=2.5cm}
\setcounter{secnumdepth}{3} % number for section levels, in text
\setcounter{tocdepth}{2} % inclusion of section levels in ToC
% %\usepackage{array,booktabs}
\usepackage{cite}
\usepackage[labelfont=bf]{caption}
\usepackage[unicode=true,pdfusetitle,
bookmarks=true,bookmarksnumbered=true,bookmarksopen=true,bookmarksopenlevel=2,
breaklinks=false,pdfborder={0 0 1},backref=false,colorlinks=trues]
{hyperref} % colorlinks=false
\definecolor{darkblue}{rgb}{0.0,0.0,0.3}
\hypersetup{colorlinks,breaklinks,
linkcolor=darkblue,urlcolor=darkblue,
anchorcolor=darkblue,citecolor=darkblue}
% %\hypersetup{pdfstartview={XYZ null null 1}} %this is knitr default
\usepackage{breakurl}
% \usepackage{etoolbox}
\usepackage{forloop}
\usepackage{tikz}
% \usepackage{subcaption}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{url}
\usepackage{xcolor,colortbl}
% ~~~~~ for source code formatting
\usepackage{listings}
\usepackage{color}
\definecolor{mygreen}{rgb}{0,0.6,0}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\lstset{ %
backgroundcolor=\color{white}, % choose the background color; you must add \usepackage{color} or \usepackage{xcolor}
basicstyle=\scriptsize, % the size of the fonts that are used for the code
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
breaklines=true, % sets automatic line breaking
captionpos=b, % sets the caption-position to bottom
commentstyle=\color{mygreen}, % comment style
deletekeywords={...}, % if you want to delete keywords from the given language
escapeinside={\%*}{*)}, % if you want to add LaTeX within your code
extendedchars=true, % lets you use non-ASCII characters; for 8-bits encodings only, does not work with UTF-8
frame=single, % adds a frame around the code
keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
keywordstyle=\color{blue}, % keyword style
language=bash, % the language of the code
otherkeywords={*,...}, % if you want to add more keywords to the set
numbers=left, % where to put the line-numbers; possible values are (none, left, right)
numbersep=5pt, % how far the line-numbers are from the code
numberstyle=\tiny\color{mygray}, % the style that is used for the line-numbers
rulecolor=\color{black}, % if not set, the frame-color may be changed on line-breaks within not-black text (e.g. comments (green here))
showspaces=false, % show spaces everywhere adding particular underscores; it overrides 'showstringspaces'
showstringspaces=false, % underline spaces within strings only
showtabs=false, % show tabs within strings adding particular underscores
stepnumber=2, % the step between two line-numbers. If it's 1, each line will be numbered
stringstyle=\color{mymauve}, % string literal style
tabsize=2, % sets default tabsize to 2 spaces
title=\lstname % show the filename of files included with \lstinputlisting; also try caption instead of title
}
%%%%%%
% for the footer
% \usepackage{lastpage}
% \usepackage{fancyhdr}
% \pagestyle{fancy}
% \cfoot{\thepage\ of \pageref{LastPage}}
\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\usepackage{lastpage}% http://ctan.org/pkg/lastpage
\pagestyle{fancy}% Set default page style to fancy
\renewcommand{\headrulewidth}{0pt}% Remove header rule
\fancyhead{}% Remove all header contents
\cfoot{Page \thepage\ of \pageref{LastPage}}% Page X of Y in the footer (centered)
%%%%%%%
% \usepackage{tabularx}
% \usepackage{tabulary}
\usepackage[absolute]{textpos} % use this for the header text block
%%%%%%
\listfiles % list the packages and versions used in the .log file upon compilation
%%%%
\IfFileExists{upquote.sty}{\usepackage{upquote}}{}
\begin{document}% there are some commands in latex you can mess with; never mess with this one
% Also, never mess with the following chunk unless you think you know what you're doing:
\title{HiC-Bench Manual}
\author{Stephen M. Kelly\,$^{1,}$$^{2}$, Charalampos Lazaris\,$^{3,}$$^{4,}$$^{5}$, Aristotelis Tsirigos\,$^{1,}$$^{2,}$$^{3,}$$^{4,}$$^{5}$
\\
\footnotesize $^{1}$ Applied Bioinformatics Center, Office of Collaborative Science, NYU School of Medicine, NY 10016, USA\\
\footnotesize $^{2}$ Genome Technology Center, Office of Collaborative Science, NYU School of Medicine, NY 10016, USA\\
\footnotesize $^{3}$ Department of Pathology, NYU School of Medicine, New York, New York 10016, USA\\
\footnotesize $^{4}$ NYU Cancer Institute and Helen L. and Martin S. Kimmel Center for Stem Cell Biology, NYU School of Medicine, New York, New York 10016, USA\\
\footnotesize $^{5}$ Center for Health Informatics \& Bioinformatics, NYU School of Medicine, NY 10016, USA\\
}
\date{\today}
\maketitle
% header block with logo
{\footnotesize
\textblockorigin{-18pt}{-2pt}
\begin{textblock*}{10cm}(2cm,1cm)
\includegraphics[height=2.5cm,keepaspectratio]{figure/NYULMC_white.jpg}
\end{textblock*}}
% old logo in center of page
% \begin{figure}[!h]
% \centering
% \includegraphics[height=2cm]{figure/NYULMC_white.jpg} % no image scaling
% % \caption{My caption}
% \label{fig:title-image}
% \end{figure}
{\footnotesize \tableofcontents \listoffigures}
\section{Introduction} % basic description of the pipeline and its usage
\input{child/Introduction/install-setup-run.tex}
\input{child/Introduction/dependencies.tex}
\clearpage
\section{Default Pipeline Components} \label{default-pipeline} % description of pipeline components
\input{child/default-pipeline-components.tex}
\clearpage
% come back to this section
% \section{Pipeline Code Structure} \label{code-structure}
% \input{child/code-structure.tex}
% \clearpage
% hold off on auto report
% \section{Automatic Reports} \label{auto-report} % description of automatic reports and their components
% \input{child/auto_report.tex}
% \clearpage
% move this to the intro
% \section{Dependencies} \label{dependency}% description of dependencies needed
% \clearpage
% hold off on this section as well
% \section{Modifying the Pipeline} \label{custom-pipeline-step} % requirements for modifying the pipeline
% \input{child/custom_pipeline_step.tex}
% \clearpage
\section[Custom Pipeline Steps]{Adding Custom Pipeline Steps}\label{custom-pipeline-steps}%
\input{child/Appendix/custom-pipeline-step.tex}
\section{HiC-Seq Pipeline}
\input{child/HiC/index.tex}
\input{child/HiC/align.tex}% __01a-align
\input{child/HiC/filter.tex} % __02a-filter
\input{child/HiC/filter-stats.tex}% __02b-filter-stats
\input{child/HiC/tracks.tex}% __03a-tracks
\input{child/HiC/matrix-filtered.tex}% __04a-matrix-filtered
\input{child/HiC/matrix-prep.tex}% __05a-matrix-prep
\input{child/HiC/matrix-ic.tex}% __06a-matrix-ic
\input{child/HiC/matrix-hicnorm.tex}% __07a-matrix-hicnorm
\input{child/HiC/matrix-stats.tex}% __08a-matrix-stats
\input{child/HiC/compare-matrices.tex}% __09a-compare-matrices
\input{child/HiC/compare-matrices-stats.tex}% __09b-compare-matrices-stats
\input{child/HiC/boundary-scores.tex}% __10a-boundary-scores
\input{child/HiC/boundary-scores-pca.tex}% __10b-boundary-scores-pca
\input{child/HiC/domains.tex}% __11a-domains
\input{child/HiC/compare-boundaries.tex}% __12a-compare-boundaries
\input{child/HiC/compare-boundaries-stats.tex}% __12b-compare-boundaries-stats
\input{child/HiC/hicplotter.tex}% __13a-hicplotter
\input{child/HiC/interactions.tex}% __14a-interactions
\input{child/HiC/annotations.tex}% __15a-annotations
\input{child/HiC/annotations-stats.tex}% __15b-annotations-stats
% \clearpage
\section{Appendix}
\input{child/Appendix/appendix.tex}
\input{child/Appendix/gtools-hic.tex}
\input{child/Appendix/pipeline-master-explorer.tex}
% \input{child/Appendix/gtools-overlaps.tex} % don't include this one
% \newpage
% \pagebreak
\clearpage
\subsection{System and Session Information}\label{session}
This document was created with: \LaTeXe~ \fmtversion
\begin{knitrout}
\definecolor{shadecolor}{rgb}{0.969, 0.969, 0.969}\color{fgcolor}\begin{kframe}
\begin{alltt}
\hlkwd{system}\hlstd{(}\hlstr{'uname -srv'}\hlstd{,}\hlkwc{intern}\hlstd{=T)}
\end{alltt}
\begin{verbatim}
## [1] "Linux 2.6.32-573.18.1.el6.x86_64 #1 SMP Tue Feb 9 22:46:17 UTC 2016"
\end{verbatim}
\begin{alltt}
\hlkwd{sessionInfo}\hlstd{()}
\end{alltt}
\begin{verbatim}
## R version 3.2.3 (2015-12-10)
## Platform: x86_64-redhat-linux-gnu (64-bit)
## Running under: CentOS release 6.7 (Final)
##
## locale:
## [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
## [4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
## [7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
## [10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] knitr_1.12.3
##
## loaded via a namespace (and not attached):
## [1] magrittr_1.5 formatR_1.2.1 tools_3.2.3 stringi_1.0-1 highr_0.5.1 stringr_1.0.0
## [7] evaluate_0.8
\end{verbatim}
\end{kframe}
\end{knitrout}
\input{child/Appendix/file_list_latex.tex}
\end{document}