[BioC] convertion from SAM to BAM

Martin Morgan mtmorgan at fhcrc.org
Tue Apr 26 15:37:20 CEST 2011


On 04/26/2011 06:26 AM, Steve Lianoglou wrote:
> Hi,
>
> On Tue, Apr 26, 2011 at 9:17 AM, João Moura<palerma at gmail.com>  wrote:
>> Thank you Sean and Paul,
>>
>> Actually I was looking for something to using in R without calling samtools.
>
> To convert sam ->  bam without leaving the comfort of your aRm chair, try:
>
> R>  library(Rsamtools)
> R>  ?asBam
>
> Scan the docs to see how asBam works.
>
> I'm not sure when that was added. If you don't see it in your install,
> maybe you need to be running R-2.13 and bioc 2.8

Rsamtools tries to keep it's NEWS file up-to-date, so

 > news(package="Rsamtoools")

Changes in version 1.4.0:

NEW FEATURES
...
     o   asBam converts SAM files to (indexed) BAM files

Martin

>
> -steve
>


-- 
Computational Biology
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109

Location: M1-B861
Telephone: 206 667-2793



More information about the Bioconductor mailing list