|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdata.Sequences
public class Sequences
A set of sequences internally represented by a internal_id=>sequence mapping. Registered protein can only have one sequence.
FASTAParser
,
ProteinManager
Constructor Summary | |
---|---|
Sequences()
Creates an empty sequences set. |
|
Sequences(Map<Integer,String> sequences)
Creates a sequence object from a given map. |
Method Summary | |
---|---|
void |
add(int id,
String sequence)
Adds a single sequence to this set. |
void |
addAll(Sequences toAdd)
Adds all sequences of another Sequences object to this set. |
Map<Integer,String> |
getAll()
Returns the map which backs this object. |
String |
getSequence(int key)
Returns the sequence for a given internal protein ID. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Sequences()
public Sequences(Map<Integer,String> sequences)
sequences
- Map containing the sequencesMethod Detail |
---|
public String getSequence(int key)
key
- internal ID of the protein
public void addAll(Sequences toAdd)
toAdd
- Sequences to addpublic void add(int id, String sequence)
id
- internal ID of the proteinsequence
- sequence to be addedpublic Map<Integer,String> getAll()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |