def test_export_nexus(self): """The 'export nexus-basic' and 'nexus-ogt' commands.""" cnr = cnvlib.read("formats/amplicon.cnr") table_nb = export.export_nexus_basic(cnr) self.assertEqual(len(table_nb), len(cnr)) varr = commands.load_het_snps("formats/na12878_na12882_mix.vcf", None, None, 15, None) table_ogt = export.export_nexus_ogt(cnr, varr, 0.05) self.assertEqual(len(table_ogt), len(cnr))