Codota Logo
TreeUtils.commonLeaves
Code IndexAdd Codota to your IDE (free)

How to use
commonLeaves
method
in
phylo.tree.model.TreeUtils

Best Java code snippets using phylo.tree.model.TreeUtils.commonLeaves (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: de.unijena.bioinf.phylo/phyloTree-lib.model

/**
 * Returns the list of leaves contained in all trees
 *
 * @param trees the trees
 * @return sharedLeaves the leaves common to all trees
 */
public static List<String> commonLeaves(Collection<Tree> trees) {
  return commonLeaves(trees.toArray(new Tree[trees.size()]));
}
origin: de.unijena.bioinf.phylo/phyloTree-lib.utils

for (int i = 0; i < trees.size() - 1; i++) {
  for (int j = i + 1; j < trees.size(); j++) {
    List<String> commonTaxa = TreeUtils.commonLeaves(Arrays.asList(trees.get(i), trees.get(j)));
    if (commonTaxa.size() > 1) {
      double[] distances = new double[commonTaxa.size() - 1];
phylo.tree.modelTreeUtilscommonLeaves

Javadoc

Returns the list of leaves contained in all trees

Popular methods of TreeUtils

  • getLeafLabels
    The set of labels of all leafs below the input tree node
  • pruneDegreeOneNodes
  • deleteInnerLabels
    Clones all trees and removes all innter vertex labels from the clones. The given source trees are no
  • getChildrenMap
  • pruneInnerNode
    Deletes the specified node from the tree.The child of this node becomes child of its parent. If the
  • removeSubtreeFromTree
  • reorderingBootstrapLabelsForRooting
  • rerootToOutgroup
    Reroot tree with the new root placed at the incomming edge of the given outgroup
  • addLeafesFromChildren
  • buildFitchUnion
  • calculateTreeResolution
  • checkForChilds
  • calculateTreeResolution,
  • checkForChilds,
  • cloneAndPruneTrees,
  • connectParent,
  • containsInnerLabels,
  • deleteRootNode,
  • findAndMergeDuplicates,
  • flipLeaves,
  • getLeafesFromLabels

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getContentResolver (Context)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • Color (java.awt)
    The Color class is used encapsulate colors in the default sRGB color space or colors in arbitrary co
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • JLabel (javax.swing)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now