seqbias_load: Loading seqbias models

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Loads a seqbias model from a file written with 'seqbias.save'.

Usage

1
seqbias.load(ref_fn, model_fn)

Arguments

ref_fn

filename of a reference sequence against which the reads are aligned in FASTA format.

model_fn

filename of a saved seqbias model

Details

A large seqbias model can take some time (several minutes) to fit. It is often preferable to do this just once. This function load the model from a file in YAML format, having been written with 'seqbias.save'.

Value

A seqbias class.

Author(s)

Daniel Jones dcjones@cs.washington.edu

See Also

seqbias.save

Examples

1
2
3
4
5
6
7
8
9
  reads_fn <- system.file( "extra/example.bam", package = "seqbias" )
  ref_fn <- system.file( "extra/example.fa", package = "seqbias" )

  sb <- seqbias.fit( ref_fn, reads_fn )

  seqbias.save( sb, "my_seqbias_model.yml" )

  # load sometime later
  sb <- seqbias.load( ref_fn, "my_seqbias_model.yml" )

seqbias documentation built on Nov. 8, 2020, 5:55 p.m.