public void store(String sequence,Map<String,SignatureLibraryRelease> analysisJobMap,String... crossReferences){
  if (sequence != null && sequence.length() > 0) {
    Protein protein=new Protein(sequence);
    if (crossReferences != null) {
      for (      String crossReference : crossReferences) {
        ProteinXref xref=XrefParser.getProteinXref(crossReference);
        protein.addCrossReference(xref);
      }
    }
    proteinsAwaitingPrecalcLookup.add(protein);
    if (proteinsAwaitingPrecalcLookup.size() > proteinPrecalcLookupBatchSize) {
      lookupProteins(analysisJobMap);
    }
  }
}

public void store ( String sequence , Map < String , SignatureLibraryRelease > analysisJobMap , String ... crossReferences ) { if ( sequence != null && sequence . length ( ) > 0 ) { Protein protein = new Protein ( sequence ) ; if ( crossReferences != null ) { for ( String crossReference : crossReferences ) { ProteinXref xref = XrefParser . getProteinXref ( crossReference ) ; protein . addCrossReference ( xref ) ; } } proteinsAwaitingPrecalcLookup . add ( protein ) ; if ( proteinsAwaitingPrecalcLookup . size ( ) > proteinPrecalcLookupBatchSize ) { lookupProteins ( analysisJobMap ) ; } } }
this method stores sequences with ( optionally ) cross references . the method attempts to store them in batches by calling the addproteintobatch ( protein protein ) method . this in turn calls persistbatch ( ) , when the batch size has been reached . < p / >
