Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

settin enum constants

4: Adsense

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   

223
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;

#2 n3oplasm   Members   

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.