Package org.intermine.bio.web.export
Class SequenceExporter
- java.lang.Object
-
- org.intermine.bio.web.export.SequenceExporter
-
- All Implemented Interfaces:
org.intermine.web.logic.export.Exporter
public class SequenceExporter extends java.lang.Object implements org.intermine.web.logic.export.ExporterExport data in FASTA format. Select cell in each row that can be exported as a sequence and fetch associated sequence.
-
-
Constructor Summary
Constructors Constructor Description SequenceExporter(org.intermine.objectstore.ObjectStore os, java.io.OutputStream outputStream, int featureIndex, java.util.Map<java.lang.String,java.util.List<org.intermine.metadata.FieldDescriptor>> classKeys, int extension, java.lang.String translate)Constructor.SequenceExporter(org.intermine.objectstore.ObjectStore os, java.io.OutputStream outputStream, int featureIndex, java.util.Map<java.lang.String,java.util.List<org.intermine.metadata.FieldDescriptor>> classKeys, int extension, java.lang.String translate, java.util.List<org.intermine.pathquery.Path> paths)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanExport(java.util.List<java.lang.Class<?>> clazzes)static booleancanExportStatic(java.util.List<java.lang.Class<?>> clazzes)voidexport(java.util.Iterator<? extends java.util.List<org.intermine.api.results.ResultElement>> resultIt)voidexport(java.util.Iterator<? extends java.util.List<org.intermine.api.results.ResultElement>> resultIt, java.util.Collection<org.intermine.pathquery.Path> unionPathCollection, java.util.Collection<org.intermine.pathquery.Path> newPathCollection)Lines are always separated with \n because third party tool writeFasta is used for writing sequence.intgetWrittenResultsCount()
-
-
-
Constructor Detail
-
SequenceExporter
public SequenceExporter(org.intermine.objectstore.ObjectStore os, java.io.OutputStream outputStream, int featureIndex, java.util.Map<java.lang.String,java.util.List<org.intermine.metadata.FieldDescriptor>> classKeys, int extension, java.lang.String translate)Constructor.- Parameters:
os- object store used for fetching sequence for exported objectoutputStream- output streamfeatureIndex- index of cell in row that contains object to be exportedclassKeys- for the modelextension- extensiontranslate- if the translation is wanted (=y)
-
SequenceExporter
public SequenceExporter(org.intermine.objectstore.ObjectStore os, java.io.OutputStream outputStream, int featureIndex, java.util.Map<java.lang.String,java.util.List<org.intermine.metadata.FieldDescriptor>> classKeys, int extension, java.lang.String translate, java.util.List<org.intermine.pathquery.Path> paths)Constructor.- Parameters:
os- object store used for fetching sequence for exported objectoutputStream- output streamfeatureIndex- index of cell in row that contains object to be exportedclassKeys- for the modelextension- extensionpaths- paths to includetranslate- if the translation is wanted (=y)
-
-
Method Detail
-
getWrittenResultsCount
public int getWrittenResultsCount()
- Specified by:
getWrittenResultsCountin interfaceorg.intermine.web.logic.export.Exporter
-
export
public void export(java.util.Iterator<? extends java.util.List<org.intermine.api.results.ResultElement>> resultIt)
- Specified by:
exportin interfaceorg.intermine.web.logic.export.Exporter
-
export
public void export(java.util.Iterator<? extends java.util.List<org.intermine.api.results.ResultElement>> resultIt, java.util.Collection<org.intermine.pathquery.Path> unionPathCollection, java.util.Collection<org.intermine.pathquery.Path> newPathCollection)Lines are always separated with \n because third party tool writeFasta is used for writing sequence.- Specified by:
exportin interfaceorg.intermine.web.logic.export.Exporter
-
canExport
public boolean canExport(java.util.List<java.lang.Class<?>> clazzes)
- Specified by:
canExportin interfaceorg.intermine.web.logic.export.Exporter
-
canExportStatic
public static boolean canExportStatic(java.util.List<java.lang.Class<?>> clazzes)
- Parameters:
clazzes- classes of result- Returns:
- true if this exporter can export result composed of specified classes
-
-