Struct libprosic::model::sample::Sample

source ·
pub struct Sample { /* private fields */ }
Expand description

A sequenced sample, e.g., a tumor or a normal sample.

Implementations

Create a new Sample.

Arguments
  • bam - BAM file with the aligned and deduplicated sequence reads.
  • pileup_window - Window around the variant that shall be searched for evidence (e.g. 5000).
  • use_fragment_evidence - Whether to use read pairs that are left and right of variant.
  • use_secondary - Whether to use secondary alignments.
  • insert_size - estimated insert size
  • prior_model - Prior assumptions about allele frequency spectrum of this sample.
  • likelihood_model - Latent variable model to calculate likelihoods of given observations.
  • max_indel_overlap - maximum number of bases a read may be aligned beyond the start or end of an indel in order to be considered as an observation
  • indel_haplotype_window - maximum number of considered bases around an indel breakpoint

Return likelihood model.

Extract observations for the given variant.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.