-Mark just reminded me: actually force the ref/loc to be immutable

-VCF writer should be blind to the score/confidence/lod value - just print the thing out as is


git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1932 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2009-10-29 13:41:53 +00:00
parent 5cdbdd9e5b
commit 1c4ca9d383
4 changed files with 7 additions and 7 deletions

View File

@ -18,8 +18,8 @@ import java.util.Arrays;
* The implementation of the genotype interface, specific to Geli
*/
public class GeliGenotypeCall implements Genotype, ReadBacked, PosteriorsBacked {
private char mRefBase;
private GenomeLoc mLocation;
private final char mRefBase;
private final GenomeLoc mLocation;
private List<SAMRecord> mReads;
private double[] mPosteriors;

View File

@ -18,8 +18,8 @@ import java.util.Arrays;
* The implementation of the genotype interface, specific to GLF
*/
public class GLFGenotypeCall implements Genotype, ReadBacked, LikelihoodsBacked {
private char mRefBase;
private GenomeLoc mLocation;
private final char mRefBase;
private final GenomeLoc mLocation;
private List<SAMRecord> mReads;
private double[] mLikelihoods;

View File

@ -18,8 +18,8 @@ import java.util.List;
* The implementation of the genotype interface, specific to VCF
*/
public class VCFGenotypeCall implements Genotype, ReadBacked, PosteriorsBacked, SampleBacked {
private char mRefBase;
private GenomeLoc mLocation;
private final char mRefBase;
private final GenomeLoc mLocation;
private List<SAMRecord> mReads;
private double[] mPosteriors;

View File

@ -156,7 +156,7 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter {
Map<String, String> infoFields = getInfoFields(metadata, params);
double qual = (metadata == null) ? 0 : (metadata.getLOD()) * 10;
double qual = (metadata == null) ? 0 : metadata.getLOD();
// maintain 0-99 based Q-scores
qual = Math.min(qual, 99);
qual = Math.max(qual, 0);