Packages

final case class SamMapping(record: SAMRecord, firstOfPairStrandOnTranscript: Orientation) extends GenericFeature with Product with Serializable

A Feature representing a mapped SAM record.

The Blocks of this SamMapping are the aligned blocks of the SAM record translated to zero-based half-open intervals.

If the sequencing library is strand specific, the Orientation of this Feature is the transcription strand of the entire fragment the record came from. For example, if the reads are unpaired and strand-specific, and always map to the transcription strand for this library, then this SamMapping will have Orientation Plus for a read mapped to the plus strand or Minus for a read mapped to the minus strand. If the reads are paired and read 1 always gives the transcription strand for this library, and we have a pair of records with read 1 mapped to the plus strand and read 2 mapped to the minus strand, then the entire fragment was transcribed from the plus strand, so the Orientation of both SamMappings is Plus.

If the library is not RNA-seq or is not strand specific, the Orientation is Unstranded.

record

The SAM record

firstOfPairStrandOnTranscript

Strand relative to transcription strand of read 1 (if reads are paired) or all reads (if unpaired). If read 1 maps to the transcription strand, this parameter should be Plus. If read 1 maps to the opposite of the transcription strand, this parameter should be Minus. If reads are not strand-specific, this parameter should be Unstranded.

Linear Supertypes
Serializable, Serializable, Product, Equals, GenericFeature, Feature, Ordered[Feature], Comparable[Feature], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SamMapping
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. GenericFeature
  7. Feature
  8. Ordered
  9. Comparable
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SamMapping(record: SAMRecord, firstOfPairStrandOnTranscript: Orientation)

    record

    The SAM record

    firstOfPairStrandOnTranscript

    Strand relative to transcription strand of read 1 (if reads are paired) or all reads (if unpaired). If read 1 maps to the transcription strand, this parameter should be Plus. If read 1 maps to the opposite of the transcription strand, this parameter should be Minus. If reads are not strand-specific, this parameter should be Unstranded.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def <(that: Feature): Boolean
    Definition Classes
    Ordered
  4. def <=(that: Feature): Boolean
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def >(that: Feature): Boolean
    Definition Classes
    Ordered
  7. def >=(that: Feature): Boolean
    Definition Classes
    Ordered
  8. final def addBlock(block: Block): Feature

    Returns a GenericFeature representing this with a new Block merged in.

    Returns a GenericFeature representing this with a new Block merged in.

    The underlying Region of the returned Feature is the result of calling Region.addBlock on the underlying Region of this Feature. The name of the returned Feature is None.

    block

    Block to add

    returns

    GenericFeature whose underlying Region has the new Block merged in, with name None

    Definition Classes
    GenericFeatureFeature
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. val blocks: Region
    Definition Classes
    GenericFeatureFeature
  11. def canEqual(other: Any): Boolean

    Returns true if other is an instance of GenericFeature, false otherwise.

    Returns true if other is an instance of GenericFeature, false otherwise.

    Definition Classes
    GenericFeature
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def compare(that: Feature): Int

    Returns the result of comparing this GenericFeature to another Feature.

    Returns the result of comparing this GenericFeature to another Feature.

    First compare the underlying Regions with Region.compare. If that result is non-zero, return it.

    Next, compare the names. If both names are defined, use regular ordering on Strings. Otherwise, compare according to an ordering where name defined comes before name not defined. If the name comparison is non-zero, return it.

    Next, compare the classes. The ordering used is GenericFeature < Transcript < MessengerRNA.

    that

    Other Feature to compare

    returns

    Negative integer if this is less than other, zero if neither is greater, positive integer if this is greater than other

    Definition Classes
    GenericFeature → Ordered
  14. def compareTo(that: Feature): Int
    Definition Classes
    Ordered → Comparable
  15. def contains(other: Feature): Boolean

    Returns a boolean value representing whether this Feature contains another Feature.

    Returns a boolean value representing whether this Feature contains another Feature.

    Ignores feature name and calls Region.contains on the two underlying Regions.

    other

    Other Feature

    returns

    True if this Feature contains the other, false otherwise

    Definition Classes
    Feature
  16. def containsCompatibleIntrons(other: Feature): Boolean

    Returns a boolean value representing whether this Feature contains another Feature and their introns are compatible.

    Returns a boolean value representing whether this Feature contains another Feature and their introns are compatible.

    That is, no INTERNAL block boundary for one of the Features can fall strictly within a Block of the other Feature.

    other

    Other Feature

    returns

    True if this Feature contains the other and their introns are compatible, false otherwise

    Definition Classes
    Feature
  17. def distance(other: Feature): Int

    Returns the distance between this Feature and another Feature.

    Returns the distance between this Feature and another Feature.

    Orientation is ignored.

    If the spans of the Features (including introns) overlap, 0 is returned. Otherwise, if the other Feature lies to the right of this Feature, distance is defined as the first position of the other Feature minus the last position of this Feature. The definition is similar for the opposite direction. Therefore, the returned distance is a nonnegative number.

    If the Features are on different chromosomes, an IllegalArgumentException is thrown.

    other

    Other Feature

    returns

    The distance in base pairs between this Feature and the other Feature

    Definition Classes
    Feature
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def equals(other: Any): Boolean

    Returns an equality comparison of this with another object.

    Returns an equality comparison of this with another object.

    Returns true if other is a GenericFeature that can equal this according to GenericFeature.canEqual, the underlying Regions are equal, and the names are equal. Returns false otherwise.

    other

    Other object

    returns

    True if this equals other, false otherwise

    Definition Classes
    GenericFeature → AnyRef → Any
  20. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. val firstOfPairStrandOnTranscript: Orientation
  22. def getBlocks: List[Block]

    Returns the list of Blocks of the underlying Region as in Region.blocks.

    Returns the list of Blocks of the underlying Region as in Region.blocks.

    Definition Classes
    Feature
  23. def getChr: String

    Returns the chromosome name.

    Returns the chromosome name.

    Definition Classes
    Feature
  24. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  25. def getEnd: Int

    Returns the end position of the underlying Region as in Region.end.

    Returns the end position of the underlying Region as in Region.end.

    Definition Classes
    Feature
  26. def getOrientation: Orientation

    Returns the orientation of the underlying Region as in Region.orientation.

    Returns the orientation of the underlying Region as in Region.orientation.

    Definition Classes
    Feature
  27. def getStart: Int

    Returns the start position of the underlying Region as in Region.start.

    Returns the start position of the underlying Region as in Region.start.

    Definition Classes
    Feature
  28. lazy val hashCode: Int

    A hashCode based on the underlying Region and name.

    A hashCode based on the underlying Region and name.

    Definition Classes
    GenericFeature → AnyRef → Any
  29. def hc: Int
    Attributes
    protected
    Definition Classes
    GenericFeature
  30. final def intersection(other: Feature): Option[Feature]

    Returns a GenericFeature representing the intersection of this with another Feature.

    Returns a GenericFeature representing the intersection of this with another Feature.

    If the underlying Regions do not overlap according to Region.overlaps, returns None.

    Otherwise, the returned feature has underlying Region equal to the intersection of the two underlying Regions as computed by Region.intersection. The returned feature has name None.

    other

    Other Feature

    returns

    GenericFeature calculated as the intersection of the underlying Regions with name None, or None if the underlying Regions do not overlap

    Definition Classes
    GenericFeatureFeature
  31. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  32. final def minus(other: Feature): Option[Feature]

    Returns a GenericFeature representing this minus the overlap with another Feature.

    Returns a GenericFeature representing this minus the overlap with another Feature.

    If the underlying Region of this Feature is contained in the underlying Region of the other, returns None.

    Otherwise, the returned Feature has underlying Region equal to the result of Region.minus on the two underlying Regions. The returned Feature has name None.

    other

    Other Feature

    returns

    GenericFeature calculated as the subtraction of the underlying Regions with name None, or None if that subtraction is empty

    Definition Classes
    GenericFeatureFeature
  33. val name: Option[String]
    Definition Classes
    GenericFeatureFeature
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  37. def numBlocks: Int

    Returns the number of Blocks in the underlying region.

    Returns the number of Blocks in the underlying region.

    Definition Classes
    Feature
  38. def overlaps(other: Feature): Boolean

    Returns a boolean value representing whether this Feature overlaps another Feature.

    Returns a boolean value representing whether this Feature overlaps another Feature.

    Ignores feature name and calls Region.overlaps on the two underlying Regions.

    other

    Other Feature

    returns

    True if the Features overlap, false otherwise

    Definition Classes
    Feature
  39. def overlapsCompatibleIntrons(other: Feature): Boolean

    Returns a boolean value representing whether this Feature overlaps another Feature and their introns are compatible.

    Returns a boolean value representing whether this Feature overlaps another Feature and their introns are compatible.

    That is, no INTERNAL block boundary for one of the Features can fall strictly within a Block of the other Feature.

    other

    Other Feature

    returns

    True if the Features overlap and their introns are compatible, false otherwise

    Definition Classes
    Feature
  40. def overlapsSpan(other: Feature): Boolean

    Returns a boolean value representing whether the span of this Feature overlaps the span of another Feature.

    Returns a boolean value representing whether the span of this Feature overlaps the span of another Feature.

    Ignores feature name and calls Region.overlapsSpan on the two underlying Regions.

    other

    Other Feature

    returns

    True if the spans of the Features overlap, false otherwise

    Definition Classes
    Feature
  41. val record: SAMRecord
  42. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  43. def toString(): String

    Returns a string representation of this GenericFeature.

    Returns a string representation of this GenericFeature.

    Definition Classes
    GenericFeature → AnyRef → Any
  44. final def union(other: Feature): Feature

    Returns a GenericFeature representing the union of this with another Feature.

    Returns a GenericFeature representing the union of this with another Feature.

    The returned feature has underlying Region equal to the union of the two underlying Regions as computed by Region.union. The returned feature has name None.

    other

    Other Feature

    returns

    GenericFeature calculated as the union of the underlying Regions, with name None

    Definition Classes
    GenericFeatureFeature
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from GenericFeature

Inherited from Feature

Inherited from Ordered[Feature]

Inherited from Comparable[Feature]

Inherited from AnyRef

Inherited from Any

Ungrouped