Git Lab CI for docker build enabled! You can enable it using .gitlab-ci.yml in your project. Check file template at https://gitlab.bio.di.uminho.pt/snippets/5

Commit 026d9c3f authored by Davide Lagoa's avatar Davide Lagoa
Browse files

properties refactoring

parent e84ba16e
......@@ -5,7 +5,7 @@
<groupId>pt.uminho.ceb.biosystems.transyt</groupId>
<artifactId>scraper</artifactId>
<version>0.0.7-SNAPSHOT</version>
<version>0.0.10-SNAPSHOT</version>
<packaging>jar</packaging>
<name>scraper</name>
......@@ -66,7 +66,7 @@
<dependency>
<groupId>pt.uminho.ceb.biosystems.transyt</groupId>
<artifactId>utilities</artifactId>
<version>0.0.7-SNAPSHOT</version>
<version>0.0.10-SNAPSHOT</version>
</dependency>
<dependency>
......
......@@ -44,7 +44,7 @@ public class GenerateTransportReactions {
// Map<String, TcdbMetabolitesContainer> tcdbMetabolites2 = new HashMap<>();
//
// tcdbMetabolites2.put("B3ECG6", tcdbMetabolites.get("B3ECG6"));
// tcdbMetabolites2.put("C0KTK1", tcdbMetabolites.get("C0KTK1"));
for(String accession : tcdbMetabolites.keySet()) {
......@@ -312,8 +312,8 @@ public class GenerateTransportReactions {
if(save) {
ReactionContainer newReactContainer = new ReactionContainer(newReactant, newProduct, reactionContainer.isReversible());
if(reactants.size() == 1 && products.size() == 1)
if(reactionContainer.getMetabolites().size() == 1)
type = TypeOfTransporter.Uniport;
newReactContainer.setTransportType(type);
......
......@@ -636,6 +636,11 @@ public class FindTransporters {
// System.out.println(substances[i]);
String[] words = substances[i].split(" \\(");
if(words.length == 1 && substances[i].contains("+(")) {
substances[i] = substances[i].replace("+(", "+ (");
words = substances[i].split(" \\(");
}
for(int j = 0; j < words.length; j ++) {
......
package pt.uminho.ceb.biosystems.transyt.scraper.tcdb.tcdbTransportTypesRetriever;
import java.io.IOException;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
......@@ -21,11 +23,7 @@ public class Retriever {
private static final Logger logger = LoggerFactory.getLogger(Retriever.class);
public static void main(String[] args) {
//
// Set<String> tcNumbers = TcdbExplorer.getTcNumbers(false);
//
// System.out.println(tcNumbers.size());
public static void main(String[] args) throws Exception {
try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment