Description Usage Arguments Value Examples
Note that readlength table is expected to contain all reads (not only the reads that have an alignment)
1 | blaST2GR(blastresults, readlength)
|
blastresults |
A tibble obtained with the readBlast function (containing strand info) |
readlength |
A tibble with 2 columns named ReadName and ReadLength. This table is expected to contain all reads, not only those having an alignment to the vector |
GRanges
1 2 3 4 5 6 7 8 9 10 11 | ## Import some blast result data:
Path2Blast <- system.file("extdata", "BAC02_Blast18S.res", package = "NanoBAC")
myblastResult <- readBlast(Path2Blast)
## Import a 2-column table with ReadName and ReadLength:
Path2ReadLength <- system.file("extdata", "BAC02_ReadLength.tsv", package = "NanoBAC")
ReadLengthTable <- read.table(Path2ReadLength,
sep = "\t", header = FALSE,
stringsAsFactors = FALSE,
col.names = c("ReadName", "ReadLength"))
## Convert the blast result table to a GRanges
myBlastGR <- blaST2GR(myblastResult, ReadLengthTable)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.