public class GenomeFeatureMapBuilder extends Object
Constructor and Description |
---|
GenomeFeatureMapBuilder() |
Modifier and Type | Method and Description |
---|---|
GenomeFeatureMapBuilder |
addFeature(GenomeFeature feature)
Adds a GenomeFeature to the map.
|
static void |
addFeatureToRangemap(com.google.common.collect.RangeMap<Integer,HashSet<GenomeFeature>> masterMap,
GenomeFeature feature)
Add a GenomeFeature to a RangeMap, stacking it on top of any existing features instead of overwriting them
(how RangeMap behaves natively)
|
GenomeFeatureMapBuilder |
addFromFlatFile(String filename)
Load in data from a flat, tab-delimited text file.
|
GenomeFeatureMapBuilder |
addFromGffFile(String filename)
Load in data from a GFF (Gene Feature Format) file.
|
GenomeFeatureMapBuilder |
addFromJsonFile(String filename)
Load in data from a JSON-formatted file.
|
GenomeFeatureMapBuilder |
addOrReplaceFeature(GenomeFeature feature)
Adds a GenomeFeature to the map, regardless of whether or not it's already been added.
|
GenomeFeatureMap |
build() |
GenomeFeatureMapBuilder |
replaceFeature(GenomeFeature feature)
Replaces the GenomeFeature with a specified ID with a new one.
|
public GenomeFeatureMap build()
public static void addFeatureToRangemap(com.google.common.collect.RangeMap<Integer,HashSet<GenomeFeature>> masterMap, GenomeFeature feature)
masterMap
- Rangemap object to be modifiedfeature
- GenomeFeature to be added. Only start and stop position are checkedpublic GenomeFeatureMapBuilder addFeature(GenomeFeature feature)
feature
- The GenomeFeature to be addedpublic GenomeFeatureMapBuilder replaceFeature(GenomeFeature feature)
feature
- The GenomeFeature to be addedpublic GenomeFeatureMapBuilder addOrReplaceFeature(GenomeFeature feature)
feature
- The GenomeFeature to be addedpublic GenomeFeatureMapBuilder addFromGffFile(String filename)
filename
- public GenomeFeatureMapBuilder addFromJsonFile(String filename)
filename
- public GenomeFeatureMapBuilder addFromFlatFile(String filename)
filename
- Copyright © 2018. All rights reserved.