Package org.intermine.bio.web.export
Class BEDExporter
- java.lang.Object
-
- org.intermine.bio.web.export.BEDExporter
-
- All Implemented Interfaces:
org.intermine.web.logic.export.Exporter
public class BEDExporter extends java.lang.Object implements org.intermine.web.logic.export.ExporterExports LocatedSequenceFeature objects in UCSC BED format.
-
-
Constructor Summary
Constructors Constructor Description BEDExporter(java.io.PrintWriter out, java.util.List<java.lang.Integer> featureIndexes, java.lang.String sourceName, java.lang.String organismString, boolean makeUcscCompatible, java.lang.String trackDescription)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)intgetWrittenResultsCount()
-
-
-
Constructor Detail
-
BEDExporter
public BEDExporter(java.io.PrintWriter out, java.util.List<java.lang.Integer> featureIndexes, java.lang.String sourceName, java.lang.String organismString, boolean makeUcscCompatible, java.lang.String trackDescription)Constructor.- Parameters:
out- output streamfeatureIndexes- index of column with exported sequencesourceName- name of Mine to put in GFF source columnorganismString- a comma separated string of organism short namesmakeUcscCompatible- true if chromosome ids should be prefixed by 'chr'trackDescription- track description in the header
-
-
Method Detail
-
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)- Specified by:
exportin interfaceorg.intermine.web.logic.export.Exporter
-
getWrittenResultsCount
public int getWrittenResultsCount()
- Specified by:
getWrittenResultsCountin 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 row- Returns:
- true if this exporter can export result composed of specified classes
-
-