camlhmp.engines.blast
¶
Below are the functions available in the camlhmp.engines.blast
module.
camlhmp.engines.blast.run_blast(engine, subject, query, min_pident, min_coverage)
¶
Query sequences against a input subject using a specified BLAST+ algorithm.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
engine |
str
|
The BLAST engine to use |
required |
subject |
str
|
The subject database (input) |
required |
query |
str
|
The query file (targets) |
required |
min_pident |
float
|
The minimum percent identity to count a hit |
required |
min_coverage |
int
|
The minimum percent coverage to count a hit |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
The parsed BLAST results, raw blast results, and stderr |
Examples:
>>> from camlhmp.engines.blast import run_blast
>>> hits, blast_stdout, blast_stderr = run_blast(
framework["engine"]["tool"], input_path, targets_path, min_pident, min_coverage
)
Source code in camlhmp/engines/blast.py
camlhmp.engines.blast.run_blastn(subject, query, min_pident, min_coverage)
¶
An alias for run_blast
which uses blastn
Parameters:
Name | Type | Description | Default |
---|---|---|---|
subject |
str
|
The subject database (input) |
required |
query |
str
|
The query file (targets) |
required |
min_pident |
float
|
The minimum percent identity to count a hit |
required |
min_coverage |
int
|
The minimum percent coverage to count a hit |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
The parsed BLAST results, raw blast results, and stderr |
Examples:
>>> from camlhmp.engines.blast import run_blastn
>>> hits, blast_stdout, blast_stderr = run_blastn(
input_path, targets_path, min_pident, min_coverage
)
Source code in camlhmp/engines/blast.py
camlhmp.engines.blast.run_tblastn(subject, query, min_pident, min_coverage)
¶
An alias for run_blast
which uses tblastn
.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
subject |
str
|
The subject database (input) |
required |
query |
str
|
The query file (targets) |
required |
min_pident |
float
|
The minimum percent identity to count a hit |
required |
min_coverage |
int
|
The minimum percent coverage to count a hit |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
The parsed BLAST results, raw blast results, and stderr |
Examples:
>>> from camlhmp.engines.blast import run_tblastn
>>> hits, blast_stdout, blast_stderr = run_tblastn(
input_path, targets_path, min_pident, min_coverage
)