




Deleting a contig
As contig numbers must always be from 1 to N, where N is the number of contigs, if we remove a particular contig, we need to ensure we still have contigs 1 to N-1. In thise case, deleting contig x, where x != N, will mean that we have a hole (at x) which can be filled by moving N down to x.
To illustrate in an algorithm we have the following; Given N contigs and a request to delete contig x.
-
Delete contig x. This is a NULL operation as far as the
io_delete_contig
operation goes as we're already assuming the data on this contig has gone elsewhere. - Move contig N to contig x (if x != N). This includes updating the disk images as well as the fortran arrays and the contig order, but not the registration lists -- yet.
- Decrement the number of contigs. (N--)
- Notify contig x of the delete using REG_DELETE.
- Notify contig N of the renumber to contig x using REG_NUMBER_CHANGE. (if appropriate)
- Update registration list information.
Hence it is important to remember that after an io_delete_contig
the
contig numbers may not be the same as before the call.





This page is maintained by staden-package. Last generated on 25 April 2003.
URL: http://www.mrc-lmb.cam.ac.uk/pubseq/manual/scripting_192.html