Java Code Examples for htsjdk.samtools.ValidationStringency#valueOf()

The following examples show how to use htsjdk.samtools.ValidationStringency#valueOf() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: VCFRecordReader.java    From Hadoop-BAM with MIT License 4 votes vote down vote up
static ValidationStringency getValidationStringency(
	final Configuration conf)
{
	final String p = conf.get(VALIDATION_STRINGENCY_PROPERTY);
	return p == null ? ValidationStringency.STRICT : ValidationStringency.valueOf(p);
}
 
Example 2
Source File: SAMHeaderReader.java    From Hadoop-BAM with MIT License 4 votes vote down vote up
public static ValidationStringency getValidationStringency(
	final Configuration conf)
{
	final String p = conf.get(VALIDATION_STRINGENCY_PROPERTY);
	return p == null ? null : ValidationStringency.valueOf(p);
}
 
Example 3
Source File: CramTools.java    From cramtools with Apache License 2.0 4 votes vote down vote up
@Override
public ValidationStringency convert(String s) {
	return ValidationStringency.valueOf(s.toUpperCase());
}