Skip to content
yvancouver edited this page Sep 11, 2013 · 4 revisions

Take a definition file (hard coded), for now the snpQC.V1.tab file

Read it and return it as dict. with read_definition_file()

Functions:

read_definition_file()

    take a path to a file, or the file if in the same directory 
    return a dictionary (definition_dict) with the key being the assayId
    
        Key               Value
        assayId           vicFam   chr   pos       ref	alt	  maf1kG        rsId
        C___9603883_1_  : ['A/C', '11', '8486310', 'C', 'A', 'A=0.424/926', 'rs1446464']
        C___1821700_10  : ['C/T', '10', '124457906', 'C', 'T', 'T=0.431/942', 'rs2901343']

GetCoordinatesBySnpsTest()

    take a definition_dict and a particular assay id 
    return the chromosome and position of a particular test id as a list

GetCoordinatesByRs

    take a definition_dict and a rs number as string
    return the chromosome and position

Clone this wiki locally