pyGenClean.MarkerMissingness package¶
For more information about how to use this module, refer to the Marker Missingness Module.
Module contents¶
Submodules¶
pyGenClean.MarkerMissingness.snp_missingness module¶
-
exception
pyGenClean.MarkerMissingness.snp_missingness.
ProgramError
(msg)[source]¶ Bases:
exceptions.Exception
An
Exception
raised in case of a problem.Parameters: msg (str) – the message to print to the user before exiting.
-
pyGenClean.MarkerMissingness.snp_missingness.
checkArgs
(args)[source]¶ Checks the arguments and options.
Parameters: args (argparse.Namespace) – an object containing the options of the program. Returns: True
if everything was OK.If there is a problem with an option, an exception is raised using the
ProgramError
class, a message is printed to thesys.stderr
and the program exists with code 1.
-
pyGenClean.MarkerMissingness.snp_missingness.
compareBIM
(args)[source]¶ Compare two BIM file.
Parameters: args (argparse.Namespace) – the options. Creates a Dummy object to mimic an
argparse.Namespace
class containing the options for thepyGenClean.PlinkUtils.compare_bim
module.
-
pyGenClean.MarkerMissingness.snp_missingness.
main
(argString=None)[source]¶ The main function of the module.
Parameters: argString (list) – the options. These are the steps:
- Prints the options.
- Runs Plink with the
geno
option (runPlink()
). - Compares the two
bim
files (before and after the Plinkgeno
analysis) (compareBIM()
).
-
pyGenClean.MarkerMissingness.snp_missingness.
parseArgs
(argString=None)[source]¶ Parses the command line options and arguments.
Parameters: argString (list) – the options. Returns: A argparse.Namespace
object created by theargparse
module. It contains the values of the different options.Options Type Description --bfile
string The input file prefix (Plink binary file). --geno
float The missingness threshold. --out
string The prefix of the output files. Note
No option check is done here (except for the one automatically done by argparse). Those need to be done elsewhere (see
checkArgs()
).
-
pyGenClean.MarkerMissingness.snp_missingness.
runPlink
(options)[source]¶ Runs Plink with the geno option.
Parameters: options (argparse.Namespace) – the options.