WigRepeatAnalyzer(filename, inputFolder, outputFolder="./", repeatMaskerFilePath, isRegex=FALSE)
This annotation file must formatted as the Repeat Masker annotations file provided by UCSC. The required information are:
The script compute the coverage of each repeat class and family (i.e. the percentage of positions falling into each annotations) and the weight of each class and family (i.e. the percentage of score falling into each annotations). All results are provided as barplots figures and text files.
processPipeline
# Build temp dir
exampleFolder <- tempdir()
# Generate artificial wig fixed step files with random counts
nbChromosomes <- 1
bin_size <- 200
wigScoresContent <- lapply(as.list(1:nbChromosomes),
function(y) {sample(x=1:20,
size=floor(4333587/bin_size),
replace=TRUE,
prob=NULL)})
names(wigScoresContent) <- 1:nbChromosomes
writeWIG(wigScoresContent,
"wigFileExample",
folder=exampleFolder,
fixedStep=bin_size)
# Define input file
my_wig_file <- "wigFileExample.wig"
# Define the RepeatMasker file
my_repeat_masker_file <- system.file("extdata",
"mm9_RepeatMasker_2000l.txt",
package="Pasha")
## Not run:
# # Launch the script
# result <- WigRepeatAnalyzer(filename=my_wig_file,
# inputFolder=exampleFolder,
# outputFolder=exampleFolder,
# repeatMaskerFilePath=my_repeat_masker_file)
# ## End(Not run)
Run the code above in your browser using DataLab