oops, missing file

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@2009 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
depristo 2009-11-10 13:25:18 +00:00
parent d316cbad4c
commit 7e30fe230a
1 changed files with 20 additions and 5 deletions

View File

@ -220,17 +220,21 @@ public class VCFRecord {
}
public boolean isFiltered() {
String[] codes = getFilteringCodes();
if ( codes.length > 1 ) return true;
else if ( codes[0].equals(".") || codes[0].equals("0") ) return false;
else return true;
String[] codes = getFilteringCodes();
if ( codes.length > 1 ) return true;
else if ( codes[0].equals(".") || codes[0].equals("0") ) return false;
else return true;
}
public boolean hasFilteringCodes() {
// todo --- currently always returns true
// todo --- currently always returns true
return getFilteringCodes() != null;
}
public String getFilterString() {
return mFilterString;
}
/**
* get the information key-value pairs as a Map<>
*
@ -333,6 +337,17 @@ public class VCFRecord {
this.mInfoFields.put(key, value);
}
/**
* add an info field to the record
*
* @param m A map from info keys to info values
*/
public void addInfoFields(Map<String,String> m) {
for ( Map.Entry<String, String> e : m.entrySet() )
addInfoField(e.getKey(), e.getValue());
}
/**
* the generation of a string representation, which is used by the VCF writer
*