Expected learning outcome
The objective of this activity is to help you understand how to run velvet in general, how to accurately estimate the insert size of a paired-end library through the use of Bowtie, the primary parameters of velvet, and the process involved in producing a de novo assembly from Illumina reads.
Type the following commands in R to calculate mean and standard deviation, and draw a histogram of the insert size distributions:
- sizes <- as.numeric(readLines("300bp_pe_def.sizes"))
mean(sizes, na.rm=TRUE)
median(sizes, na.rm=TRUE)
sd(sizes, na.rm=TRUE)
hist(sizes, nclass=50)
sizes <- as.numeric(readLines("3kb_mp_def.sizes"))
mean(sizes, na.rm=TRUE)
median(sizes, na.rm=TRUE)
sd(sizes, na.rm=TRUE)
hist(sizes, nclass=50)
http://molecularevolution.org/resources/activities/velvetbowtie_activity
when I get to hist I get this error:
ReplyDelete> hist(sizes, nclass=50)
Error in hist.default(sizes, nclass = 50) :
hist.default: pretty() error, breaks=
In addition: Warning messages:
1: In min(x) : no non-missing arguments to min; returning Inf
2: In max(x) : no non-missing arguments to max; returning -Inf