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 AL-Hossary, Marko Vaz
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addActiveSite
(String seqName, String text) void
addASPFamPredicted
(String seqName, String text) void
addASSwissProt
(String seqName, String text) void
addGSAccessionNumber
(String seqName, String text) void
addGSdbReference
(String seqName, String text) void
addGSDescription
(String seqName, String text) void
void
addGSOrganismClassification
(String seqName, String text) void
addGSOrganismSpecies
(String seqName, String text) void
void
addLigandBinding
(String seqName, String text) void
addPosteriorProbability
(String seqName, String text) void
addSecondaryStructure
(String seqName, String text) void
addSequence
(String seqName, String seqText) Deprecated.void
addSurfaceAccessibility
(String seqName, String text) void
addTransMembrane
(String seqName, String text) void
appendToSequence
(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.StockholmConsensusAnnotation
toString()
-
Field Details
-
PFAM
- See Also:
-
RFAM
- See Also:
-
-
Constructor Details
-
StockholmStructure
public StockholmStructure()
-
-
Method Details
-
getFileAnnotation
-
getConsAnnotation
public org.biojava.nbio.alignment.io.StockholmConsensusAnnotation getConsAnnotation() -
addSequence
Deprecated.UseappendToSequence(String,String)
insteadActually this function should be called appendToSequence- Parameters:
seqName
-seqText
-
-
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
-
appendToSequence(String,String)
instead