Description Usage Arguments Details Value Author(s) References Examples
Construct wiggle files from an aligned ChIP-sep read file.
1 2 3 |
infile |
Name of the aligned read file to be processed. |
fileFormat |
Format of the aligned read file to be processed.
Currently, |
outfileLoc |
Directory of processed wiggle files. By default, processed wiggle files are exported to the current directory. |
byChr |
Construct separate wiggle file for each chromosome?
Possible values are |
useChrfile |
Is the file for chromosome info provided?
Possible values are |
chrfile |
Name of the file for chromosome info. In this file, the first and second columns are ID and size of each chromosome, respectively. |
excludeChr |
Vector of chromosomes that will be excluded from the analysis.
This argument is ignored if |
PET |
Is the file paired-end tag (PET) data?
If |
fragLen |
Average fragment length. Default is 200.
This argument is ignored if |
span |
Span used in wiggle files. Default is 200. |
capping |
Maximum number of reads allowed to start at each nucleotide position.
To avoid potential PCR amplification artifacts, the maximum number of reads
that can start at a nucleotide position is capped at |
normConst |
Normalizing constant to scale values in each position. |
perl |
Name of the perl executable to be called. Default is |
Wiggle files are constructed from the aligned read file and
exported to the directory specified in outfileLoc
argument.
If byChr=FALSE
, wiggle files are named
as [infileName]_fragL[fragLen]_span[span].wig
for SET data (PET = FALSE
)
and [infileName]_span[span].wig
for PET data (PET = TRUE
).
If byChr=TRUE
, wiggle files are named
as [infileName]_fragL[fragLen]_span[span]_[chrID].wig
for SET data (PET = FALSE
)
and [infileName]_span[span]_[chrID].wig
for PET data (PET = TRUE
),
where chrID
is chromosome IDs that reads align to.
These chromosome IDs are extracted from the aligned read file.
If the file for chromosome information is provided (useChrfile=TRUE
and chrfile
is not NULL),
only the chromosomes specified in the file will be considered.
Chromosomes that are specified in excludeChr
will not be included in the processed wiggle files.
excludeChr
argument is ignored if useChrfile=TRUE
.
generateWig
currently supports the following aligned read file formats
for SET data (PET = FALSE
):
Eland result ("eland_result"
), Eland extended ("eland_extended"
),
Eland export ("eland_export"
), default Bowtie ("bowtie"
),
SAM ("sam"
), , "bam"
(BAM), BED ("bed"
), and CSEM ("csem"
).
For PET data (PET = TRUE
), the following aligned read file formats are allowed:
"eland_result"
(Eland result), "sam"
(SAM), and "bam"
(BAM).
If input file format is neither BED nor CSEM BED, this method retains only reads mapping uniquely to the reference genome.
Processed wig files are exported to the directory specified in outfileLoc
.
Dongjun Chung, Pei Fen Kuan, Rene Welch, Sunduz Keles
Kuan, PF, D Chung, JA Thomson, R Stewart, and S Keles (2011), "A Statistical Framework for the Analysis of ChIP-Seq Data", Journal of the American Statistical Association, Vol. 106, pp. 891-903.
Chung, D, Zhang Q, and Keles S (2014), "MOSAiCS-HMM: A model-based approach for detecting regions of histone modifications from ChIP-seq data", Datta S and Nettleton D (eds.), Statistical Analysis of Next Generation Sequencing Data, Springer.
1 2 3 4 5 6 7 8 | ## Not run:
library(mosaicsExample)
generateWig( infile=system.file( file.path("extdata","wgEncodeSydhTfbsGm12878Stat1StdAlnRep1_chr22_sorted.bam"), package="mosaicsExample"),
fileFormat="bam", outfileLoc="~/",
PET=FALSE, fragLen=200, span=200, capping=0, normConst=1 )
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.