+ seqToStrucMapping = new ArrayList<StructureMapping>();
+ if (targetChain != null && !targetChain.trim().isEmpty())
+ {
+ maxChainId = targetChain;
+ StructureMapping curChainMapping = siftsClient
+ .getSiftsStructureMapping(seq, pdbFile, targetChain);
+ seqToStrucMapping.add(curChainMapping);
+ }
+ else
+ {
+ for (PDBChain chain : pdb.chains)
+ {
+ maxChainId = chain.id;
+ StructureMapping curChainMapping = siftsClient
+ .getSiftsStructureMapping(seq, pdbFile, chain.id);
+ seqToStrucMapping.add(curChainMapping);
+ }
+ }