Class

com.fulcrumgenomics.umi

VanillaUmiConsensusCaller

Related Doc: package umi

Permalink

class VanillaUmiConsensusCaller extends UmiConsensusCaller[VanillaConsensusRead] with LazyLogging

Calls consensus reads by grouping consecutive reads with the same SAM tag.

Consecutive reads with the SAM tag are partitioned into fragments, first of pair, and second of pair reads, and a consensus read is created for each partition. A consensus read for a given partition may not be returned if any of the conditions are not met (ex. minimum number of reads, minimum mean consensus base quality, ...).

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VanillaUmiConsensusCaller
  2. LazyLogging
  3. UmiConsensusCaller
  4. AnyRef
  5. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VanillaUmiConsensusCaller(readNamePrefix: String, readGroupId: String = "A", options: VanillaUmiConsensusCallerOptions = ..., rejects: Option[SamWriter] = None)

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from VanillaUmiConsensusCaller to any2stringadd[VanillaUmiConsensusCaller] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (VanillaUmiConsensusCaller, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from VanillaUmiConsensusCaller to ArrowAssoc[VanillaUmiConsensusCaller] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. val NoCall: Byte

    Permalink
    Attributes
    protected
    Definition Classes
    UmiConsensusCaller
  7. val NoCallQual: PhredScore

    Permalink
    Attributes
    protected
    Definition Classes
    UmiConsensusCaller
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def consensusFromSamRecords(records: Seq[SamRecord]): Option[VanillaConsensusRead]

    Permalink

    Creates a consensus read from the given records.

    Creates a consensus read from the given records. If no consensus read was created, None is returned.

    Attributes
    protected[com.fulcrumgenomics.umi]
  11. def consensusReadLength(reads: Seq[SourceRead], minReads: Int): Int

    Permalink

    Calculates the length of the consensus read that should be produced.

    Calculates the length of the consensus read that should be produced. The length is calculated as the maximum length at which minReads reads still have bases.

    reads

    the set of reads being fed into the consensus

    minReads

    the minimum number of reads required

    returns

    the length of consensus read that should be created

    Attributes
    protected
  12. def consensusReadsConstructed: Long

    Permalink

    Returns the number of consensus reads constructed by this caller.

    Returns the number of consensus reads constructed by this caller.

    Definition Classes
    UmiConsensusCaller
  13. final def consensusReadsFromSamRecords(recs: Seq[SamRecord]): Seq[SamRecord]

    Permalink

    Takes in all the reads for a source molecule and, if possible, generates one or more output consensus reads as SAM records.

    Takes in all the reads for a source molecule and, if possible, generates one or more output consensus reads as SAM records.

    recs

    the full set of source SamRecords for a source molecule

    returns

    a seq of consensus SAM records, may be empty

    Definition Classes
    UmiConsensusCaller
  14. def consensusSamRecordsFromSamRecords(recs: Seq[SamRecord]): Seq[SamRecord]

    Permalink

    Takes in all the SamRecords for a single source molecule and produces consensus records.

    Takes in all the SamRecords for a single source molecule and produces consensus records.

    recs

    the full set of source SamRecords for a source molecule

    returns

    a seq of consensus SAM records, may be empty

    Attributes
    protected
    Definition Classes
    VanillaUmiConsensusCallerUmiConsensusCaller
  15. def createSamRecord(read: VanillaConsensusRead, readType: ReadType, umis: Seq[String] = Seq.empty): SamRecord

    Permalink

    Creates a SamRecord from the called consensus base and qualities.

    Creates a SamRecord from the called consensus base and qualities.

    Attributes
    protected
    Definition Classes
    VanillaUmiConsensusCallerUmiConsensusCaller
  16. def ensuring(cond: (VanillaUmiConsensusCaller) ⇒ Boolean, msg: ⇒ Any): VanillaUmiConsensusCaller

    Permalink
    Implicit information
    This member is added by an implicit conversion from VanillaUmiConsensusCaller to Ensuring[VanillaUmiConsensusCaller] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  17. def ensuring(cond: (VanillaUmiConsensusCaller) ⇒ Boolean): VanillaUmiConsensusCaller

    Permalink
    Implicit information
    This member is added by an implicit conversion from VanillaUmiConsensusCaller to Ensuring[VanillaUmiConsensusCaller] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  18. def ensuring(cond: Boolean, msg: ⇒ Any): VanillaUmiConsensusCaller

    Permalink
    Implicit information
    This member is added by an implicit conversion from VanillaUmiConsensusCaller to Ensuring[VanillaUmiConsensusCaller] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  19. def ensuring(cond: Boolean): VanillaUmiConsensusCaller

    Permalink
    Implicit information
    This member is added by an implicit conversion from VanillaUmiConsensusCaller to Ensuring[VanillaUmiConsensusCaller] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def filterToMostCommonAlignment(recs: Seq[SourceRead]): Seq[SourceRead]

    Permalink

    Takes in a non-empty seq of SamRecords and filters them such that the returned seq only contains those reads that share the most common alignment of the read sequence to the reference.

    Takes in a non-empty seq of SamRecords and filters them such that the returned seq only contains those reads that share the most common alignment of the read sequence to the reference. If two or more different alignments share equal numbers of reads, the 'most common' will be an arbitrary pick amongst those alignments, and the group of reads with that alignment will be returned.

    For the purposes of this method all that is implied by "same alignment" is that any insertions or deletions are at the same position and of the same length. This is done to allow for differential read length (either due to sequencing or untracked hard-clipping of adapters) and for differential soft-clipping at the starts and ends of reads.

    NOTE: filtered out reads are sent to the rejectRecords method and do not need further handling

    Attributes
    protected[com.fulcrumgenomics.umi]
    Definition Classes
    UmiConsensusCaller
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from VanillaUmiConsensusCaller to StringFormat[VanillaUmiConsensusCaller] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def logStatistics(logger: Logger): Unit

    Permalink

    Logs statistics about how many reads were seen, and how many were filtered/discarded due to various filters.

    Logs statistics about how many reads were seen, and how many were filtered/discarded due to various filters.

    Definition Classes
    UmiConsensusCaller
  29. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    LazyLogging
  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. val options: VanillaUmiConsensusCallerOptions

    Permalink
  34. val readGroupId: String

    Permalink

    A RG.ID to apply to all generated reads.

    A RG.ID to apply to all generated reads.

    Definition Classes
    VanillaUmiConsensusCallerUmiConsensusCaller
  35. val readNamePrefix: String

    Permalink

    A prefix to use on all read names.

    A prefix to use on all read names. If None then a suitable prefix will be synthesized.

    Definition Classes
    VanillaUmiConsensusCallerUmiConsensusCaller
  36. def readsFilteredInsufficientSupport: Long

    Permalink

    Returns the number of raw reads filtered out due to there being insufficient reads present to build the necessary set of consensus reads.

    Returns the number of raw reads filtered out due to there being insufficient reads present to build the necessary set of consensus reads.

    Definition Classes
    UmiConsensusCaller
  37. def readsFilteredMinorityAlignment: Long

    Permalink

    Returns the number of raw reads filtered out because their alignment disagreed with the majority alignment of all raw reads for the same source molecule.

    Returns the number of raw reads filtered out because their alignment disagreed with the majority alignment of all raw reads for the same source molecule.

    Definition Classes
    UmiConsensusCaller
  38. def rejectRecords(recs: Traversable[SamRecord], reason: String): Unit

    Permalink

    If a reject writer was provided, emit the reads to that writer.

    If a reject writer was provided, emit the reads to that writer.

    Attributes
    protected
    Definition Classes
    VanillaUmiConsensusCallerUmiConsensusCaller
  39. val rejects: Option[SamWriter]

    Permalink
  40. def sourceMoleculeId(rec: SamRecord): String

    Permalink

    Returns the value of the SAM tag directly.

    Returns the value of the SAM tag directly.

    rec

    a SamRecord

    returns

    an identified for the source molecule

    Definition Classes
    VanillaUmiConsensusCallerUmiConsensusCaller
  41. def subGroupRecords(records: Seq[SamRecord]): (Seq[SamRecord], Seq[SamRecord], Seq[SamRecord])

    Permalink

    Split records into those that should make a single-end consensus read, first of pair consensus read, and second of pair consensus read, respectively.

    Split records into those that should make a single-end consensus read, first of pair consensus read, and second of pair consensus read, respectively. The default method is to use the SAM flag to find unpaired reads, first of pair reads, and second of pair reads.

    Attributes
    protected
    Definition Classes
    UmiConsensusCaller
  42. def sum(ss: Array[Short]): Int

    Permalink

    Sums a short array into an Int to avoid overflow.

    Sums a short array into an Int to avoid overflow.

    Attributes
    protected
    Definition Classes
    UmiConsensusCaller
  43. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  44. def toSourceRead(rec: SamRecord, minBaseQuality: PhredScore, trim: Boolean): Option[SourceRead]

    Permalink

    Converts from a SamRecord into a SourceRead.

    Converts from a SamRecord into a SourceRead. During conversion the record is end-trimmed to remove Ns and bases below the minBaseQuality. Remaining bases that are below minBaseQuality are then masked to Ns.

    returns

    Some(SourceRead) if there are any called bases with quality > minBaseQuality, else None

    Attributes
    protected[com.fulcrumgenomics.umi]
    Definition Classes
    UmiConsensusCaller
  45. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  46. def totalFiltered: Long

    Permalink

    Returns the total number of reads filtered for any reason.

    Returns the total number of reads filtered for any reason.

    Definition Classes
    UmiConsensusCaller
  47. def totalReads: Long

    Permalink

    Returns the total number of input reads examined by the consensus caller so far.

    Returns the total number of input reads examined by the consensus caller so far.

    Definition Classes
    UmiConsensusCaller
  48. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  49. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  50. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. def [B](y: B): (VanillaUmiConsensusCaller, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from VanillaUmiConsensusCaller to ArrowAssoc[VanillaUmiConsensusCaller] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from LazyLogging

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from VanillaUmiConsensusCaller to any2stringadd[VanillaUmiConsensusCaller]

Inherited by implicit conversion StringFormat from VanillaUmiConsensusCaller to StringFormat[VanillaUmiConsensusCaller]

Inherited by implicit conversion Ensuring from VanillaUmiConsensusCaller to Ensuring[VanillaUmiConsensusCaller]

Inherited by implicit conversion ArrowAssoc from VanillaUmiConsensusCaller to ArrowAssoc[VanillaUmiConsensusCaller]

Ungrouped