proteinSeq.createDatasetSequence();
querySeq.createDatasetSequence();
+ getProteinCrossReferences(proteinSeq);
+
MapList mapList = mapCdsToProtein(querySeq, proteinSeq);
if (mapList != null)
{
}
/**
+ * Get Uniprot and PDB xrefs from Ensembl, and attach them to the protein
+ * sequence
+ *
+ * @param proteinSeq
+ */
+ protected void getProteinCrossReferences(SequenceI proteinSeq)
+ {
+ while (proteinSeq.getDatasetSequence() != null)
+ {
+ proteinSeq = proteinSeq.getDatasetSequence();
+ }
+
+ EnsemblXref xrefFetcher = new EnsemblXref();
+ List<DBRefEntry> xrefs = xrefFetcher.getCrossReferences(
+ proteinSeq.getName(), "PDB", "Uniprot/SPTREMBL",
+ "Uniprot/SWISSPROT");
+ for (DBRefEntry xref : xrefs)
+ {
+ proteinSeq.addDBRef(xref);
+ }
+ }
+
+ /**
* Returns a mapping from dna to protein by inspecting sequence features of
* type "CDS" on the dna.
*