Skip to content
Open
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
dependency-reduced-pom.xml
/bin/
databases/
.class
derby.log
.settings/
resources/
resources/
target/
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ This program allows you to create a Linkset network file that can be used with C

=============

## How to run

How to run the script with your own tab-delimited text file?

1. Download the latest release from https://github.com/CyTargetLinker/linksetCreator/releases. Download the jar file (e.g. linkset-creator-v2.0.jar)
Expand All @@ -33,6 +35,13 @@ How to run the script with your own tab-delimited text file?


3. Run the converter file with the input file (tab delimited text file containing the interaction data), the config file (as described in point 2) and an output file (e.g. output.xgmml).
* java -jar -Dfile.encoding=UTF-8 linkset-creator-vx.x.jar -i input.txt -o output.xgmml -c file.config


```shell
java -jar -Dfile.encoding=UTF-8 target/linkset-creator-vx.x.jar -i input.txt -o output.xgmml -c file.config
```

## How to compile

```shell
mvn clean install
```
Binary file removed lib/derby.jar
Binary file not shown.
Binary file removed lib/jewelcli-0.6.jar
Binary file not shown.
Binary file removed lib/org.bridgedb.bio.jar
Binary file not shown.
Binary file removed lib/org.bridgedb.jar
Binary file not shown.
Binary file removed lib/org.bridgedb.rdb.jar
Binary file not shown.
121 changes: 121 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>io.github.cytargetlinker</groupId>
<artifactId>org.linkset.creator</artifactId>
<name>Linkset-Creator</name>
<version>0.0.1</version>

<properties>
<bridgedb.version>3.0.16</bridgedb.version>
<derby.version>10.15.2.0</derby.version>
</properties>


<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.0</version>
<configuration>
<source>8</source>
<target>8</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.0</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
<execution>
<id>aggregate</id>
<goals>
<goal>aggregate</goal>
</goals>
<phase>site</phase>
<configuration>
</configuration>
</execution>
</executions>
<configuration>
<source>8</source>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.3.0</version>
<configuration>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>org.linkset.creator.GenericCreator</Main-Class>
</manifestEntries>
</transformer>
</transformers>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.bridgedb</groupId>
<artifactId>org.bridgedb.bio</artifactId>
<version>${bridgedb.version}</version>
</dependency>
<dependency>
<groupId>org.bridgedb</groupId>
<artifactId>org.bridgedb.rdb</artifactId>
<version>${bridgedb.version}</version>
<exclusions>
<exclusion>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>uk.co.flamingpenguin.jewelcli</groupId>
<artifactId>jewelcli</artifactId>
<version>0.6</version>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>${derby.version}</version>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbytools</artifactId>
<version>${derby.version}</version>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbyshared</artifactId>
<version>${derby.version}</version>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derbyclient</artifactId>
<version>${derby.version}</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
import org.bridgedb.IDMapper;
import org.bridgedb.IDMapperException;
import org.bridgedb.Xref;
import org.bridgedb.bio.DataSourceTxt;
import org.linkset.creator.graph.Graph;
import org.linkset.creator.graph.Graph.Edge;
import org.linkset.creator.graph.Graph.Node;
Expand Down Expand Up @@ -62,6 +63,8 @@ private interface Args extends AHelp, AFilesIn, AFilesOut {}
* -c = config file
*/
public static void main(String argv[]) throws Exception {
DataSourceTxt.init();
Class.forName("org.apache.derby.jdbc.ClientDriver");
System.out.println("Start");
pargs = ArgsParser.parse(argv, Args.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.bridgedb.BridgeDb;
import org.bridgedb.IDMapper;
import org.bridgedb.IDMapperException;
import org.bridgedb.bio.DataSourceTxt;

/**
*
Expand All @@ -42,7 +41,6 @@ public static void setUpLogger(Logger log, File logFile, boolean append) throws
}

public static IDMapper initIDMapper(File file, boolean transitive) {
DataSourceTxt.init();
try {
Class.forName("org.bridgedb.rdb.IDMapperRdb");
} catch (ClassNotFoundException ex) {
Expand Down