• Advertisement
Sign in to follow this  

settin enum constants

This topic is 1902 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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;

Share this post


Link to post
Share on other sites
Advertisement
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.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement