seqbias_save: Saving seqbias models

Description Usage Arguments Details Author(s) See Also Examples

Description

Writes to a seqbias model to a file suitable to loaded with 'seqbias.load'

Usage

1
seqbias.save(sb, fn)

Arguments

sb

A seqbias class created with 'seqbias.fit' or 'seqbias.load'

fn

A file name to write the model to

Details

A large seqbias model can take some time (several minutes) to fit. It is often preferable to do this just once. This function writes the model to a file in YAML format, suitable to be read with 'seqbias.load'.

Author(s)

Daniel Jones dcjones@cs.washington.edu

See Also

seqbias.load

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.