Description Usage Arguments Value Examples
View source: R/bam_to_junctions.R
Given a BAM file, extract junction information including co-ordinates, strand, anchor length for each junction read. For details on the format of the output TSV file, check https://github.com/ChristopherWilks/megadepth#junctions.
1 2 3 4 5 6 7 8 |
bam_file |
A |
prefix |
A |
all_junctions |
A |
junctions |
A |
long_reads |
A |
overwrite |
A |
A character(1)
with the path to the output junction tsv file.
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Install if necessary
install_megadepth()
## Find the example BAM file
example_bam <- system.file("tests", "test.bam",
package = "megadepth", mustWork = TRUE
)
## Run bam_to_junctions()
example_jxs <- bam_to_junctions(example_bam, overwrite = TRUE)
## Path to the output file generated by bam_to_junctions()
example_jxs
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.