filter
Usage: atomworks msa filter [OPTIONS] {input_dir} [output_dir]
Filter MSA files using HHfilter to reduce sequence count and
redundancy.
This command applies HHfilter to MSA files to reduce their size
by:
1. Limiting the maximum number of sequences
2. Filtering by maximum pairwise sequence identity
3. Filtering by minimum coverage with the query sequence
Can be applied to organized MSA files or any directory of MSA
files.
Automatic compression/decompression is applied based on the
input and output file extensions.
Examples:
# Filter files in a separate output directory
atomworks msa filter ./msas ./filtered_msas - -max -sequences
1000
# Convert uncompressed MSA files to compressed ones while
filtering
atomworks msa filter ./msas ./filtered_msas
- -input -extension .a3m - -output -extension .a3m.gz
- -max -sequences 1000
# Filter multiple directories using glob patterns
atomworks msa filter "0*" ./filtered_msas - -max -sequences
1000
atomworks msa filter "*/msas" ./filtered_msas
- -max -sequences 1000
╭─ Arguments ────────────────────────────────────────────────── ─╮
│ * input_dir < str > Source directory containing │
│ MSA files to filter │
│ (supports glob patterns │
│ like '0*') │
│ [required] │
│ output_dir < directory > Destination directory for │
│ filtered files. If not │
│ provided uses the input │
│ paths with the specified │
│ output extension. │
╰───────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────── ─╮
│ - -input -extension -i < str > File extension for │
│ input MSA files │
│ (e.g., .a3m, .a3m.gz, │
│ .a3m.zst, .afa, │
│ .afa.gz, .afa.zst) │
│ [default: .a3m.gz] │
│ - -output -extension -o < str > File extension for │
│ output MSA files │
│ (e.g., .a3m, .a3m.gz, │
│ .a3m.zst, .afa, │
│ .afa.gz, .afa.zst) │
│ [default: .a3m.gz] │
│ - -max -sequences , - -ma… < int > Maximum number of │
│ sequences to keep in │
│ each MSA │
│ [default: 10000] │
│ - -max -identity , - -id < float > Maximum pairwise │
│ sequence identity (%) │
│ [default: 90.0] │
│ - -min -coverage , - -cov < float > Minimum coverage with │
│ query (%) │
│ [default: 50.0] │
│ - -num -workers -j < int > Number of parallel │
│ workers (defaults to │
│ min(CPU_COUNT, 16)) │
│ - -verbose -v Enable verbose │
│ logging │
│ - -install -completion Install completion │
│ for the current │
│ shell. │
│ - -show -completion Show completion for │
│ the current shell, to │
│ copy it or customize │
│ the installation. │
│ - -help Show this message and │
│ exit. │
╰───────────────────────────────────────────────────────────────╯
filter
Usage: atomworks msa filter [OPTIONS] {input_dir} [output_dir]
Filter MSA files using HHfilter to reduce sequence count and
redundancy.
This command applies HHfilter to MSA files to reduce their size
by:
1. Limiting the maximum number of sequences
2. Filtering by maximum pairwise sequence identity
3. Filtering by minimum coverage with the query sequence
Can be applied to organized MSA files or any directory of MSA
files.
Automatic compression/decompression is applied based on the
input and output file extensions.
Examples:
# Filter files in a separate output directory
atomworks msa filter ./msas ./filtered_msas - -max -sequences
1000
# Convert uncompressed MSA files to compressed ones while
filtering
atomworks msa filter ./msas ./filtered_msas
- -input -extension .a3m - -output -extension .a3m.gz
- -max -sequences 1000
# Filter multiple directories using glob patterns
atomworks msa filter "0*" ./filtered_msas - -max -sequences
1000
atomworks msa filter "*/msas" ./filtered_msas
- -max -sequences 1000
╭─ Arguments ────────────────────────────────────────────────── ─╮
│ * input_dir < str > Source directory containing │
│ MSA files to filter │
│ (supports glob patterns │
│ like '0*') │
│ [required] │
│ output_dir < directory > Destination directory for │
│ filtered files. If not │
│ provided uses the input │
│ paths with the specified │
│ output extension. │
╰───────────────────────────────────────────────────────────────╯
╭─ Options ──────────────────────────────────────────────────── ─╮
│ - -input -extension -i < str > File extension for │
│ input MSA files │
│ (e.g., .a3m, .a3m.gz, │
│ .a3m.zst, .afa, │
│ .afa.gz, .afa.zst) │
│ [default: .a3m.gz] │
│ - -output -extension -o < str > File extension for │
│ output MSA files │
│ (e.g., .a3m, .a3m.gz, │
│ .a3m.zst, .afa, │
│ .afa.gz, .afa.zst) │
│ [default: .a3m.gz] │
│ - -max -sequences , - -ma… < int > Maximum number of │
│ sequences to keep in │
│ each MSA │
│ [default: 10000] │
│ - -max -identity , - -id < float > Maximum pairwise │
│ sequence identity (%) │
│ [default: 90.0] │
│ - -min -coverage , - -cov < float > Minimum coverage with │
│ query (%) │
│ [default: 50.0] │
│ - -num -workers -j < int > Number of parallel │
│ workers (defaults to │
│ min(CPU_COUNT, 16)) │
│ - -verbose -v Enable verbose │
│ logging │
│ - -install -completion Install completion │
│ for the current │
│ shell. │
│ - -show -completion Show completion for │
│ the current shell, to │
│ copy it or customize │
│ the installation. │
│ - -help Show this message and │
│ exit. │
╰───────────────────────────────────────────────────────────────╯