oakvar.api
license
license(outer=None)
Shows the OakVar license information.
run
run(inputs, annotators=[], report_types=[], reports=[], annotators_replace=[], excludes=[], run_name=[], output_dir=[], startat=None, endat=None, skip=[], confpath=None, conf={}, genome=None, cleandb=False, newlog=False, note='', mp=None, keep_temp=False, writeadmindb=False, job_name=None, separatesample=False, primary_transcript=['mane'], clean=False, module_options={}, system_option={}, package=None, filtersql=None, includesample=None, excludesample=None, filter=None, filterpath=None, modules_dir=None, preparers=[], mapper_name=[], postaggregators=[], vcf2vcf=False, logtofile=False, loglevel='INFO', combine_input=False, input_format=None, converter_module=None, input_encoding=None, ignore_sample=False, uid=None, skip_variant_deduplication=False, keep_liftover_failed=False, loop=None, outer=None)
Performs OakVar pipeline from conversion -> mapping -> annotation -> database generation -> post annotation -> report generation.
PARAMETER | DESCRIPTION |
---|---|
inputs |
Paths to input files. URLs can be used as well, in which the files will be downloaded.
TYPE:
|
combine_input |
If True, all input files will be combined as one input.
TYPE:
|
annotators |
Annotator modules to run
TYPE:
|
report_types |
Report types. If given, report files of given types will be generated. If
TYPE:
|
clean |
Cleans all output and intermediate files and then starts the pipeline.
TYPE:
|
vcf2vcf |
If True, the pipeline will run in vcf2vcf mode, where input and output should be VCF format files and result database files will not be generated. This can increase the speed of the pipeline significantly.
TYPE:
|
logtofile |
If True, .log and .err log files will be generated for normal and error logs.
TYPE:
|
input_format |
Overrides automatic detection of input file format.
TYPE:
|
postaggregators |
Postaggregator modules to run
TYPE:
|
preparers |
Preparer modules to run
TYPE:
|
mapper_name |
Mapper module to run
TYPE:
|
output_dir |
Output directories. The order of inputs and output_dir elements should match.
TYPE:
|
startat |
Start at the specified step. Options are
TYPE:
|
endat |
End at the specified step. Options are
TYPE:
|
skip |
Skip the specified steps. Options are
TYPE:
|
genome |
Genome assembly of all input files. If not given, genome assembly will be figured out or default to what is defined in lib/system/consts.py:default_assembly.
TYPE:
|
input_encoding |
input_encoding
TYPE:
|
converter_module |
converter module folder path
TYPE:
|
mp |
Number of cores to use. Default value can be changed by
TYPE:
|
primary_transcript |
primary_transcript
TYPE:
|
modules_dir |
modules_dir
TYPE:
|
run_name |
run_name
TYPE:
|
annotators_replace |
annotators_replace
TYPE:
|
excludes |
excludes
TYPE:
|
confpath |
confpath
TYPE:
|
conf |
conf
TYPE:
|
cleandb |
cleandb
TYPE:
|
newlog |
newlog
TYPE:
|
note |
note
TYPE:
|
keep_temp |
keep_temp
TYPE:
|
writeadmindb |
writeadmindb
TYPE:
|
job_name |
job_name
TYPE:
|
separatesample |
separatesample
TYPE:
|
module_options |
module_options
TYPE:
|
system_option |
system_option
TYPE:
|
package |
package
TYPE:
|
filtersql |
filtersql
TYPE:
|
includesample |
includesample
TYPE:
|
excludesample |
excludesample
TYPE:
|
filter |
filter
TYPE:
|
filterpath |
filterpath
TYPE:
|
loglevel |
loglevel
TYPE:
|
uid |
uid
TYPE:
|
skip_variant_deduplication |
Skip de-duplication of variants.
TYPE:
|
loop |
DEFAULT:
|
outer |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
Optional[Dict[str, Any]]
|
None or a dict of reporter names and their return values |
report
report(dbpath, report_types=None, module_paths=None, filterpath=None, filter=None, filtersql=None, filtername=None, filterstring=None, savepath=None, confpath=None, conf={}, nogenelevelonvariantlevel=False, inputfiles=None, separatesample=False, output_dir=None, run_name='', includesample=[], excludesample=None, package=None, cols=None, level=None, user=None, no_summary=False, serveradmindb=None, module_options={}, head_n=None, logtofile=False, outer=None, loop=None)
Generates OakVar report files based on an OakVar result database file.
PARAMETER | DESCRIPTION |
---|---|
dbpath |
Path to an OakVar result database file
TYPE:
|
report_types |
Report types. For example, if
TYPE:
|
module_paths |
Paths to report modules can be directly given. This option will override report_types. For example, if
TYPE:
|
output_dir |
Directory to store reports
TYPE:
|
module_options |
Reporter module-specific options. For example, to tell
TYPE:
|
cols |
Result columns to include. By default, all result columns are included in reports. For example,
TYPE:
|
includesample |
Samples to include in filtered reports
TYPE:
|
excludesample |
Samples to exclude from filtered reports
TYPE:
|
filterpath |
filterpath
TYPE:
|
filter |
filter as dict
TYPE:
|
filtersql |
filter sql
TYPE:
|
filtername |
filter file
TYPE:
|
filterstring |
filter dict as str
TYPE:
|
savepath |
savepath
TYPE:
|
confpath |
confpath
TYPE:
|
nogenelevelonvariantlevel |
nogenelevelonvariantlevel
TYPE:
|
inputfiles |
inputfiles
TYPE:
|
separatesample |
separatesample
TYPE:
|
package |
package
TYPE:
|
modules_dir |
modules_dir
TYPE:
|
level |
level
TYPE:
|
user |
user
TYPE:
|
no_summary |
no_summary
TYPE:
|
head_n |
Make a report with the first n number of variants.
TYPE:
|
serveradmindb |
DEFAULT:
|
outer |
DEFAULT:
|
loop |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
Dict[str, Any]
|
None or a dict of reporter names and their return values |
report_issue
report_issue()
Opens a webpage to report issues.
update
update(yes=False, outer=None)
Updates OakVar to the latest version and sets up OakVar again.
PARAMETER | DESCRIPTION |
---|---|
outer |
DEFAULT:
|
RETURNS | DESCRIPTION |
---|---|
bool
|
|
version
version()
Gets OakVar version.