Hi, this might be a basic java question but I'm wondering how to set this class right here
http://picard.sourceforge.net/javadoc/net/sf/samtools/SAMFileReader.ValidationStringency.html
to LENIENT
SAMFileReader reader
reader.ValidationStringency(LENIENT);
doesn't seem to work and neither does
reader.ValidationStringency=LENIENT;
settin enum constants
Started by Jarwulf, Nov 05 2012 05:08 PM
1 reply to this topic
Ad:
#2 Members - Reputation: 132
Posted 05 November 2012 - 06:17 PM
According to the Javadoc posted at the link, ValidationStringency enum is an inner enum of SAMFileReader and it contains the value for LENIENT. The code below should work as long as you add import net.sf.samtools.SAMFileReader.ValidationStringency; to your import statements.
[source lang="java"]SAMFileReader reader;reader.ValidationStringency(ValidationStringency.LENIENT);[/source]
You could also do without the import if you use SAMFileReader.ValidationStringency.LENIENT instead. Either one should work fine.
[source lang="java"]SAMFileReader reader;reader.ValidationStringency(ValidationStringency.LENIENT);[/source]
You could also do without the import if you use SAMFileReader.ValidationStringency.LENIENT instead. Either one should work fine.






