Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue240 pr #241

Merged
merged 6 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: 11
cache: maven
- name: Build with Maven
run: mvn clean install -Dgpg.skip -Dmaven.javadoc.skip=true -Dmaven.test.failure.ignore=true -Dproject.build.sourceEncoding=UTF-8 -Djunit5.excludeGroups=webservice,mysql
- name: push JaCoCo stats to codecov.io
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ NASC Gene N http://arabidopsis.info/ ATMG00960-TAIR-G gene Arabidopsis thaliana
NCBI Protein Np http://www.ncbi.nlm.nih.gov/protein http://www.ncbi.nlm.nih.gov/protein/$id CAA71118.1 protein 1 urn:miriam:ncbiprotein ^\w+\d+(\.\d+)?$ NCBI Protein ncbiprotein protein
NCI Pathway Interaction Database Pid http://pid.nci.nih.gov/ http://pid.nci.nih.gov/search/pathway_landing.shtml?what=graphic&jpg=on&pathway_id=$id pi3kcipathway pathway 1 urn:miriam:pid.pathway ^\w+$ NCI Pathway Interaction Database pid.pathway pathway
OMIM Om http://omim.org/ http://omim.org/entry/$id 603903 gene 0 urn:miriam:mim ^[*#+%^]?\d{6}$ OMIM P492 omim gene,disease
OpenTargets Opt https://www.opentargets.org/ https://genetics.opentargets.org/gene/$id ENSG00000169174 gene 1 ^ENS[A-Z]*[FPTG]\d{11}$ ensembl gene
OpenTargets Opt https://www.opentargets.org/ https://genetics.opentargets.org/gene/$id ENSG00000169174 gene 1 ^ENS[A-Z]*[FPTG]\d{11}$ gene
ORCID orcid https://orcid.org https://orcid.org/$id 0000-0002-5355-2576 other Homo sapiens 1 urn:miriam:orcid ^\d{4}-\d{4}-\d{4}-\d{3}(\d|X)$ ORCID P496 orcid other,author
Orphanet On http://www.orpha.net/consor/ https://identifiers.org/orphanet:$id 85163 other Homo sapiens 1 urn:miriam:orphanet ^\d+$ Bio2RDF orphanet other
Oryzabase Ob http://www.shigen.nig.ac.jp/rice/oryzabase http://www.shigen.nig.ac.jp/rice/oryzabase/gateway/gatewayAction.do?target=symbol&id=$id 468 gene Oryza sativa 1 Ob Oryzabase oryzabase.gene gene
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class DataSourceTxtTest {

@BeforeAll
public static void setUpSources() {
DataSourceTxt.init();
if (DataSource.getDataSources().size() == 0) DataSourceTxt.init();
}

@org.junit.jupiter.api.Test
Expand Down
25 changes: 25 additions & 0 deletions org.bridgedb.bio/src/test/java/org/bridgedb/bio/XrefTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package org.bridgedb.bio;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;

import org.bridgedb.DataSource;
import org.bridgedb.Xref;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

public class XrefTest {

@BeforeAll
public static void setUpSources() {
if (DataSource.getDataSources().size() == 0) DataSourceTxt.init();
}

@Test
public void testCheckCorrectBioregistryIdentifier() {
Xref xref = Xref.fromBioregistryIdentifier("ensembl:ENSGALG00000007562");
assertNotNull(xref);
assertEquals("En:ENSGALG00000007562:T", xref.toString());
}

}
3 changes: 1 addition & 2 deletions org.bridgedb/src/test/java/org/bridgedb/XrefTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
import static org.junit.jupiter.api.Assertions.assertNotNull;
import static org.junit.jupiter.api.Assertions.assertNotSame;
import static org.junit.jupiter.api.Assertions.assertNull;
import static org.junit.jupiter.api.Assertions.assertThrows;
import static org.junit.jupiter.api.Assertions.assertTrue;

import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -196,4 +194,5 @@ public void testToString() {
public void testGetKnownUrl() {
System.out.println(new Xref("CHEBI:17855", CHEBI, true).getKnownUrl());
}

}