Skip to content
This repository has been archived by the owner on Feb 19, 2024. It is now read-only.

Add documentation in commands folder #17

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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: 4 additions & 0 deletions src/main/java/metapenta/commands/ConnectedComponents.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
import metapenta.model.MetaPenta;
import metapenta.tools.io.writers.ConnectedComponentsWriter;

/**
* args[0] Metabolic network in XML format
* args[1] Output file
*/
public class ConnectedComponents {
public static void main(String[] args) throws Exception {
MetaPenta network = new MetaPenta(args[0]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@

public class GetMetabolicNetworkInterception {

/**
* args[0]: Metabolic network 1 in XML format
* args[1]: Metabolic network 2 in XML format
* args[2]: Output file
*/
public static void main(String[] args) throws Exception {
MetabolicNetworkXMLLoader loader = new MetabolicNetworkXMLLoader();

Expand All @@ -15,7 +20,7 @@ public static void main(String[] args) throws Exception {

MetabolicNetwork resultNetwork = firstNetwork.interception(secondNetwork);

Writer metabolicNetworkWriter = new MetabolicNetworkJSONWriter(resultNetwork, args[3]);
Writer metabolicNetworkWriter = new MetabolicNetworkJSONWriter(resultNetwork, args[2]);
metabolicNetworkWriter.write();
}
}
4 changes: 4 additions & 0 deletions src/main/java/metapenta/commands/NetworkBoundaryFinder.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
import metapenta.tools.io.writers.NetworkBoundaryWriter;

public class NetworkBoundaryFinder {
/**
* args[0]: Metabolic network in XML format
* args[1]: Output file
*/
public static void main(String[] args) throws Exception {
MetaPenta network = new MetaPenta(args[0]);
NetworkBoundaryDTO networkBoundary = network.findNetworkBoundary();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
import metapenta.tools.io.writers.MetabolicNetworkCSVWriter;
import metapenta.tools.io.writers.Writer;

/**
* args[0]: Metabolic network in XML format
* args[1]: Output file
*/

public class WriteMetabolicNetworkInCSV {

/**
* args[0]: Metabolic network in XML format
* args[1]: Output file
*/
public static void main(String[] args) throws Exception {
MetabolicNetworkXMLLoader loader = new MetabolicNetworkXMLLoader();
MetabolicNetwork network = loader.loadNetwork(args[0]);
Expand Down