sequence/fasta/src/main/java/uk/co/flax/biosolr/pdbe/fasta/FastaJob.java
// create an Alignment from a matching line
create an Alignment from a matching line
create an Alignment from a matching line
private PDb.Alignment parseAlignment(Matcher matcher) {
    int n = firstGroup(matcher);
    String pdbIdChain = matcher.group(n);
    if (pdbIdChain.contains("Entity")) {
      pdbIdChain = pdbIdChain.replaceFirst(" ", "_");
    }
    String[] s = pdbIdChain.split("_");
    double eValue = new Double(matcher.group(n + 2));
    return new PDb.Alignment(new PDb.Id(s[0]), s[1], eValue);
  }
private PDb . Alignment parseAlignment ( Matcher matcher ) { int n = firstGroup ( matcher ) ; String pdbIdChain = matcher . group ( n ) ; if ( pdbIdChain . contains ( "Entity" ) ) { pdbIdChain = pdbIdChain . replaceFirst ( " " , "_" ) ; } String [ ] s = pdbIdChain . split ( "_" ) ; double eValue = new Double ( matcher . group ( n + 2 ) ) ; return new PDb . Alignment ( new PDb . Id ( s [ 0 ] ) , s [ 1 ] , eValue ) ; }
create an Alignment from a matching line
create an Alignment from a matching line