|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprocope.data.complexes.ComplexSetWriter
public class ComplexSetWriter
This class contains static methods to write complex sets to files or streams. It is not instantiatable.
Complex sets are written out as one complex per line where the proteins of each complexes are seperated by a specified delimiter character (by default the TAB character).
Complex
,
ComplexSet
Field Summary | |
---|---|
static String |
DEFAULT_DELIMITER
Default delimiter which seperates the proteins of a complex: TAB |
Constructor Summary | |
---|---|
ComplexSetWriter()
|
Method Summary | |
---|---|
static void |
writeComplexes(ComplexSet set,
File outfile)
Writes a complex set to a specified file. |
static void |
writeComplexes(ComplexSet set,
File outfile,
String delimiter)
Writes a complex set to a specified file. |
static void |
writeComplexes(ComplexSet set,
OutputStream outstream)
Writes a complex set to an OutputStream. |
static void |
writeComplexes(ComplexSet set,
OutputStream outstream,
String delimiter)
Writes a complex set to an OutputStream. |
static void |
writeComplexes(ComplexSet set,
String outfile)
Writes a complex set to a specified file. |
static void |
writeComplexes(ComplexSet set,
String outfile,
String delimiter)
Writes a complex set to a specified file. |
static void |
writeXGMML(ComplexSet set,
ProteinNetwork net,
File outfile)
Creates a Cytoscape-compatible XGMML file. |
static void |
writeXGMML(ComplexSet set,
ProteinNetwork net,
OutputStream outstream)
Creates a Cytoscape-compatible XGMML file, but writes to an output stream. |
static void |
writeXGMML(ComplexSet set,
ProteinNetwork net,
String outfile)
Creates a Cytoscape-compatible XGMML file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_DELIMITER
Constructor Detail |
---|
public ComplexSetWriter()
Method Detail |
---|
public static void writeComplexes(ComplexSet set, String outfile) throws IOException
set
- the set to be writtenoutfile
- path to the output file
IOException
- if the file could not be writtenpublic static void writeComplexes(ComplexSet set, String outfile, String delimiter) throws IOException
set
- the set to be writtenoutfile
- path to the output filedelimiter
- custom delimiter character
IOException
- if the file could not be writtenpublic static void writeComplexes(ComplexSet set, File outfile) throws IOException
set
- the set to be writtenoutfile
- path to the output file
IOException
- if the file could not be writtenpublic static void writeComplexes(ComplexSet set, File outfile, String delimiter) throws IOException
set
- the set to be writtenoutfile
- path to the output filedelimiter
- custom delimiter character
IOException
- if the file could not be writtenpublic static void writeComplexes(ComplexSet set, OutputStream outstream)
set
- the set to be writtenoutstream
- output stream the complexes will be written topublic static void writeComplexes(ComplexSet set, OutputStream outstream, String delimiter)
set
- the set to be writtenoutstream
- output stream the complexes will be written todelimiter
- custom delimiter characterpublic static void writeXGMML(ComplexSet set, ProteinNetwork net, String outfile) throws IOException
set
- complex set to be stored as XGMMLnet
- network for edge weights, can be null
outfile
- path to output file
IOException
- if the file could not be writtenpublic static void writeXGMML(ComplexSet set, ProteinNetwork net, File outfile) throws IOException
set
- complex set to be stored as XGMMLnet
- network for edge weights, can be null
outfile
- path to output file
IOException
- if the file could not be writtenpublic static void writeXGMML(ComplexSet set, ProteinNetwork net, OutputStream outstream)
set
- complex set to be stored as XGMMLnet
- network for edge weights, can be null
outstream
- outstream to which the XGMML will be written to
FileNotFoundException
- if the output file could not be opened
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |