singlecellmultiomics.features package¶
Submodules¶
singlecellmultiomics.features.exonGTFtoIntronGTF module¶
singlecellmultiomics.features.features module¶
-
class
singlecellmultiomics.features.features.FeatureContainer[source]¶ Bases:
object-
findFeaturesAtPysamAlign(pysamRead, strand=None, method=1)[source]¶ Obtain all features mapping the pysam aligned segment. method 0: Query EVERY base method 1: Query every subsequent block of reads (pysam aligned segment .get_blocks)
-
findFeaturesBetweenBRK(chromosome, lookupCoordinateStart, lookupCoordinateEnd, strand=None)[source]¶ Obtain all features between Start and end coordinate.
-
-
singlecellmultiomics.features.features.get_gene_id_to_gene_name_conversion_table(annotation_path_exons, featureTypes=['gene_name'])[source]¶ - Create a dictionary converting a gene id to other gene features,
- such as gene_name/gene_biotype etc.
Parameters: - annotation_path_exons (str) – path to GTF file (can be gzipped)
- featureTypes (list) – list of features to convert to, for example [‘gene_name’,’gene_biotype’]
Returns: { gene_id : ‘firstFeature_secondFeature’}
Return type: conversion_dict(dict)
-
singlecellmultiomics.features.features.massIdConvert(baseIds, pathToIdMapping='/media/sf_data/references/human/HUMAN_9606_idmapping_selected.tab.gz', targetCol=1)[source]¶ Convert GENE identifiers into another format. Get a conversion table from ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/idmapping/by_organism/