Skip to content
This repository has been archived by the owner on Oct 17, 2022. It is now read-only.

Commit

Permalink
update automation scripts to reflect new methcounts format
Browse files Browse the repository at this point in the history
  • Loading branch information
bdecato committed Aug 4, 2014
1 parent a9d58c9 commit 248b0da
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 30 deletions.
Binary file modified docs/methpipe-manual.pdf
Binary file not shown.
46 changes: 23 additions & 23 deletions docs/methpipe-manual.tex
Original file line number Diff line number Diff line change
Expand Up @@ -1485,9 +1485,9 @@ \subsection{Automating methylome analysis}
on the individual library level and aggregated biological replicate level.
For each library in a project, \prog{library} sorts, removes duplicate
reads, calculates the bisulfite conversion rate, runs \prog{methcounts}, and
runs \prog{levels}. There is also an option to perform \prog{methcounts}
analysis on all cytosines, which can be toggled by uncommenting the command
in the script. For RRBS data, the \prog{duplicate-remover} command should
runs \prog{levels}. Keep in mind that this will produce \prog{methcounts}
output for all cytosine contexts, which corresponds to a 25GB file for the
human genome. For RRBS data, the \prog{duplicate-remover} command should
be commented.

To run \prog{library}, navigate to the library's results directory --
Expand All @@ -1504,31 +1504,31 @@ \subsection{Automating methylome analysis}
/home/user/Desktop/mm9_chroms Human_ESC_R1_L1
\end{verbatim}

%When \prog{library} has been run on all individual libraries, the
%results can be merged to produce results for the biological replicate using
%\prog{merge-methylomes}. This merges bisulfite conversion rate and methcounts
%statistics, and then uses them to generate HMRs, PMRs, and AMRs. To run
%\prog{merge-methylomes}, navigate to the biological replicate's results
%directory -- the structure should look something like
%\begin{verbatim}
%./Human_ESC/Human_ESC_R1/results_mm9/
%\end{verbatim}
%and should be empty when the program starts. To run, specify the same command
%line arguments as above, with the biological replicate as the base name:
%\begin{verbatim}
%biorep /home/user/Desktop/methpipe/trunk/bin \
% /home/user/Desktop/mm9_chroms Human_ESC_R1 L
%\end{verbatim}
%
%In some cases, it is useful to merge biological replicates rather than
%libraries. In this case, the fourth parameter of
%\prog{merge-methylomes} should be \op{R}.
When \prog{library} has been run on all individual libraries, the
results can be merged to produce results for the biological replicate using
\prog{merge-methylomes}. This merges bisulfite conversion rate and methcounts
statistics, and then uses them to generate HMRs, PMRs, and AMRs. To run
\prog{merge-methylomes}, navigate to the biological replicate's results
directory -- the structure should look something like
\begin{verbatim}
./Human_ESC/Human_ESC_R1/results_mm9/
\end{verbatim}
and should be empty when the program starts. To run, specify the same command
line arguments as above, with the biological replicate as the base name:
\begin{verbatim}
merge-methylomes /home/user/Desktop/methpipe/trunk/bin \
/home/user/Desktop/mm9_chroms Human_ESC_R1 L
\end{verbatim}

In some cases, it is useful to merge biological replicates rather than
libraries. In this case, the fourth parameter of
\prog{merge-methylomes} should be \op{R}.

All run configurations for the programs in these scripts are
consistent with data in methbase, and therefore direct comparison is
appropriate. These tools should provide a convenient, consistent
workflow for researchers to quickly analyze and compare their
methylomes with those made publically available in methbase.
methylomes with those made publicly available in methbase.

\subsection{Mapping methylomes between species}
\label{sec:mapp-methyl-betw}
Expand Down
7 changes: 1 addition & 6 deletions src/pipeline/library
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright (C) 2012 University of Southern California
# Copyright (C) 2014 University of Southern California
# Authors: Benjamin Decato, Andrew D. Smith
#
# This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -42,9 +42,4 @@ ${BINPATH}/methcounts -c ${CHROMS} -S ${BASE_NAME}.methstats \
${BINPATH}/levels -o ${BASE_NAME}.levels ${BASE_NAME}.meth
${BINPATH}/methstates -c ${CHROMS} -o ${BASE_NAME}.epiread ${BASE_NAME}.mr.uniq

#### UNCOMMENT FOR ALL CYTOSINES
## ${BINPATH}/methcounts -N -c ${CHROMS} -S \
## ${BASE_NAME}_all.methstats -o ${BASE_NAME}_all.meth \
## ${BASE_NAME}.mr.uniq

rm ${BASE_NAME}.mr.uniq
2 changes: 1 addition & 1 deletion src/pipeline/merge-methylomes
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

# Copyright (C) 2012 University of Southern California
# Copyright (C) 2014 University of Southern California
# Authors: Benjamin Decato, Andrew D. Smith
#
# This program is free software; you can redistribute it and/or modify
Expand Down

0 comments on commit 248b0da

Please sign in to comment.