Fix for Chris: need to use the appropriate conversion method. Added a warning to the adaptor.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3235 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
e7334ec11f
commit
84ebceb9a6
|
|
@ -133,6 +133,7 @@ public class VariantContextAdaptors {
|
||||||
// --------------------------------------------------------------------------------------------------------------
|
// --------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
private static class RodVCFAdaptor extends VCAdaptor {
|
private static class RodVCFAdaptor extends VCAdaptor {
|
||||||
|
// WARNING: do not use this method if you have anything other than point mutations in your VCF
|
||||||
VariantContext convert(String name, Object input) {
|
VariantContext convert(String name, Object input) {
|
||||||
return vcfToVariantContext(name, ((RodVCF)input).getRecord(), null);
|
return vcfToVariantContext(name, ((RodVCF)input).getRecord(), null);
|
||||||
}
|
}
|
||||||
|
|
@ -143,6 +144,7 @@ public class VariantContextAdaptors {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class VCFRecordAdaptor extends VCAdaptor {
|
private static class VCFRecordAdaptor extends VCAdaptor {
|
||||||
|
// WARNING: do not use this method if you have anything other than point mutations in your VCF
|
||||||
VariantContext convert(String name, Object input) {
|
VariantContext convert(String name, Object input) {
|
||||||
return vcfToVariantContext(name, (VCFRecord)input, null);
|
return vcfToVariantContext(name, (VCFRecord)input, null);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,7 @@ public class IndelDBRateWalker extends RodWalker<OverlapTable,OverlapTabulator>
|
||||||
tracker.getReferenceMetaData("eval").size() != 0 ? tracker.getReferenceMetaData("eval").get(0) : null ;
|
tracker.getReferenceMetaData("eval").size() != 0 ? tracker.getReferenceMetaData("eval").get(0) : null ;
|
||||||
VariantContext evalContext;
|
VariantContext evalContext;
|
||||||
if ( eval != null ) {
|
if ( eval != null ) {
|
||||||
evalContext = VariantContextAdaptors.toVariantContext("eval",eval);
|
evalContext = VariantContextAdaptors.toVariantContext("eval",eval,ref);
|
||||||
} else {
|
} else {
|
||||||
evalContext = null;
|
evalContext = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue