public static class GlycanFragment.Builder extends SaccharideGraph.AbstractBuilder<GlycanFragment>
SaccharideGraph.AbstractBuilder.BuildSatebuildSate, graph| Constructor and Description |
|---|
GlycanFragment.Builder() |
| Modifier and Type | Method and Description |
|---|---|
SEdge |
addCleavedEdge(Monosaccharide attachPoint,
SEdge edge,
IonType ionType)
Add a cleaved edge to the fragment.
|
Monosaccharide |
addCleavedMonosaccharide(Monosaccharide cleavedMonosaccharide,
List<Monosaccharide> parents,
GlycosidicLinkage linkage,
CutIndexes cutIndexes,
IonType ionType)
Add an hyper edge from the list of parents to the cleavedMonosaccharide.
|
Monosaccharide |
addCleavedMonosaccharide(Monosaccharide cleavedMonosaccharide,
Monosaccharide parent,
GlycosidicLinkage linkage,
CutIndexes cutIndexes,
IonType ionType)
Add a Monosaccharide to the Glycan.
|
Monosaccharide |
addCleavedMonosaccharide(Monosaccharide cleavedMonosaccharide,
Substituent substituent,
Monosaccharide parent,
GlycosidicLinkage glycoLinkage,
SubstituentLinkage substituentLinkage,
CutIndexes cutIndexes,
IonType ionType)
Add
cleavedMonosaccharide and substituent to the Glycan being built. |
GlycanFragment |
build()
Build the Glycosidic Fragments Fragment.
|
Monosaccharide |
setCleavedRoot(Monosaccharide root,
FragmentType fragmentType,
Composition endComposition,
CutIndexes cutIndexes)
Set the cleaved root of the Glycan Fragments.
|
Monosaccharide |
setCleavedRoot(Monosaccharide root,
FragmentType fragmentType,
CutIndexes cutIndexes)
Set the cleaved root of the Glycan Fragments.
|
Monosaccharide |
setRoot(Monosaccharide root,
FragmentType fragmentType)
Set the root of the Glycan Fragments.
|
Monosaccharide |
setRoot(Monosaccharide root,
FragmentType fragmentType,
Composition endComposition)
Set the root of the Glycan Fragments.
|
add, add, add, add, add, checkIsBuilding, checkMonosaccharidesPresence, getId, getNodepublic Monosaccharide setRoot(Monosaccharide root, FragmentType fragmentType)
root - the monosaccharide that is to be the rootfragmentType - the fragment type.public Monosaccharide setCleavedRoot(Monosaccharide root, FragmentType fragmentType, CutIndexes cutIndexes)
root - the monosaccharide that is to be the rootfragmentType - the fragment type.cutIndexes - the cutIndex of the root.public Monosaccharide setCleavedRoot(Monosaccharide root, FragmentType fragmentType, Composition endComposition, CutIndexes cutIndexes)
root - the monosaccharide that is to be the rootfragmentType - the fragment type.endComposition - the composition of the end of the fragment.cutIndexes - the cutIndex of the root.public Monosaccharide setRoot(Monosaccharide root, FragmentType fragmentType, Composition endComposition)
root - the monosaccharide that is to be the rootfragmentType - the fragment type.endComposition - the composition of the end of the fragment.public Monosaccharide addCleavedMonosaccharide(Monosaccharide cleavedMonosaccharide, Monosaccharide parent, GlycosidicLinkage linkage, CutIndexes cutIndexes, IonType ionType)
cleavedMonosaccharide is attached to the pattern via the
linkage. If the parent has not been added to this glycan an IllegalStateException is thrown.cleavedMonosaccharide - the cleavedMonosaccharide to addparent - Monosaccharide to which cleavedMonosaccharide is to be addedlinkage - the linkagepublic Monosaccharide addCleavedMonosaccharide(Monosaccharide cleavedMonosaccharide, Substituent substituent, Monosaccharide parent, GlycosidicLinkage glycoLinkage, SubstituentLinkage substituentLinkage, CutIndexes cutIndexes, IonType ionType)
cleavedMonosaccharide and substituent to the Glycan being built. The cleavedMonosaccharide
is attached to the parent using the glycoLinkage and the substituent is attached
to the cleavedMonosaccharide using the substituentLinkage.
This method adds two nodes and two edges to the Glycan being built.
substituent <-- substituentLinkage -- cleavedMonosaccharide <-- glycoLinkage <-- parent
If the parent has not been added to this glycan an IllegalStateException is thrown.
cleavedMonosaccharide - the Monosaccharide to addsubstituent - the cleaved monosaccharide substituentparent - the parent to which the cleavedMonosaccharide is to be attachedglycoLinkage - the linkage between parent and cleavedMonosaccharidesubstituentLinkage - the linkage between cleavedMonosaccharide and substituentpublic Monosaccharide addCleavedMonosaccharide(Monosaccharide cleavedMonosaccharide, List<Monosaccharide> parents, GlycosidicLinkage linkage, CutIndexes cutIndexes, IonType ionType)
cleavedMonosaccharide - the cleavedMonosaccharide to addparents - the list of parentslinkage - the linkage between the parents and the cleavedMonosaccharidepublic SEdge addCleavedEdge(Monosaccharide attachPoint, SEdge edge, IonType ionType)
attachPoint - the monosaccharide where the edge is attach. It could be the parent or the child.edge - the cleaved edgepublic GlycanFragment build()
Copyright © 2016. All Rights Reserved.