Package org.biojava.nbio.alignment.io
Class StockholmStructure
java.lang.Object
org.biojava.nbio.alignment.io.StockholmStructure
Stores all the content of a Stockholm file. N.B.: This structure will undergo several enhancements later on.
Don't depend on it in a final code, otherwise it will be hard to maintain.
In general, Stockholm File contains the alignment mark-up lines.
Sequence letters may include any characters except whitespace. Gaps may be indicated by "." or "-".
Mark-up lines may include any characters except whitespace. Use underscore ("_") instead of space.
| Header Section |
| Reference Section |
| Comment Section |
| Alignment Section |
Mark-up lines may include any characters except whitespace. Use underscore ("_") instead of space.
| section field | preferred location |
|---|---|
| #=GF <feature> <Generic per-File annotation, free text> | Above the alignment |
| #=GC <feature> <Generic per-Column annotation, exactly 1 char per column> | Below the alignment |
| #=GS <seqname> <feature> <Generic per-Sequence annotation, free text> | Above the alignment or just below the corresponding sequence |
| #=GR <seqname> <feature> <Generic per-Residue annotation, exactly 1 char per residue> | Just below the corresponding sequence |
- Since:
- 3.0.5
- Author:
- Amr ALHOSSARY, Marko Vaz
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActiveSite(String seqName, String text) voidaddASPFamPredicted(String seqName, String text) voidaddASSwissProt(String seqName, String text) voidaddGSAccessionNumber(String seqName, String text) voidaddGSdbReference(String seqName, String text) voidaddGSDescription(String seqName, String text) voidvoidaddGSOrganismClassification(String seqName, String text) voidaddGSOrganismSpecies(String seqName, String text) voidvoidaddLigandBinding(String seqName, String text) voidaddPosteriorProbability(String seqName, String text) voidaddSecondaryStructure(String seqName, String text) voidaddSurfaceAccessibility(String seqName, String text) voidaddTransMembrane(String seqName, String text) voidappendToSequence(String seqName, String seqText) List<AbstractSequence<? extends AbstractCompound>> used to retrieve sequences from the structureList<AbstractSequence<? extends AbstractCompound>> getBioSequences(boolean ignoreCase) Because some database files have incorrectly small letters (e.g.List<AbstractSequence<? extends AbstractCompound>> getBioSequences(boolean ignoreCase, String forcedSequenceType) This function tolerates mixed case letters, and allows for forcing the output biosequence type (PFAM/RFAM).org.biojava.nbio.alignment.io.StockholmConsensusAnnotationtoString()
-
Field Details
-
PFAM
- See Also:
-
RFAM
- See Also:
-
-
Constructor Details
-
StockholmStructure
public StockholmStructure()
-
-
Method Details
-
getFileAnnotation
-
getConsAnnotation
-
appendToSequence
- Parameters:
seqName-seqText-
-
getSequences
-
addGSAccessionNumber
- Parameters:
seqName-text-
-
addGSDescription
-
addGSdbReference
- Parameters:
seqName-text-
-
addGSOrganismSpecies
-
addGSOrganismClassification
-
addGSLook
-
addSurfaceAccessibility
-
addTransMembrane
-
addPosteriorProbability
-
addLigandBinding
-
addActiveSite
-
addASPFamPredicted
-
addASSwissProt
-
addIntron
-
addSecondaryStructure
-
getBioSequences
used to retrieve sequences from the structure- Returns:
- Biosequences (case sensitive)
- See Also:
-
getBioSequences
public List<AbstractSequence<? extends AbstractCompound>> getBioSequences(boolean ignoreCase, String forcedSequenceType) This function tolerates mixed case letters, and allows for forcing the output biosequence type (PFAM/RFAM). -
getBioSequences
Because some database files have incorrectly small letters (e.g. Pfam23 structure PF00389.22 sequence TKRA_BACSU/6-322), this function is used to ignore the small letters case.- Parameters:
ignoreCase-- Returns:
- See Also:
-
toString
-