.\" -*- mode: troff; coding: utf-8 -*-
.\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
.ie n \{\
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
.    if \nF \{\
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{\
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "SUBSTITCH 1"
.TH SUBSTITCH 1 2024-11-09 "perl v5.40.0" "User Contributed Perl Documentation"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH NAME
substitch.pl \-\- Split/merge stitch files into/out of stitch files
.SH SYNOPSIS
.IX Header "SYNOPSIS"
substitch.pl \-\-split 5 allchromosomes.stitch  #split big stitch into 5 roughly equal chunks
.PP
substitch.pl \-\-project allspecies.seqs sub.anchors #project some anchors into a different coordinate space (as long as the stitch component sequences match)
.SH OPTIONS
.IX Header "OPTIONS"
\&\-\-verbose => makes more verbose
\&\-\-faketfidf => fake tfidf scores based on score stat in file
.PP
Note on split: This program does not claim to produce an optimal
splitting.  It tries a couple heuristics, refines the results, and
picks the best arrangement it's found so far. Technically this is a
variation on the traditional "trunk packing problem," which is (at
least in the abstract case) NP-hard, if I remember 15\-251
correctly. This particular variety of trunk packing however, seems
like it should be solvable faster (worst case some n^k dynamic
programming I think, but I'm betting this way is faster and tons
easier to write for 90% of the cases out there). If anyone reading
this goes "You moron, this has been solved a thousand times already,"
please let me know how: krisp@dna.bio.keio.ac.jp
