Пример #1
0
#  the following conditions:
#
#  The above copyright notice and this permission notice shall be included
#  in all copies or substantial portions of the Software.
#
#  THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS
#  OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
#  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
#  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
#  CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
#  TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
#  SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

import datamonkey.hivcluster as hivcluster
import time

mail = '*****@*****.**'
fn   = './res/INPUT.FASTA'
distance_threshold = ".015"
min_overlap        = "500"
ambiguity_handling = "AVERAGE"

hc = hivcluster.start(fn, distance_threshold, min_overlap, ambiguity_handling, mail)
hivcluster.get(hc.id)

if hc.status == "Completed":
    print hc.graph_dot
    print hc.cluster_csv
else:
    print hc.status
Пример #2
0
 def test_findbyid(self):
     hivcluster_obj = hivcluster.get(self.created_hivcluster.id)
     self.assertEqual(hivcluster_obj.id, self.created_hivcluster.id)
     self.assertEqual(hivcluster_obj.distance_threshold, self.created_hivcluster.distance_threshold)
     self.assertEqual(hivcluster_obj.min_overlap, self.created_hivcluster.min_overlap)
     self.assertEqual(hivcluster_obj.ambiguity_handling, self.created_hivcluster.ambiguity_handling)