Annotation module¶
-
class
Annotation.Annotator[source]¶ This class parse all information about Illumina probes.
USAGE:
annotations = Annotation.Annotator()
-
get_all_probes()[source]¶ Get a list of all probes.
Returns: A list of all probes in the Annotation object.
-
get_coord(probe)[source]¶ Get genomic coordinate of a probe.
Parameters: probe – A probe object Returns: An integer indicator of probe numbers
-
get_keys(dic_keys)[source]¶ Get Probe id from probe dictionaries
Parameters: dic_keys – Probe dict. Returns: returns a list of probe id.
-
get_probe(probe_id)[source]¶ This function returns the info associated with an id.
Parameters: probe_id – ILLUMINA ID Returns: all info
-
get_probes(list_of_ids)[source]¶ This function returns a list of probe object from a list of ids.
Parameters: list_of_ids – Returns: A list of probe objects.
-
get_probes_from_chr_loc(chr_loc)[source]¶ Get a list of probes that are within a genomic region
Parameters: chr_loc – Genomic location interval Returns: A list of probes.
-
get_probes_from_cpg(cpg_loc)[source]¶ Get a list probe objects from cpg location.
Parameters: cpg_loc – from CpG object Returns: probes.
-
get_probes_from_gene(gene_name)[source]¶ Get a list probe objects from an associated gene name.
Parameters: gene_name – Gene name in string format Returns: A probe.
-
get_probes_from_loc(loc)[source]¶ Get a list probe objects from genomic location.
Parameters: loc – from Location object. Returns: probes.
-
get_probes_id_from_chr_loc(chr_loc)[source]¶ Get a list of probe ids that are witihn a genomic region
Parameters: chr_loc – Genomic location interval Returns: A list of probe ids.
-
get_probes_id_from_cpg(cpg_loc)[source]¶ Get all probes ids associated with CpG sites.
Parameters: cpg_loc – Returns: a list of probe ids.
-
get_probes_id_from_gene(gene_name)[source]¶ Get all probes ids associated with a gene.
Parameters: gene_name – Returns: a lst of probe ids.
-
get_probes_id_from_loc(probe_loc)[source]¶ Get all probes ids associated with genomic locations.
Parameters: probe_loc – Returns: a list of probe ids.
-
get_probes_id_from_probe(probe_list)[source]¶ Get all probes ids from a list of probe objects.
Parameters: probe_list – A list of probe ids. Returns: a list of probe ids.
-
-
class
Annotation.ChrLoc(chromosome, start, end)[source]¶ defines a chromosomal interval.
USAGE:
my_probe = Annotation.ChrLoc("X", 122333232, 123334444)
-
class
Annotation.CpG_location[source]¶ CpG location is defined here.
-
ISLAND= 'Island'¶
-
NSHELF= 'N_Shelf'¶
-
NSHORE= 'N_Shore'¶
-
SSHELF= 'S_Shelf'¶
-
SSHORE= 'S_Shore'¶
-
-
class
Annotation.Location[source]¶ Probe location is defined here.
-
BODY= 'Body'¶
-
EXON= 'Exon'¶
-
TSS1500= 'TSS1500'¶
-
TSS200= 'TSS200'¶
-
UTR3= "3'UTR"¶
-
UTR5= "5'UTR"¶
-