Skip to content

Commit

Permalink
HHpred: update Pfam link
Browse files Browse the repository at this point in the history
  • Loading branch information
vikramalva committed Jun 26, 2024
1 parent 4c0f1c4 commit 22bda6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion conf/tools.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#Specify hardruntime in seconds

# A new version indicates that the frontend should reload the configuration
version: "1.2.7"
version: "1.2.8"

Tools {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ object LinkUtil {
"http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?SUBMIT=y&db=structure&orig_db=structure&term="
private val ncbiProteinBaseLink = "https://www.ncbi.nlm.nih.gov/protein/"
private val scopBaseLink = "http://scop.berkeley.edu/sid="
private val pfamBaseLink = "http://pfam.xfam.org/family/"
private val pfamBaseLink = "https://www.ebi.ac.uk/interpro/entry/pfam/"
private val cddBaseLink = "http://www.ncbi.nlm.nih.gov/Structure/cdd/cddsrv.cgi?uid="
private val uniprotBaseLink = "http://www.uniprot.org/uniprot/"
private val unirefBaseLink = "http://www.uniprot.org/uniref/"
Expand All @@ -64,7 +64,7 @@ object LinkUtil {

def getSingleLink(id: String): String = {
val db = identifyDatabase(id)
val idPfam = id.replaceAll("am.*$||..*", "")
val idPfam = id.split("\\.").head
val idPdb = id.replaceAll("_.*$", "")
db match {
case "scop" => val idScop = id.slice(5, 12); generateLink(scopBaseLink, idScop, id)
Expand All @@ -73,7 +73,7 @@ object LinkUtil {
case "ncbicd" => generateLink(cddBaseLink, id, id)
case "cogkog" => generateLink(cddBaseLink, id, id)
case "tigr" => generateLink(cddBaseLink, id, id)
case "pfam" => generateLink(pfamBaseLink, idPfam + "#tabview=tab0", id)
case "pfam" => generateLink(pfamBaseLink, idPfam, id)
case "ncbi" => generateLink(ncbiProteinBaseLink, id, id)
case "uniprot" => generateLink(uniprotBaseLink, id, id)
case "smart" => generateLink(smartBaseLink, id, id)
Expand All @@ -88,7 +88,7 @@ object LinkUtil {
}

def getSingleLinkDB(db: String, id: String): String = {
val idPfam = id.replaceAll("am.*$||..*", "")
val idPfam = id.split("\\.").head
val idPdb = id.replaceAll("_.*$", "")
val idAlphaFold = id.replaceAll("-.*$", "")

Expand All @@ -98,7 +98,7 @@ object LinkUtil {
case pdbNameReg(_) => generateLink(pdbBaseLink, idPdb, id)
case uniprotNameReg(_) => generateLink(uniprotBaseLink, id, id)
case unirefNameReg(_) => generateLink(unirefBaseLink, id, id)
case pfamNameReg(_) => generateLink(pfamBaseLink, idPfam + "#tabview=tab0", id)
case pfamNameReg(_) => generateLink(pfamBaseLink, idPfam, id)
case alphafolddbNameReg(_) => generateLink(alphafoldBaseLink, idAlphaFold, id)
case _ => id
}
Expand Down

0 comments on commit 22bda6c

Please sign in to comment.