Skip to content

Commit 100d422

Browse files
committed
revert 3738e7e
1 parent bb049ee commit 100d422

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

README.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,12 @@ You need R version >= 2.15.0 and Python 2.7 to be able to use ngs.plot. Please a
7070
biocLite( "BSgenome" )
7171
biocLite( "Rsamtools" )
7272
biocLite( "ShortRead" )
73-
biocLite( "GenomicFiles" )
7473
```
7574

7675
1. (Optional) Install ngsplot package in Galaxy: read the `galaxy/README.txt` for instructions. A wiki will be provided to demonstrate the workflow of ngs.plot in Galaxy.
7776

7877
# USAGE
79-
A wiki-page has been created for detailed explanation of each argument: [ProgramArguments101](https://github.com/shenlab-sinai/ngsplot/wiki/ProgramArguments101). Quick tip: when you type one of the commands without specifying any argument, the program will print out a brief usage.
78+
A wiki-page has been created for detailed explanation of each argument: [ProgramArguments101](https://github.com/shenlab-sinai/ngsplot/wiki/ProgramArguments101). Quick tip: when you type one of the commands without specifying any argument, the program will print out a brief usage.
8079

8180
## Manipulate annotation database and the use of option "-F"
8281
The `ngsplotdb.py` script is easy to use. Here are a few examples:
@@ -201,7 +200,7 @@ Usage: plotCorrGram.r -I ngsplot_output.zip -O output_name [Options]
201200
```
202201
The avgprof and heatmap plotted by ngs.plot like this:
203202
204-
![hesc.k27.genebody.all.png](./webimgs/hesc.k27.genebody.all.png)
203+
![hesc.k27.genebody.all.png](./webimgs/hesc.k27.genebody.all.png)
205204
206205
For all the above examples, data are from: **ENCODE Project Consortium, et al. (2012). An integrated encyclopedia of DNA elements in the human genome. Nature 489, 57-74.**
207206

lib/coverage.r

+1-5
Original file line numberDiff line numberDiff line change
@@ -419,10 +419,6 @@ REDUCEsampler.ngsplot <- function(sampleSize=500, verbose=FALSE){
419419
# Adapted from Martin Morgan's post:
420420
# https://support.bioconductor.org/p/64231/
421421
# Require library: GenomicFiles
422-
# Args:
423-
# sampleSize: reads sampled from bam file.
424-
# verbose: turn on verbose output.
425-
426422
tot <- 0L
427423
function(x, y, ...) {
428424
if (length(x) < sampleSize)
@@ -459,7 +455,7 @@ estiMapqStyle <- function(bam.file){
459455
sbp <- ScanBamParam(what=sbw, flag=scanBamFlag(
460456
isUnmappedQuery=F, isDuplicate=F))
461457
samp <- BamFile(bam.file, yieldSize=500)
462-
yield <- function(x) readGAlignments(x, param=sbp)
458+
yield <- function(x) readGAlignments(x, param=ScanBamParam(what=sbw))
463459
map <- identity
464460
samp.reads <- reduceByYield(samp, yield, map, REDUCEsampler.ngsplot(500, FALSE))
465461
samp.len <- length(samp.reads)

0 commit comments

Comments
 (0)