final class FeatureBuilder extends AnyRef
A builder for Features.
Feature properties such as Blocks, name, gene name, and CDS start and end can be added one by one. The appropriate type in the Feature hierarchy is determined automatically based on the properties that have been added.
The Feature is obtained by calling get.
The following are the valid combinations of provided properties and the types they give rise to.
One or more blocks, optional feature name, no gene name, no CDS start, no CDS end -> GenericFeature
One or more blocks, optional feature name, a gene name, no CDS start, no CDS end -> Transcript
One or more blocks, optional feature name, optional gene name, a CDS start, a CDS end -> MessengerRNA. If the CDS is invalid (length < 6 or length not divisible by 3) a Transcript is returned instead.
Any other combination of properties results in an IllegalArgumentException when calling get.
- Alphabetic
- By Inheritance
- FeatureBuilder
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addBlock(b: Block): FeatureBuilder
Returns a new FeatureBuilder with an additional Block added.
Returns a new FeatureBuilder with an additional Block added.
The new Block must be on the same chromosome as any existing Blocks in this FeatureBuilder, have the same Orientation, and not overlap any existing Blocks.
- b
New Block to add
- returns
New FeatureBuilder with the same properties as this plus the new Block added
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val blocks: List[Block]
- val cdsEnd: Option[Int]
- val cdsStart: Option[Int]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val featureId: Option[String]
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- val geneId: Option[String]
-
def
get(): Feature
Returns a Feature built from the provided properties.
Returns a Feature built from the provided properties.
The type of the returned object depends on which properties have been provided. Certain combinations of provided properties are invalid. See FeatureBuilder documentation for details.
- returns
The specified Feature
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
setCdsEnd(e: Int): FeatureBuilder
Returns a new FeatureBuilder with the specified CDS end.
Returns a new FeatureBuilder with the specified CDS end.
If this FeatureBuilder already has a CDS end specified, the returned object will have the new CDS end and will have no memory of the previous CDS end.
- e
New zero-based CDS end position as in MessengerRNA.cdsEnd
- returns
New FeatureBuilder with the same properties as this but the new CDS end
-
def
setCdsStart(s: Int): FeatureBuilder
Returns a new FeatureBuilder with the specified CDS start.
Returns a new FeatureBuilder with the specified CDS start.
If this FeatureBuilder already has a CDS start specified, the returned object will have the new CDS start and will have no memory of the previous CDS start.
- s
New zero-based CDS start position as in MessengerRNA.cdsStart
- returns
New FeatureBuilder with the same properties as this but the new CDS start
-
def
setFeatureId(t: String): FeatureBuilder
Returns a new FeatureBuilder with the specified feature name.
Returns a new FeatureBuilder with the specified feature name.
If this FeatureBuilder already has a feature name specified, the returned object will have the new feature name and will have no memory of the previous feature name.
- t
New feature name
- returns
New FeatureBuilder with the same properties as this but the new feature name
-
def
setGeneId(g: String): FeatureBuilder
Returns a new FeatureBuilder with the specified gene name.
Returns a new FeatureBuilder with the specified gene name.
If this FeatureBuilder already has a gene name specified, the returned object will have the new gene name and will have no memory of the previous gene name.
- g
New gene name
- returns
New FeatureBuilder with the same properties as this but the new gene name
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )