search for: matt_plot

Displaying 1 result from an estimated 1 matches for "matt_plot".

Did you mean: matplot
2010 Nov 04
4
how to work with long vectors
...ntig79:11 34 matt<-read.table("/house/groupdirs/genetic_analysis/mjblow/ILLUMINA_ONLY_MICROBIAL_GENOME_ASSEMBLY/4083340/STANDARD_LIBRARY/GWZW.994.5.1129.trim_69.fastq.19621832.sub.sorted.bam.clone.depth", sep="\t", skip=0, header=F,fill=T) # dim(matt) [1] 3384766 2 matt_plot<-function(matt, outputfile) { names(matt)<-c("id","reads") cover<-matt$reads #calculate the cumulative coverage. + cover_per<-function (data) { + output<-numeric(0) + for (i in data) { + x<-(100*sum(ifelse(data >= i, 1, 0))/length(data)) +...