Tabnine Logo
TreeUtils.commonLeaves
Code IndexAdd Tabnine 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)

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
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • getSupportFragmentManager (FragmentActivity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now