Skip to content

Commit

Permalink
Added KNApSAcK as data source
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Sep 2, 2015
1 parent b586987 commit 2418614
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ KEGG Genes Kg http://www.genome.jp/kegg/genes.html http://www.genome.jp/dbget-bi
KEGG Glycan Kl http://www.genome.jp/kegg/glycan/ http://www.genome.jp/dbget-bin/www_bget?gl:$id G00123 metabolite 1 urn:miriam:kegg.glycan ^G\d+$ KEGG Glycan
KEGG Pathway Kp http://www.genome.jp/kegg/pathway.html http://www.genome.jp/dbget-bin/www_bget?pathway+$id hsa00620 pathway 1 urn:miriam:kegg.pathway ^\w{2,4}\d{5}$ KEGG Pathway
KEGG Reaction Rk http://www.genome.jp/kegg/reaction/ http://www.genome.jp/dbget-bin/www_bget?rn:$id R00100 pathway 1 urn:miriam:kegg.reaction ^R\d+$ KEGG Reaction
KNApSAcK Cks http://kanaya.aist-nara.ac.jp/KNApSAcK/ http://kanaya.naist.jp/knapsack_jsp/information.jsp?word=$id C00000001 metabolite 1 urn:miriam:knapsack ^C\d{8} KNApSAcK
LIPID MAPS Lm http://www.lipidmaps.org http://www.lipidmaps.org/data/get_lm_lipids_dbgif.php?LM_ID=$id LMPR0102010012 metabolite 1 urn:miriam:lipidmaps ^LM(FA|GL|GP|SP|ST|PR|SL|PK)[0-9]{4}([0-9a-zA-Z]{4,6})?$ LIPID MAPS
LipidBank Lb http://lipidbank.jp/index.html http://lipidbank.jp/cgi-bin/detail.cgi?id=$id BBA0001 metabolite 1 urn:miriam:lipidbank ^\w+\d+$ LipidBank
MACiE Ma http://www.ebi.ac.uk/thornton-srv/databases/MACiE/index.html http://www.ebi.ac.uk/thornton-srv/databases/cgi-bin/MACiE/entry/getPage.pl?id=$id M0001 protein 1 urn:miriam:macie ^M\d{4}$ MACiE
Expand Down
9 changes: 9 additions & 0 deletions org.bridgedb.bio/test/org/bridgedb/bio/DataSourceTxtTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,13 @@ public void testChEMBL() throws Exception {
Assert.assertTrue(wikidata.urlPatternKnown());
Assert.assertEquals("Cl", wikidata.getSystemCode());
}

@Test
public void testKNApSAcK() throws Exception {
DataSourceTxt.init();
DataSource wikidata = DataSource.getExistingByFullName("KNApSAcK");
Assert.assertNotNull(wikidata);
Assert.assertTrue(wikidata.urlPatternKnown());
Assert.assertEquals("Cks", wikidata.getSystemCode());
}
}

0 comments on commit 2418614

Please sign in to comment.