public class Glycan extends SaccharideGraph
Glycan.Builder builder = new Glycan.Builder()
Monosaccharide glc = builder.setRoot(MonosaccharideLookup.getNew("Glc"), Optional.absent(), "A");
Monosaccharide gal = builder.add(MonosaccharideLookup.getNew("Gal"), glc, new GlycosidicLinkage(Optional.absent(), Optional.absent(), Optional.absent(), Optional.absent(), Optional.absent()));
Glycan glycan = builder.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
Glycan.Builder
A builder to build Glycans.
|
SaccharideGraph.AbstractBuilder<G extends SaccharideGraph>, SaccharideGraph.Traversaledges, monosaccharideEdgeMultimap, nodes, postOrder, preOrder, root, substituentEdgeMultimap| Modifier | Constructor and Description |
|---|---|
protected |
Glycan(Monosaccharide root,
com.google.common.base.Optional<Anomericity> reducingEndAnomericity,
String databaseIdentifier,
Composition endComposition) |
| Modifier and Type | Method and Description |
|---|---|
double |
calculateMass()
Return the molecular mass of this glycan.
|
double |
calculateMz(int charge)
Return the mass/charge of this glycan.
|
boolean |
equals(Object o) |
String |
getDatabaseIdentifier()
Return the database identifier associated with this glycan.
|
Composition |
getEndComposition()
Return the composition of the end of the glycan.
|
List<GlycanFragment> |
getFragment(CutDescriptor cutDescriptor) |
com.google.common.base.Optional<Anomericity> |
getReducingEndAnomericity() |
int |
hashCode() |
add, add, add, add, calculateTotalSaccharideMass, canFragmentCrossRing, containsNode, copyEdgeList, doBFS, doDFS, forEachLinkage, forEachLinkage, getChildren, getGlycoLinkage, getMonosaccharideChildren, getNode, getParent, getRoot, getSubstituentChildren, getSubstituentLinkage, hasHyperEdges, isEmpty, isLeaf, order, populatePrePostOrder, sizeprotected Glycan(Monosaccharide root, com.google.common.base.Optional<Anomericity> reducingEndAnomericity, String databaseIdentifier, Composition endComposition)
public Composition getEndComposition()
public double calculateMass()
public double calculateMz(int charge)
charge - the specific charge for the calculation.public String getDatabaseIdentifier()
public com.google.common.base.Optional<Anomericity> getReducingEndAnomericity()
public List<GlycanFragment> getFragment(CutDescriptor cutDescriptor)
public boolean equals(Object o)
equals in class SaccharideGraphpublic int hashCode()
hashCode in class SaccharideGraphCopyright © 2016. All Rights Reserved.