Skip to main content

scTIM is a convenient tool for cell-type indicative marker detection based on single cell RNA-seq data

Project description

# scTIM ## Introduction A convenient tool for marker detection based on single cell RNA-seq data.

## Package usage example: First open a python IDE:

python

Then run the following python script

>>> import numpy as np
>>> import scTIM
>>> file_name = 'scTIM-master/Package/data.txt'                                      ### Defining file name
>>> alpha = 0.1;beta = 0.4;gamma = 0.5;                                       ### Setting Parameters
>>> data,gene = scTIM.PreProcess(file_name,'y')                               ### Preprocessing data
>>> p = scTIM.CellRedMatrix(data)                                             ### Computing cell-cell distance matrix
>>> fs = scTIM.GeneSpecificity(data)                                          ### Computing gene specificity
>>> red = scTIM.GeneRedMatrix(data)                                           ### Computing gene-gene redundancy matrix
>>> w = scTIM.ExtractGene(data,p,red,alpha,beta,gamma)                        ### Identifying markers by simulating annealing
>>> marker = [gene[i] for i in range(data.shape[0]) if w[i] == 1]             ### Output the marker set

For more robust solution, we repeat the simulating annealing for 10 times and use the inersection of 10 outcomes as final result and these 10 repeats can be conducted by parallel computing:

>>> w1 = scTIM.ExtractGene(data,p,red,alpha,beta,gamma)
>>> w2 = scTIM.ExtractGene(data,p,red,alpha,beta,gamma)
>>> w3 = scTIM.ExtractGene(data,p,red,alpha,beta,gamma)
>>> w4 = scTIM.ExtractGene(data,p,red,alpha,beta,gamma)
>>> w5 = scTIM.ExtractGene(data,p,red,alpha,beta,gamma)
>>> w6 = scTIM.ExtractGene(data,p,red,alpha,beta,gamma)
>>> w7 = scTIM.ExtractGene(data,p,red,alpha,beta,gamma)
>>> w8 = scTIM.ExtractGene(data,p,red,alpha,beta,gamma)
>>> w9 = scTIM.ExtractGene(data,p,red,alpha,beta,gamma)
>>> w10 = scTIM.ExtractGene(data,p,red,alpha,beta,gamma)
>>> w = (np.sum([w1,w2,w3,w4,w5,w6,w7,w8,w9,w10],0)==10)                       ### Intersection
>>> marker = [gene[i] for i in range(data.shape[0]) if w[i] == 1]              ### Output the marker set

## Requirements: Python environment: python3 numpy Memory >= 3.0 Gb

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sc_tim-0.0.2.tar.gz (4.8 kB view hashes)

Uploaded Source

Built Distribution

sc_tim-0.0.2-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page