Package org.intermine.bio.web.export
Class GFF3Exporter
- java.lang.Object
-
- org.intermine.bio.web.export.GFF3Exporter
-
- All Implemented Interfaces:
org.intermine.web.logic.export.Exporter
public class GFF3Exporter extends java.lang.Object implements org.intermine.web.logic.export.ExporterExports LocatedSequenceFeature objects in GFF3 format.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFLY_LINKfor the gff header, link to taxomonystatic java.util.Set<java.lang.String>GFF_FIELDSthe fields we don't want to display as attributesstatic java.lang.StringWORM_LINKfor the gff header, link to taxomony
-
Constructor Summary
Constructors Constructor Description GFF3Exporter(java.io.PrintWriter out, java.util.List<java.lang.Integer> indexes, java.util.Map<java.lang.String,java.lang.String> soClassNames, java.util.List<java.lang.String> attributesNames, java.lang.String sourceName, java.util.Set<java.lang.String> organisms, boolean makeUcscCompatible)Constructor.GFF3Exporter(java.io.PrintWriter out, java.util.List<java.lang.Integer> indexes, java.util.Map<java.lang.String,java.lang.String> soClassNames, java.util.List<java.lang.String> attributesNames, java.lang.String sourceName, java.util.Set<java.lang.String> organisms, boolean makeUcscCompatible, 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)intgetWrittenResultsCount()
-
-
-
Field Detail
-
GFF_FIELDS
public static final java.util.Set<java.lang.String> GFF_FIELDS
the fields we don't want to display as attributes
-
WORM_LINK
public static final java.lang.String WORM_LINK
for the gff header, link to taxomony- See Also:
- Constant Field Values
-
FLY_LINK
public static final java.lang.String FLY_LINK
for the gff header, link to taxomony- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFF3Exporter
public GFF3Exporter(java.io.PrintWriter out, java.util.List<java.lang.Integer> indexes, java.util.Map<java.lang.String,java.lang.String> soClassNames, java.util.List<java.lang.String> attributesNames, java.lang.String sourceName, java.util.Set<java.lang.String> organisms, boolean makeUcscCompatible)Constructor.- Parameters:
out- output streamindexes- index of column with exported sequencesoClassNames- mappingattributesNames- names of attributes that are printed in record, they are names of columns in results table, they are in the same order as corresponding columns in results tablesourceName- name of Mine to put in GFF source columnorganisms- taxon id of the organismsmakeUcscCompatible- true if chromosome ids should be prefixed by 'chr'
-
GFF3Exporter
public GFF3Exporter(java.io.PrintWriter out, java.util.List<java.lang.Integer> indexes, java.util.Map<java.lang.String,java.lang.String> soClassNames, java.util.List<java.lang.String> attributesNames, java.lang.String sourceName, java.util.Set<java.lang.String> organisms, boolean makeUcscCompatible, java.util.List<org.intermine.pathquery.Path> paths)Constructor.- Parameters:
out- output streamindexes- index of column with exported sequencesoClassNames- mappingattributesNames- names of attributes that are printed in record, they are names of columns in results table, they are in the same order as corresponding columns in results tablesourceName- name of Mine to put in GFF source columnorganisms- taxon id of the organismsmakeUcscCompatible- true if chromosome ids should be prefixed by 'chr'paths- paths
-
-
Method Detail
-
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
-
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
-
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
-
getWrittenResultsCount
public int getWrittenResultsCount()
- Specified by:
getWrittenResultsCountin interfaceorg.intermine.web.logic.export.Exporter
-
-