BWA mem

229 views
Skip to first unread message

Venice Margarette Juanillas

unread,
Oct 20, 2014, 3:38:18 AM10/20/14
to tas...@googlegroups.com
Hi,

I was trying to use BWA-MEM in aligning the tags to the reference genome. I'm successful in generating the sam output but it upon trying to convert SAM to TOPM, I've been getting this error:

...
...
Found 187158 tags in SAM file.  Assuming BWA file format.


Catch in reading SAM alignment file at tag 0:
        length=64count=11       0       2       22880099        60      64M    *          0       0       CAGCAAAAAAACATCCAATCCAACCTACGCGCGCAAGACCAAAAGGAAGCCGTCCGCCGCCGGC          ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff        NM:i:0 AS:i:64  XS:i:0
Error: java.lang.NullPointerException


java.lang.NullPointerException
        at net.maizegenetics.gbs.maps.TagsOnPhysicalMap.parseSAMAlignment(TagsOnPhysicalMap.java:673)
        at net.maizegenetics.gbs.maps.TagsOnPhysicalMap.readSAMFile(TagsOnPhysicalMap.java:615)
        at net.maizegenetics.gbs.maps.SAMConverterPlugin.performFunction(SAMConverterPlugin.java:55)
        at net.maizegenetics.plugindef.AbstractPlugin.dataSetReturned(AbstractPlugin.java:201)
        at net.maizegenetics.plugindef.ThreadedPluginListener.run(ThreadedPluginListener.java:29)

What should I do?

Thanks and Best Regards,
Venice

Jeff Glaubitz

unread,
Oct 20, 2014, 7:40:36 PM10/20/14
to tas...@googlegroups.com

Hi Venice,

 

BWA aln produces an “XO” field (=number of best hits) while BWA mem doesn’t (causing the null pointer exception).  So far, the SAMConverterPlugin only works with

(1) BWA aln, or

(2) bowtie2 with the default, one output line per query, option.

 

For now, please use either BWA aln or bowtie2.

 

Best,

 

Jeff

 

--

Jeff Glaubitz

Project Manager

Biology of Rare Alleles in Maize and its Wild Relatives

National Science Foundation award IOS-1238014

http://www.panzea.org

Institute for Genomic Diversity

Cornell University

175 Biotechnology Bldg

Ithaca, NY 14853

Phone: 607-255-1386

jcg...@cornell.edu

--
You received this message because you are subscribed to the Google Groups "TASSEL - Trait Analysis by Association, Evolution and Linkage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tassel+un...@googlegroups.com.
To post to this group, send email to tas...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tassel/2a165bef-15a3-4992-af6c-18b5840c9268%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Venice Margarette Juanillas

unread,
Oct 22, 2014, 9:36:58 PM10/22/14
to tas...@googlegroups.com
Hi Jeff,

Thanks for the reply. I'll stick to BWA aln then.

Best Regards,
Venice
Reply all
Reply to author
Forward
0 new messages