X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=onegapdist.h;fp=onegapdist.h;h=b6b257cb2f452027f19ff06e199f432076a2ef5b;hb=3117b1c3109121dff476997d3c5db5b47a77729b;hp=0000000000000000000000000000000000000000;hpb=a5a908953ab2ebb9386a895e5ddddf0135ad1f99;p=mothur.git diff --git a/onegapdist.h b/onegapdist.h new file mode 100644 index 0000000..b6b257c --- /dev/null +++ b/onegapdist.h @@ -0,0 +1,79 @@ +#ifndef ONEGAPDIST_H +#define ONEGAPDIST_H +/* + * onegapdist.h + * Mothur + * + * Created by Sarah Westcott on 5/7/09. + * Copyright 2009 Schloss Lab UMASS Amherst. All rights reserved. + * + */ + +#include "dist.h" + + +/**************************************************************************************************/ + +class oneGapDist : public Dist { + +public: + void calcDist(Sequence A, Sequence B){ + + int difference = 0; + int openGapA = 0; + int openGapB = 0; + int minLength = 0; + int start = 0; + + for(int i=0;i