Data Integrator (Python API)
|
Global linkage disequilibrium (LD) blocks. More...
Public Member Functions | |
def | __init__ (s, paths) |
Constructor. More... | |
def | GetPaths (s) |
Get CPaths object stored here. More... | |
def | PosAndLD (s, chrom, pos) |
Is the position in an LD blocks? More... | |
def | SNPandGeneInLD (s, chrom, snpPos, gBegin, gEnd) |
Is the SNP/gene pair in LD? More... | |
Static Public Attributes | |
int | LD_ID_IDX = 0; |
int | LD_BEGIN_IDX = 17; |
int | LD_END_IDX = 18; |
ldBlocks = CGlobalLDBlocks(CPaths()); | |
Global linkage disequilibrium (LD) blocks.
Class for handling internal LD data. These data are characterized by global blocks of LD, that is, by definition all nucleotides within such a block are believed to be in LD. (Usually LD is computed for a pair of points on a chromosome.) Blocks of LD were computed in-house.
def cls.GlobalLDBlocks.CGlobalLDBlocks.__init__ | ( | s, | |
paths | |||
) |
Constructor.
paths | CPaths object. False for 1000 Genomes LD block data. |
def cls.GlobalLDBlocks.CGlobalLDBlocks.GetPaths | ( | s | ) |
Get CPaths object stored here.
def cls.GlobalLDBlocks.CGlobalLDBlocks.PosAndLD | ( | s, | |
chrom, | |||
pos | |||
) |
Is the position in an LD blocks?
chrom | Chromosome number (String ). |
snpPos | SNP position on chromosome (Int ). |
List
of Tuples
as returned by CStaticRTree.ClosestInterval. def cls.GlobalLDBlocks.CGlobalLDBlocks.SNPandGeneInLD | ( | s, | |
chrom, | |||
snpPos, | |||
gBegin, | |||
gEnd | |||
) |
Is the SNP/gene pair in LD?
Specialized version for querying if a SNP and some associated gene are in LD, that is, are within the same LD block. Definition of 'within' a block of LD is: The SNP must be in an LD block and parts of the gene must also be covered by this block. @param chrom Chromosome number (@c String). @param snpPos SNP position on chromosome (@c Int). @param gBegin Start position of gene on chromosome (@c Int). @param gEnd End position of gene on chromosome (@c Int). gBegin > gEnd is ok and will be treated correctly. @return The LD block identifier. Returns @c None if the SNP/gene pair is not contained in any LD block.
|
static |
|
static |
|
static |
|
static |