API¶
Running the Pipeline and High Level API¶
-
cap2.api.
run_db_stage
(config_path='', cores=1, **kwargs)[source]¶ Run the database stage of the pipeline.
-
cap2.api.
run_modules
(samples, modules, group_modules=[], config_path='', cores=1, workers=1, **kwargs)[source]¶ Run a set of modules for a list of samples.
-
cap2.api.
run_stage
(samples, stage_name, config_path='', cores=1, workers=1, **kwargs)[source]¶ Run a subpipeline on a list of samples. stage_name can be one of qc, pre, reads.
Generic Modules and CAPTasks¶
-
class
cap2.pipeline.utils.cap_task.
BaseCapTask
(*args, **kwargs)[source]¶ -
MODULE_VERSION
= None¶
-
check_versions
= <luigi.parameter.BoolParameter object>¶
-
config_filename
= <luigi.parameter.Parameter object>¶
-
cores
= <luigi.parameter.IntParameter object>¶
-
classmethod
dependencies
()[source]¶ Return a list of modules this module depends on.
Modules are either other BaseCapTask classes or strings.
-
get_run_metadata_filepath
()[source]¶ Return a local filepath with metadata about a completed run of this task.
-
is_type_of_cap_task
(cap_task_type)[source]¶ Return True iff self is of cap_task_type.
This method makes it easy for duck typed CAP Tasks to spoof their type as another CAP Task. i.e. PangeaCapTasks
-
max_ram
= <luigi.parameter.IntParameter object>¶
-
module_description
= 'No description for this module.'¶
-
classmethod
short_version_hash
()[source]¶ Return a 12 character hash string giving the version of this task and all upstream tasks.
-
classmethod
version
()[source]¶ Return a string giving a human readable version for this module only.
-
-
class
cap2.pipeline.utils.cap_task.
CapTask
(*args, **kwargs)[source]¶ Base class for CAP2 tasks.
Currently implements some basic shared logic.
-
data_type
= <luigi.parameter.Parameter object>¶
-
classmethod
from_sample
(sample, config_path, cores=1)[source]¶ Return an instance of this module from a Sample.
-
paired
¶ Return true iff this instance is processing paired end data.
-
pe1
= <luigi.parameter.Parameter object>¶
-
pe2
= <luigi.parameter.Parameter object>¶
-
sample_name
= <luigi.parameter.Parameter object>¶
-