Executors
plink1Executor
¶
Bases: object
A wrapper class for interfacing with the plink1.9
command line tool.
Source code in magenpy/utils/executors.py
__init__(threads=None, verbose=True)
¶
Initialize the plink1.9 executor
Parameters:
Name | Type | Description | Default |
---|---|---|---|
threads
|
int | str
|
The number of threads to use for computations. If None, the number of threads will be set to 1. |
None
|
verbose
|
bool
|
Whether to print the output of the command |
True
|
Source code in magenpy/utils/executors.py
execute(cmd)
¶
Execute a plink command
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cmd
|
list of strings
|
The flags to pass to plink. For example, ['--bfile', 'file', '--out', 'output'] |
required |
Source code in magenpy/utils/executors.py
plink2Executor
¶
Bases: object
A wrapper class for interfacing with the plink2
command line tool.
Source code in magenpy/utils/executors.py
__init__(threads=None, verbose=True)
¶
Initialize the plink2 executor
Parameters:
Name | Type | Description | Default |
---|---|---|---|
threads
|
int | str
|
The number of threads to use for computations. If None, the number of threads will be set to 1. |
None
|
verbose
|
bool
|
Whether to print the output of the command |
True
|
Source code in magenpy/utils/executors.py
execute(cmd)
¶
Execute a plink2
command
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cmd
|
list of strings
|
The flags to pass to plink2. For example, ['--bfile', 'file', '--out', 'output'] |
required |
Raises:
Type | Description |
---|---|
CalledProcessError
|
If the command returns a non-zero exit code |