+ jalview.datamodel.Mapping sqmpping = maxAlignseq
+ .getMappingFromS1(false);
+ seqToStrucMapping = new ArrayList<StructureMapping>();
+ if (targetChainId != null && !targetChainId.trim().isEmpty())
+ {
+ StructureMapping curChainMapping = siftsClient
+ .getSiftsStructureMapping(seq, pdbFile, targetChainId);
+ seqToStrucMapping.add(curChainMapping);
+ maxChainId = targetChainId;
+ PDBChain chain = pdb.findChain(targetChainId);
+ if (chain != null)
+ {
+ chain.transferResidueAnnotation(curChainMapping, sqmpping);
+ }
+ }
+ else
+ {
+ for (PDBChain chain : pdb.chains)
+ {
+ StructureMapping curChainMapping = siftsClient
+ .getSiftsStructureMapping(seq, pdbFile, chain.id);
+ seqToStrucMapping.add(curChainMapping);
+ maxChainId = chain.id;
+ chain.transferResidueAnnotation(curChainMapping, sqmpping);
+ }
+ }