Skip to content

Commit

Permalink
Revisions to user guide in progress.
Browse files Browse the repository at this point in the history
Adopts Tufte-LaTeX style, with customization. Adds gen-inclusions.py,
a script to automate generation of tutorial inclusions that depend on
current version of HMMER3 programs.
  • Loading branch information
cryptogenomicon committed May 26, 2018
1 parent 7ba1e59 commit 0475657
Show file tree
Hide file tree
Showing 75 changed files with 8,957 additions and 5,529 deletions.
10 changes: 6 additions & 4 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ incorporated from other sources, including:
X Consortium



HMMER uses the Easel software library, which has its own license and
copyright information. See easel/COPYRIGHT and easel/LICENSE.

Expand Down Expand Up @@ -83,9 +82,12 @@ BSD three-clause license:
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.

"HMMER" is a trademark of the Howard Hughes Medical Institute. If you
fork a modified version of the code, please name it something that
would not be confused with HMMER itself.

HMMER development is supported in part by the National Human Genome
Research Institute of the US National Institutes of Health under grant
number R01HG009116. The content is solely the responsibility of the
authors and does not necessarily represent the official views of the
National Institutes of Health.

------------------------------------------------------------------
The HMMER dev team | HHMI/Harvard University | http://hmmer.org/
Expand Down
16 changes: 8 additions & 8 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,13 @@
################################################################
# 1. autoconf requirements
################################################################
# Autoconf 2.61 has a bug in AC_FUNC_FSEEKO; don't use it.
# Autoconf 2.61 (circa 2006) has a bug in AC_FUNC_FSEEKO; don't use it.
# 2.63 was released in 2008.
AC_PREREQ(2.63)


# Our extra macros are with Easel, in easel/m4
# Though it's sort of standard to expect them in m4/. Hope nobody gets confused.
# Our extra macros are with Easel, in easel/m4.
# It's sort of standard to expect them in m4/, don't
# be confused that they're down in easel.
#
m4_include([easel/m4/ax_compiler_vendor.m4])
m4_include([easel/m4/ax_gcc_func_attribute.m4])
Expand All @@ -75,7 +75,7 @@ m4_include([easel/m4/ax_pthread.m4])
# 2. AC_INIT
################################################################

AC_INIT(HMMER, 3.2rc1, sean@eddylab.org, hmmer)
AC_INIT(HMMER, 3.2, sean@eddylab.org, hmmer)
AC_MSG_NOTICE([Configuring HMMER3 for your system.])

# remember if the user is overriding CFLAGS
Expand Down Expand Up @@ -109,7 +109,7 @@ fi
# to use HMMER as a library inside other packages, with no name clashes.
################################################################

HMMER_DATE="March 2018"
HMMER_DATE="April 2018"
HMMER_COPYRIGHT="Copyright (C) 2018 Howard Hughes Medical Institute."
HMMER_LICENSE="Freely distributed under the BSD open source license."
HMMER_VERSION=$PACKAGE_VERSION
Expand All @@ -118,10 +118,10 @@ HMMER_URL="http://hmmer.org/"
HMMER_ESLDIR="easel"
HMMER_SADIR="libdivsufsort"

EASEL_DATE="March 2018"
EASEL_DATE="April 2018"
EASEL_COPYRIGHT="Copyright (C) 2018 Howard Hughes Medical Institute."
EASEL_LICENSE="Freely distributed under the BSD open source license."
EASEL_VERSION="0.44rc1"
EASEL_VERSION="0.44"
EASEL_URL="http://bioeasel.org/"

AC_SUBST(HMMER_DATE)
Expand Down
147 changes: 84 additions & 63 deletions documentation/man/alimask.man.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
.TH "alimask" 1 "@HMMER_DATE@" "HMMER @HMMER_VERSION@" "HMMER Manual"

.SH NAME
alimask - Add mask line to a multiple sequence alignment
alimask \- calculate and add column mask to a multiple sequence alignment

.SH SYNOPSIS
.B alimask
.I [options]
.I <msafile>
.I <postmsafile>
[\fIoptions\fR]
.I msafile
.I postmsafile


.SH DESCRIPTION
Expand All @@ -27,7 +27,7 @@ altered, even in masked regions.
.B alimask
autodetects input format, and produces masked alignments
in Stockholm format.
.I <msafile>
.I msafile
may contain only one sequence alignment.

.PP
Expand All @@ -39,14 +39,14 @@ hits.
.PP
In the simplest case, a mask range is given in coordinates
relative to the input alignment, using
.BI --alirange " <s>".
.BI \-\-alirange " <s>".
However it is more often the case that the region to be
masked has been identified in coordinates relative to
the profile model (e.g. based on recognizing a simple
repeat pattern in false hit alignments or in the HMM logo).
Not all alignment columns are converted to match state
positions in the profile (see the
.I --symfrac
.B \-\-symfrac
flag for
.B hmmbuild
for discussion), so model positions do not necessarily match
Expand All @@ -56,7 +56,7 @@ alignment positions,
.B alimask
accepts the mask range input in model coordinates as well,
using
.BI --modelrange " <s>".
.BI \-\-modelrange " <s>".
When using this flag,
.I alimask
determines which alignment positions would be identified by
Expand All @@ -75,82 +75,70 @@ flags are also used by
.SH OPTIONS

.TP
.B -h
.B \-h
Help; print a brief reminder of command line usage and all available
options.

.TP
.BI -o " <f>"
.BI \-o " <f>"
Direct the summary output to file
.IR <f> ,
rather than to
.IR stdout .
rather than to stdout.


.SH OPTIONS FOR SPECIFYING MASK RANGE

A single mask range is given as a dash-separated pair, like
.I "--modelrange 10-20"
.B "\-\-modelrange 10\-20"
and multiple ranges may be submitted as a comma-separated list,
.IR "--modelrange 10-20,30-42" .
.BR "\-\-modelrange 10\-20,30\-42" .


.TP
.BI --modelrange " <s>"
.BI \-\-modelrange " <s>"
Supply the given range(s) in model coordinates.

.TP
.BI --alirange " <s>"
.BI \-\-alirange " <s>"
Supply the given range(s) in alignment coordinates.

.TP
.B --apendmask
.B \-\-apendmask
Add to the existing mask found with the alignment.
The default is to overwrite any existing mask.

.TP
.BI --model2ali " <s>"
.BI \-\-model2ali " <s>"
Rather than actually produce the masked alignment, simply
print model range(s) corresponding to input alignment
range(s).

.TP
.BI --ali2model " <s>"
.BI \-\-ali2model " <s>"
Rather than actually produce the masked alignment, simply
print alignment range(s) corresponding to input model
range(s).


.SH OPTIONS FOR SPECIFYING THE ALPHABET

The alphabet type (amino, DNA, or RNA) is autodetected by default, by
looking at the composition of the
.IR msafile .
Autodetection is normally quite reliable, but occasionally alphabet
type may be ambiguous and autodetection can fail (for instance, on
tiny toy alignments of just a few residues). To avoid this, or to
increase robustness in automated analysis pipelines, you may specify
the alphabet type of
.I msafile
with these options.

.TP
.B --amino
Specify that all sequences in
.B \-\-amino
Assert that sequences in
.I msafile
are proteins.
are protein, bypassing alphabet autodetection.

.TP
.B --dna
Specify that all sequences in
.B \-\-dna
Assert that sequences in
.I msafile
are DNAs.
are DNA, bypassing alphabet autodetection.

.TP
.B --rna
Specify that all sequences in
.B \-\-rna
Assert that sequences in
.I msafile
are RNAs.
are RNA, bypassing alphabet autodetection.



Expand All @@ -159,24 +147,24 @@ are RNAs.
These options control how consensus columns are defined in an alignment.

.TP
.B --fast
.B \-\-fast
Define consensus columns as those that have a fraction >=
.B symfrac
of residues as opposed to gaps. (See below for the
.B --symfrac
.B \-\-symfrac
option.) This is the default.

.TP
.B --hand
.B \-\-hand
Define consensus columns in next profile using reference annotation to
the multiple alignment.
This allows you to define any consensus columns you like.

.TP
.BI --symfrac " <x>"
.BI \-\-symfrac " <x>"
Define the residue fraction threshold necessary to define a
consensus column when using the
.B --fast
.B \-\-fast
option. The default is 0.5. The symbol fraction in each column
is calculated after taking relative sequence weighting into account,
and ignoring gap characters corresponding to ends of sequence
Expand All @@ -188,7 +176,7 @@ means that only columns that include 0 gaps (internal
insertions/deletions) will be assigned as consensus.

.TP
.BI --fragthresh " <x>"
.BI \-\-fragthresh " <x>"
We only want to count terminal gaps as deletions if the aligned
sequence is known to be full-length, not if it is a fragment (for
instance, because only part of it was sequenced). HMMER uses a simple
Expand All @@ -198,12 +186,12 @@ or equal to a fraction
times the alignment length in columns,
then the sequence is handled as a fragment. The default is 0.5.
Setting
.BI --fragthresh 0
.B \-\-fragthresh 0
will define no (nonempty) sequence as a fragment; you might want to do
this if you know you've got a carefully curated alignment of full-length
sequences.
Setting
.BI --fragthresh 1
.B \-\-fragthresh 1
will define all sequences as fragments; you might want to do this if
you know your alignment is entirely composed of fragments, such as
translated short reads in metagenomic shotgun data.
Expand All @@ -219,34 +207,34 @@ each receive half the weight that one sequence would. These options
control which algorithm gets used.

.TP
.B --wpb
.B \-\-wpb
Use the Henikoff position-based sequence weighting scheme [Henikoff
and Henikoff, J. Mol. Biol. 243:574, 1994]. This is the default.

.TP
.B --wgsc
.B \-\-wgsc
Use the Gerstein/Sonnhammer/Chothia weighting algorithm [Gerstein et
al, J. Mol. Biol. 235:1067, 1994].

.TP
.B --wblosum
.B \-\-wblosum
Use the same clustering scheme that was used to weight data in
calculating BLOSUM subsitution matrices [Henikoff and Henikoff,
Proc. Natl. Acad. Sci 89:10915, 1992]. Sequences are single-linkage
clustered at an identity threshold (default 0.62; see
.IR --wid )
.BR \-\-wid )
and within each cluster of c sequences, each sequence gets relative
weight 1/c.

.TP
.B --wnone
.B \-\-wnone
No relative weights. All sequences are assigned uniform weight.

.TP
.BI --wid " <x>"
.BI \-\-wid " <x>"
Sets the identity threshold used by single-linkage clustering when
using
.IR --wblosum .
.BR \-\-wblosum .
Invalid with any other weighting scheme. Default is 0.62.


Expand All @@ -256,19 +244,52 @@ Invalid with any other weighting scheme. Default is 0.62.
.SH OTHER OPTIONS

.TP
.BI --informat " <s>"
Declare that the input
.BI \-\-informat " <s>"
Assert that input
.I msafile
is in format
is in alignment format
.IR <s> ,
bypassing format autodetection.
Common choices for
.I <s>
include:
.BR stockholm ,
.BR a2m ,
.BR afa ,
.BR psiblast ,
.BR clustal ,
.BR phylip .
For more information, and for codes for some less common formats,
see main documentation.
The string
.I <s>
is case-insensitive (\fBa2m\fR or \fBA2M\fR both work).


.TP
.BI \-\-outformat " <s>"
Write the output
.I postmsafile
in alignment format
.IR <s> .
Currently the accepted multiple alignment sequence file formats
include Stockholm, Aligned FASTA, Clustal, NCBI PSI-BLAST, PHYLIP,
Selex, and UCSC SAM A2M. Default is to autodetect the format of
the file.
Common choices for
.I <s>
include:
.BR stockholm ,
.BR a2m ,
.BR afa ,
.BR psiblast ,
.BR clustal ,
.BR phylip .
The string
.I <s>
is case-insensitive (\fBa2m\fR or \fBA2M\fR both work).
Default is
.BR stockholm .


.TP
.BI --seed " <n>"
.BI \-\-seed " <n>"
Seed the random number generator with
.IR <n> ,
an integer >= 0.
Expand All @@ -287,7 +308,7 @@ The default seed is 42.
.SH SEE ALSO

See
.B hmmer(1)
.BR hmmer (1)
for a master man page with a list of all the individual man pages
for programs in the HMMER package.

Expand Down
Loading

0 comments on commit 0475657

Please sign in to comment.