Skip to content

Desired Query Examples

Francois Serra edited this page May 27, 2017 · 5 revisions

Example 1

Trees where a subtree is found that: 1) has a duplication node 2) which involves tips containing A and B, but not C 3) and that might contain 1 or more additional duplications in A but not in C. For instance this would match:

print Tree('((( ((A, A), B), (A,B) ), (A, B)), ((C, D), (C,D)));')

               /-A
            /-|
         /-|   \-A
        |  |
      /-|   \-B
     |  |
     |  |   /-A
   /*|   \-|
  |  |      \-B
  |  |
  |  |   /-A
  |   \-|
--|      \-B
  |
  |      /-C
  |   /-|
  |  |   \-D
   \-|
     |   /-C
      \-|
         \-D

as well as two matches here (Star symbol):

print Tree('(((( ((A, A), B), (A,B)), (A,B)), (A, B)), ((C, D), (C,D)));')

                  /-A
               /-|
            /-|   \-A
           |  |
         /-|   \-B
        |  |
        |  |   /-A
      /*|   \-|
     |  |      \-B
     |  |
     |  |   /-A
   /*|   \-|
  |  |      \-B
  |  |
  |  |   /-A
  |   \-|
--|      \-B
  |
  |      /-C
  |   /-|
  |  |   \-D
   \-|
     |   /-C
      \-|
         \-D

but not


                  /-A
               /-|
            /-|   \-A
           |  |
         /-|   \-C
        |  |
        |  |   /-A
      /-|   \-|
     |  |      \-B
     |  |
     |  |   /-A
   /-|   \-|
  |  |      \-B
  |  |
  |  |   /-A
  |   \-|
--|      \-B
  |
  |      /-C
  |   /-|
  |  |   \-D
   \-|
     |   /-C
      \-|
         \-D

Examples from user

Select species with longest branch

I seek help in choosing n taxa from a total of N taxa in my unrooted phylogenetic tree, such that the branch length for the selected n taxa is maximal - or in other words, they are most genetically diverse subset in my collection of taxa.

A bonus would to be have 1 representative from each of n clades in this tree.

Clone this wiki locally