From 608abbeb1b3b0ee9830908cd07dde2134b41c924 Mon Sep 17 00:00:00 2001 From: amirho3in Date: Wed, 18 Sep 2024 11:09:33 +0200 Subject: [PATCH] images are updated now --- README.md | 32 +++++++++++--------------------- setup.py | 2 +- 2 files changed, 12 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 4404e4a..ad994d5 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,18 @@ First, the user needs to install the package; this can be done easily by this command on python environment: - -`pip install genepioneer` - -Then you need to create a python file somewhere in your local environment, we assume that you have created a file called `gene_analyze.py` -Inside the `gene_analyze.py` you need to import the Python class that is designed for analyzing genes, this can be done like this: - -`from genepioneer import GeneAnalysis` - +“pip install genepioneer” +Then you need to create a python file somewhere in your local environment, we assume that you have created a file called “gene_analyze.py” +Inside the “gene_analyze.py” you need to import the Python class that is designed for analyzing genes, this can be done like this: +“from genepioneer import GeneAnalysis” After importing the class you need to initialize and instance of the class with two properties for the constructor. The first one is the type of the cancer, and the second one is path of the gene list that you want to analyze. The list of genes need to be a .txt file that each line of that contains one gene name and the format of the gene names should be OFFICIAL_GENE_SYMBOL. - -![alt text](image.png) - -For example, if we create a file called `gene_list.txt` as shown in above image. Then, we can initialize one instance from the Python class imported from the gene pioneer package by using this line of code: - -`gene_analysis = GeneAnalysis("Ovary", "./benchmark-data/gene_list.txt")` - -Where "Ovary" is the name of the chosen cancer type and `./benchmark-data/gene_list.txt` is the path to the genes list file that we want to analyze. +![alt text](https://github.com/amirhossein-haerian/GenePioneer/blob/main/image.png) +For example, if we create a file called “gene_list.txt” as shown in above image. Then, we can initialize one instance from the Python class imported from the gene pioneer package by using this line of code: +“gene_analysis = GeneAnalysis("Ovary", "./benchmark-data/gene_list.txt")” +Where “Ovary” is the name of the chosen cancer type and "./benchmark-data/gene_list.txt" is the path to the genes list file that we want to analyze. It needs to be mentioned that, the cancer type can be one of the following names: "Adrenal", "Bladder", "Brain", "Cervix", "Colon", "Corpus uteri", "Kidney", "Liver", "Ovary", "Prostate", "Skin", "Thyroid". -After initializing one instance for the imported class from genepioner, `analyze_genes()` functionality can be called for that instance: - -`gene_analysis.analyze_genes()` - +After initializing one instance for the imported class from genepioner, “analyze_genes()” functionality can be called for that instance: +“gene_analysis.analyze_genes()” By using this functionality on output.json file will be created in current path of your environment. The image below shows a sample of output file. -![alt text](image-1.png) +![alt text](https://github.com/amirhossein-haerian/GenePioneer/blob/main/image-1.png) \ No newline at end of file diff --git a/setup.py b/setup.py index 1e76694..ca3c989 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='genepioneer', - version='1.0.0', + version='1.0.1', description='A Python package for identifying essential genes in cancer.', long_description=open('README.md').read(), long_description_content_type='text/markdown',