~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to doc/man/split_fasta.m4

  • Committer: Package Import Robot
  • Author(s): Michael Hanke
  • Date: 2012-03-30 12:40:01 UTC
  • mfrom: (9.1.2 sid)
  • Revision ID: package-import@ubuntu.com-20120330124001-ze0lhxm5uwq2e3mo
Tags: 3.4.2-2
Added patch to handle a missing CFLAGS variable in Python's sysconfig
report (Closes: #661658).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
include(manual.h)dnl
 
2
HEADER(split_fasta)
 
3
 
 
4
SECTION(NAME) 
 
5
BOLD(split_fasta) - Split a fasta file according to sequence and character counts
 
6
 
 
7
SECTION(SYNOPSIS)
 
8
CODE(BOLD(split_fasta query_granularity character_granularity fasta_file))
 
9
 
 
10
SECTION(DESCRIPTION)
 
11
BOLD(split_fasta) is a simple script to split a fasta file according to user provided parameters.  The script iterates over the given file, generating a new sub_file called input.i each time the contents of the previous file (input.(i-1)) exceed the number of queries given by query_granularity or the number of characters given by character_granularity. 
 
12
 
 
13
SECTION(OPTIONS)
 
14
OPTIONS_BEGIN
 
15
OPTIONS_END
 
16
 
 
17
SECTION(EXIT STATUS)
 
18
On success, returns zero.  On failure, returns non-zero.
 
19
 
 
20
SECTION(ENVIRONMENT VARIABLES)
 
21
 
 
22
SECTION(EXAMPLES)
 
23
 
 
24
To split a fasta file smallpks.fa into pieces no larger than 500 queries and with no piece receiving additional sequences if it exceeds 10000 characters we would do:
 
25
LONGCODE_BEGIN
 
26
python split_fasta 500 10000 smallpks.fa
 
27
LONGCODE_END
 
28
This would generate files input.0, input.1, ..., input.N where N is the number of appropriately constrained files necessary to contain all sequences in smallpks.fa.
 
29
 
 
30
SECTION(COPYRIGHT)
 
31
 
 
32
COPYRIGHT_BOILERPLATE
 
33
 
 
34
SECTION(SEE ALSO)
 
35
 
 
36
SEE_ALSO_MAKEFLOW
 
37
 
 
38
FOOTER
 
39