Order a SAM file using Picard

Some times we need to order the reads of a SAM file, may be to use it with GATK. A way to do it is using Picard>:

java -Xmx2g -jar SortSam.jar 
    I=HG00096.sam 
    O=HG00069.sort.sam 
    SO=coordinate

We can also get, directly, the BAM file:

java -Xmx2g -jar SortSam.jar  
    I=HG00096.sam 
    O=HG00069.sort.bam 
    SO=coordinate
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: