Esempio n. 1
0
    def testLoadAlnMappingDict(self):
        cmd.fab('ACDIKLMNP', 'm2')
        cmd.fab('GHIKPQRS', 'm3')

        from pymol.seqalign import load_aln_multi

        load_aln_multi(self.datafile('alignment.aln'), 'aln', mapping={
            'seq2': 'm2',
            'seq3': 'm3',
        })

        self.assertEqual(cmd.count_atoms('guide & aln & m2'), 2)
        self.assertEqual(cmd.count_atoms('guide & aln & m3'), 2)
Esempio n. 2
0
    def testLoadAlnMappingStr(self):
        cmd.fab('ACDEFGHIKLMNPQRS', 'm1')
        cmd.fab('ACDIKLMNP', 'm2')

        from pymol.seqalign import load_aln_multi

        load_aln_multi(self.datafile('alignment.aln'), 'aln', mapping=
            'seq1 m1 '
            'seq2 m2 '
        )

        self.assertEqual(cmd.count_atoms('guide & aln & m1'), 7)
        self.assertEqual(cmd.count_atoms('guide & aln & m2'), 7)
 def run():
     mapping = dict((rec_id, combobox.currentText())
                    for (rec_id, combobox) in comboboxes.items())
     seqalign.load_aln_multi(filename, mapping=mapping, _self=_self)
     form._dialog.close()
Esempio n. 4
0
 def run():
     mapping = dict((rec_id, combobox.currentText())
             for (rec_id, combobox) in comboboxes.items())
     seqalign.load_aln_multi(filename, mapping=mapping, _self=_self)
     form._dialog.close()