camlhmp.framework¶
Below are the functions available in the camlhmp.framework module.
            camlhmp.framework.read_framework(yamlfile)
¶
    Read the framework YAML file.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| yamlfile | str | input YAML file to be read | required | 
Returns:
| Name | Type | Description | 
|---|---|---|
| dict | dict | the parsed YAML file | 
Examples:
Source code in camlhmp/framework.py
              
            camlhmp.framework.print_version(framework)
¶
    Print the version of the framework, then exit
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| framework | dict | the parsed YAML framework | required | 
Examples:
Source code in camlhmp/framework.py
              
            camlhmp.framework.get_types(framework)
¶
    Get the types from the framework.
Example framework: aliases: - name: "ccr Type 2" targets: ["ccrA1", "ccrB1"] types: - name: "I" targets: - "ccr Type 1" - "mec Class B"
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| framework | dict | the parsed YAML framework | required | 
Returns:
| Name | Type | Description | 
|---|---|---|
| dict | dict | the types with associated targets | 
Examples:
Source code in camlhmp/framework.py
              
            camlhmp.framework.check_types(types, results)
¶
    Check the types against the results.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| types | dict | the types with associated targets | required | 
| results | dict | the BLAST results | required | 
Returns:
| Name | Type | Description | 
|---|---|---|
| dict | dict | the types and their outcome | 
Examples:
Source code in camlhmp/framework.py
              
            camlhmp.framework.check_regions(types, results, min_coverage)
¶
    Check the region types against the results.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
| types | dict | the types with associated targets | required | 
| results | dict | the BLAST results | required | 
| min_coverage | int | the minimum coverage required for a region | required | 
Returns:
| Name | Type | Description | 
|---|---|---|
| dict | dict | the types and their outcome | 
Examples:
>>> from camlhmp.framework import check_regions
>>> type_hits = check_regions(types, target_results, min_coverage)