ALF(1)
π ALF(1) β the alignment-free sequence comparison era π
okay bestie, welcome to alf, the manual page for ALF version 1.1.14 β Alignment free sequence comparison. No alignments, no drama, just vibes and k-mer math. Let's get into it π¦
β¨ NAME β¨
alf β Alignment free sequence comparison
πΈ SYNOPSIS πΈ
alf [OPTIONS] -i IN.FASTA [-o OUT.TXT]
π DESCRIPTION π
So what this does is: it computes the pairwise similarity of sequences using alignment-free methods from the file IN.FASTA, and then writes out a tab-delimited matrix with pairwise scores to OUT.TXT. That's it, that's the whole glow-up β¨ β no aligning, just counting.
π OPTIONS π
π«Ά The basics
-h,--helpβ shows you the help message. classic. iconic. your first stop.--versionβ spills the version info.-v,--verboseβ when you give it, all the details about the progress get printed to the screen. not me wanting to see everything happen live π
π Input / Output
π -i, --input-file INPUT_FILE
The name of the multi-FASTA input file. valid filetypes are:
.sam[.*], .raw[.*], .gbk[.*], .frn[.*], .fq[.*], .fna[.*],
.ffn[.*], .fastq[.*], .fasta[.*], .fas[.*], .faa[.*], .fa[.*],
.embl[.*], and .bam
where * is any of these extensions: gz, bz2, and bgzf, so you get transparent (de)compression. it's giving flexible π
π -o, --output-file OUTPUT_FILE
The name of the file where that tab-delimited matrix with pairwise scores gets written. default is to write to stdout, so if you're a "just pipe it somewhere" girlie that's your moment. valid filetype is: .alf[.*], where * is any of the following extensions: tsv for transparent (de)compression.
π§ General Algorithm Parameters
β -m, --method STRING
Pick the method to use. one of N2, D2, D2Star, and D2z. default: N2.
π -k, --k-mer-size INTEGER
The size of the k-mers. default: 4.
πΈ -mo, --bg-model-order INTEGER
The order of the background Markov Model. default: 1.
π N2 Algorithm Parameters
these ones are specifically for the N2 method, so if you're using another method they don't really eat here. proceed accordingly π
π¦ -rc, --reverse-complement STRING
Which strand to score. use both_strands to score both strands simultaneously (main character energy, doing both at once). one of input, both_strands, mean, min, and max. default: input.
π -mm, --mismatches INTEGER
Number of mismatches, one of 0 and 1. when 1 is used, N2 uses the k-mer-neighbour with one mismatch. default: 0.
π -mmw, --mismatch-weight DOUBLE
A real-valued weight of counts for words with mismatches. default: 0.1.
β¨ -kwf, --k-mer-weights-file OUTPUT_FILE
Prints the k-mer weights for every sequence to this file if you give it. valid filetype is: .txt.
π CONTACT AND REFERENCES
Got questions or comments? slide into the inbox:
Jonathan Goeke <goeke@molgen.mpg.de>
Also fr fr please reference this publication if you used ALF or the N2 method for your analysis:
Jonathan Goeke, Marcel H. Schulz, Julia Lasserre, and Martin
Vingron. Estimation of Pairwise Sequence Similarity of Mammalian
Enhancers with Word Neighbourhood Counts. Bioinformatics (2012).
Project Homepage:
https://www.seqan.de/apps/alf
okay that's the whole page bestie, you're officially ALF-literate π«Ά go forth and compare your sequences alignment-free, no cap. this was alf 1.1.14 [tarball], and you've been reading ALF(1) β stay iconic, mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: seqan-apps 2.5.2-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms