6/8/2023 0 Comments Bam file formatBAM is a binary file, below R command will display the size in "autp" scale, e.g., MB/ GB, etc.: utils:::format.object_size((filename)$size, "auto") # "8.3 Gb"īecause the file is has over 7 GB Rsamtools does not loads the entire file right away. See how to hide output in R Markdown): library(Rsamtools)ĭefine a filename – the name of the file that was downloaded: filename = '.1.bam' In order to make the output here in the R Markdown clear, these messages were hidden. (During importing the Rsamtools library there are pleanty of messages being displayed. The first step of loading the data in our example is to import the required library: Rsamtools. e.g., in the course by Irizarry & Love (2015): Importing NGS data into Bioconductor. Information on what libraries are needed to load and manipulate on BAM files can be found.
0 Comments
Leave a Reply. |