Exemplo n.º 1
0
def get_form():
    """
    @return: the body of a form
    """
    # define the default xml string
    default_xml_string = DirectProtein.get_sample_xml_string()
    # define the form objects
    return [Form.MultiLine('model', 'mixture model', default_xml_string)]
Exemplo n.º 2
0
def get_form():
    """
    @return: the body of a form
    """
    # define the default xml string
    default_xml_string = DirectProtein.get_sample_xml_string()
    # define the form objects
    return [Form.MultiLine('model', 'mixture model', default_xml_string)]
Exemplo n.º 3
0
def get_form():
    """
    @return: the body of a form
    """
    # define the tree string
    tree_string = '(((Human:0.1, Chimpanzee:0.2):0.8, Gorilla:0.3):0.7, Orangutan:0.4, Gibbon:0.5);'
    tree = Newick.parse(tree_string, Newick.NewickTree)
    formatted_tree_string = Newick.get_narrow_newick_string(tree, 60)
    # define the form objects
    form_objects = [
            Form.MultiLine('tree', 'newick tree',
                formatted_tree_string),
            Form.MultiLine('model', 'Direct Protein mixture model',
                DirectProtein.get_sample_xml_string().strip()),
            Form.Integer('ncols', 'sample this many codon columns',
                100, low=1, high=1000)]
    return form_objects
Exemplo n.º 4
0
def get_form():
    """
    @return: the body of a form
    """
    default_xml_string = DirectProtein.get_sample_xml_string().strip()
    return [Form.MultiLine('model', 'mixture model', default_xml_string)]
Exemplo n.º 5
0
def get_form():
    """
    @return: the body of a form
    """
    default_xml_string = DirectProtein.get_sample_xml_string().strip()
    return [Form.MultiLine('model', 'mixture model', default_xml_string)]