first previous next last contents

io_insert_base, io_modify_base and io_delete_base

#include <IO.h>

int io_insert_base(
	GapIO  *io,
	int	gel,
	int	pos,
	char	base);

int io_modify_base(
	GapIO  *io,
	int	gel,
	int	pos,
	char	base);

int io_delete_base(
	GapIO  *io,
	int	gel,
	int	pos);

These functions modify readings by inserting, changing, or deleting individual bases. Where needed, they update any annotations on the reading to ensure that all annotations are still covering the same sequence fragments. The confidence values and original positions arrays are also updated. Inserted and edited bases are given confidence of 100 and original positions of 0.

io_insert_base uses the io_insert_seq function to inserts a single base with chacter base to at base position pos. Positions are measured counted such that inserting at base 1 inserts a base at the start of sequence.

io_modify_base uses the io_replace_seq function to replace a single base at position pos with base.

io_delete_base uses the io_delete_seq function to delete a single base at position pos.

FIXME:

NOTE that io_insert_base and io_delete_base modify the sequence, but DO NOT update the the GReadings.sequence_length or io_length() data.


first previous next last contents
This page is maintained by staden-package. Last generated on 1 March 2001.
URL: http://www.mrc-lmb.cam.ac.uk/pubseq/manual/scripting_144.html