Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


settin enum constants


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Jarwulf   Members   -  Reputation: 222

Like
0Likes
Like

Posted 05 November 2012 - 05:08 PM

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;

Sponsor:

#2 n3oplasm   Members   -  Reputation: 132

Like
0Likes
Like

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.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS