Sign in to follow this  

settin enum constants

Recommended Posts

Hi, this might be a basic java question but I'm wondering how to set this class right here


SAMFileReader reader


doesn't seem to work and neither does


Share this post

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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this