Blib class for generating blib files from dat and other id file formats
build(idfiles, outfile, cutoff = 0.9)
build blibfile
filter(infile, outfile, minpeaks = 1, minscore = 0)
filter blib file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
BB <- Blib()
datdir <- "inst/extdata"
dir(datdir)
tmp <- file.path(datdir,dir(datdir))
zip <- grep("*.zip",tmp,value=T)
unzip(zip ,exdir = datdir)
dat <-grep("*\\.dat",file.path(datdir,dir(datdir)),value=T)
BB$build(dat , outfile = "test0_0.blib", cutoff=0.0 )
BS <- Bibliospec("test0_0.blib")
BS$summary()
spectrMet <- BS$getSpectraMeta()
peaks <- BS$getPeaks()
head(peaks)
length(unique(peaks$RefSpectraId))
BS <- NULL
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.