Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jtarraga committed Jan 28, 2019
2 parents 158bdc6 + 5df970d commit 2d56be1
Show file tree
Hide file tree
Showing 8 changed files with 465 additions and 16 deletions.
8 changes: 2 additions & 6 deletions bionetdb-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
</dependency>
<dependency>
<groupId>org.opencb.biodata</groupId>
<artifactId>biodata-models</artifactId>
<artifactId>biodata-tools</artifactId>
<version>${biodata.version}</version>
</dependency>
<dependency>
<groupId>org.opencb.commons</groupId>
Expand Down Expand Up @@ -73,11 +74,6 @@
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.opencb.biodata</groupId>
<artifactId>biodata-tools</artifactId>
<version>1.4.0-SNAPSHOT</version>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
import org.opencb.bionetdb.core.neo4j.Neo4JBioPaxLoader;
import org.opencb.bionetdb.core.neo4j.Neo4JNetworkDBAdaptor;
import org.opencb.bionetdb.core.neo4j.Neo4JVariantLoader;
import org.opencb.bionetdb.core.network.Network;
import org.opencb.bionetdb.core.network.NetworkManager;
import org.opencb.bionetdb.core.network.NetworkPath;
import org.opencb.bionetdb.core.network.Node;
import org.opencb.bionetdb.core.network.*;
import org.opencb.cellbase.client.config.ClientConfiguration;
import org.opencb.cellbase.client.config.RestConfig;
import org.opencb.cellbase.client.rest.CellBaseClient;
Expand Down Expand Up @@ -307,6 +304,30 @@ public QueryResult getSummaryStats(Query query, QueryOptions queryOptions) throw
return null;
}

public List<Variant> getMatchingDominantVariants(String child, String father, String mother, QueryOptions options) {
return networkDBAdaptor.getMatchingDominantVariants(child, father, mother, options);
}

public List<Variant> getMatchingRecessiveVariants(String child, String father, String mother, QueryOptions options) {
return networkDBAdaptor.getMatchingRecessiveVariants(child, father, mother, options);
}

public List<Variant> getMatchingDeNovoVariants(String child, String father, String mother, QueryOptions options) {
return networkDBAdaptor.getMatchingDeNovoVariants(child, father, mother, options);
}

public List<Variant> getMatchingXLinkedVariants(String child, String father, String mother, QueryOptions options) {
return networkDBAdaptor.getMatchingXLinkedVariants(child, father, mother, options);
}

public List<VariantsPair> getMatchingVariantsInSameGen(String child, String father, String mother, int limit) {
return networkDBAdaptor.getMatchingVariantsInSameGen(child, father, mother, limit);
}

public List<String> getSpecificBurdenTest(List<String> gene) {
return networkDBAdaptor.getSpecificBurdenTest(gene);
}

//-------------------------------------------------------------------------
// P R I V A T E M E T H O D S
//-------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
package org.opencb.bionetdb.core;

import org.opencb.biodata.models.variant.Variant;

public class VariantsPair {
private Variant variant1;
private Variant variant2;
private String gene;

public VariantsPair() {
}

public VariantsPair(Variant variant1, Variant variant2, String gene) {
this.variant1 = variant1;
this.variant2 = variant2;
this.gene = gene;
}

public Variant getVariant1() {
return variant1;
}

public VariantsPair setVariant1(Variant variant1) {
this.variant1 = variant1;
return this;
}

public Variant getVariant2() {
return variant2;
}

public VariantsPair setVariant2(Variant variant2) {
this.variant2 = variant2;
return this;
}

public String getGene() {
return gene;
}

public VariantsPair setGene(String gene) {
this.gene = gene;
return this;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package org.opencb.bionetdb.core.api;

import org.opencb.biodata.models.variant.Variant;
import org.opencb.bionetdb.core.VariantsPair;
import org.opencb.bionetdb.core.api.query.NetworkPathQuery;
import org.opencb.bionetdb.core.api.query.NodeQuery;
import org.opencb.bionetdb.core.exceptions.BioNetDBException;
Expand Down Expand Up @@ -124,18 +126,27 @@ enum NetworkQueryParams implements QueryParam {
QueryResult<Network> networkQueryByPaths(List<NetworkPathQuery> pathQueries, QueryOptions queryOptions) throws BioNetDBException;
QueryResult<Network> networkQuery(String cypher) throws BioNetDBException;


//-------------------------------------------------------------------------
// T E S T S
// A N A L Y S I S
//-------------------------------------------------------------------------

void loadTest();
List<Variant> getMatchingDominantVariants(String child, String father, String mother, QueryOptions options);

List<Variant> getMatchingRecessiveVariants(String child, String father, String mother, QueryOptions options);

List<Variant> getMatchingDeNovoVariants(String child, String father, String mother, QueryOptions options);

List<Variant> getMatchingXLinkedVariants(String child, String father, String mother, QueryOptions options);

List<VariantsPair> getMatchingVariantsInSameGen(String child, String father, String mother, int limit);

List<String> getSpecificBurdenTest(List<String> genes);

//-------------------------------------------------------------------------
// T E S T S
//-------------------------------------------------------------------------

void loadTest();

// QueryResult<Node> queryNodes(Query query, QueryOptions queryOptions) throws BioNetDBException;
//
Expand Down
Loading

0 comments on commit 2d56be1

Please sign in to comment.