Skip to content

Commit

Permalink
Renamed the tool
Browse files Browse the repository at this point in the history
  • Loading branch information
Avani7 committed Mar 29, 2024
1 parent cdfb987 commit 289db0e
Show file tree
Hide file tree
Showing 29 changed files with 46 additions and 46 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ hg19-tss-centered-10kb-10species.mc9nr.feather
test_dump
code
deps
cmi/dependencies
CMI.egg-info
crgem/dependencies
CRGEM.egg-info
build/
_build/
__pycache__
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
![workflow badge](https://github.com/thoughtworks/cell-reprogram-workflow/actions/workflows/setup-test-workflow.yml/badge.svg)


### CMI: Cellular conversion using Mechanistic driven Integrated workflow
### CRGEM: Cellular Reprogramming using mechanism-driven Gene Expression Modulation

A framework created using already available tools and databases, to perform cellular reprogramming computationally.
To carry out tool specific task using the various tools available separately, the researchers need to go through the tools individually. CMI ease their work by integrating the tools at one place.
To carry out tool specific task using the various tools available separately, the researchers need to go through the tools individually. CRGEM ease their work by integrating the tools at one place.
With this integration of the functionalities researchers can invest time in biological inferences and experimentally verifying the key modulators and their effects.

<hr>
Expand Down Expand Up @@ -91,43 +91,43 @@ The starting cell population and terminal cell population cluster IDs to be ener
### Commands
- <u>stage</u>: all (TransSynW + PAGA + SIGNET + TRRUST + Cytoscape + Uniprot)

cmi run all --artefacts ./artefacts/[directory_name] --params [start_cell population] [start and terminal_cell population] [annotation file] [terminal cell cluster ID] [startaing cell cluster ID] ./data/terminal.csv ./data/trrust_rawdata_human.tsv
crgem run all --artefacts ./artefacts/[directory_name] --params [start_cell population] [start and terminal_cell population] [annotation file] [terminal cell cluster ID] [startaing cell cluster ID] ./data/terminal.csv ./data/trrust_rawdata_human.tsv

Eg: cmi run all --artefacts ./artefacts/temp --params start.txt start_terminal.txt annotation.txt HPROGFPM HNES ./data/terminal.csv ./data/trrust_rawdata_human.tsv
Eg: crgem run all --artefacts ./artefacts/temp --params start.txt start_terminal.txt annotation.txt HPROGFPM HNES ./data/terminal.csv ./data/trrust_rawdata_human.tsv

- <u>stage</u>: generate_hypothesis (TransSynW)

cmi run generate_hypothesis --artefacts ./artefacts/[directory_name] --params [start_cell population] [start and terminal_cell population] [annotation file] [terminal cell cluster ID]
crgem run generate_hypothesis --artefacts ./artefacts/[directory_name] --params [start_cell population] [start and terminal_cell population] [annotation file] [terminal cell cluster ID]

Eg: cmi run generate_hypothesis --artefacts ./artefacts/[directory_name] --params start.txt start_terminal.txt annotation.txt HPROGFPM
Eg: crgem run generate_hypothesis --artefacts ./artefacts/[directory_name] --params start.txt start_terminal.txt annotation.txt HPROGFPM

- <u>stage</u>: mechanistic insights (TransSynW + PAGA)

cmi run mechanistic insights --artefacts ./artefacts/[directory_name] --params [start_cell population] [start and terminal_cell population] [annotation file] [terminal cell cluster ID] [startaing cell cluster ID]
crgem run mechanistic insights --artefacts ./artefacts/[directory_name] --params [start_cell population] [start and terminal_cell population] [annotation file] [terminal cell cluster ID] [startaing cell cluster ID]

Eg: cmi run mechanistic_insights --artefacts ./artefacts/temp --params start.txt start_terminal.txt annotation.txt HPROGFPM HNES
Eg: crgem run mechanistic_insights --artefacts ./artefacts/temp --params start.txt start_terminal.txt annotation.txt HPROGFPM HNES

- <u>stage</u>: grn inference (SIGNET)

cmi run grn_inference --artefacts ./artefacts/[directory_name] --params ./data/terminal.csv
crgem run grn_inference --artefacts ./artefacts/[directory_name] --params ./data/terminal.csv

Eg: cmi run grn_inference --artefacts ./artefacts/temp --params ./data/terminal.csv
Eg: crgem run grn_inference --artefacts ./artefacts/temp --params ./data/terminal.csv

- <u>stage</u>: trrust analysis (TRRUST)

cmi run trrust_analysis --artefacts ./artefacts/[directory_name] --params ./data/trrust_rawdata_human.tsv
crgem run trrust_analysis --artefacts ./artefacts/[directory_name] --params ./data/trrust_rawdata_human.tsv

Eg: cmi run trrust_analysis --artefacts ./artefacts/temp --params ./data/trrust_rawdata_human.tsv
Eg: crgem run trrust_analysis --artefacts ./artefacts/temp --params ./data/trrust_rawdata_human.tsv


- <u>stage</u>: gene network (Cytoscape)

cmi run create_network --artefacts ./artefacts/[directory_name] --params ./artefacts/[directory_name]/Trrust_Analysis/trrust_analysis.csv
crgem run create_network --artefacts ./artefacts/[directory_name] --params ./artefacts/[directory_name]/Trrust_Analysis/trrust_analysis.csv

Eg: cmi run create_network --artefacts ./artefacts/temp --params ./artefacts/temp/Trrust_Analysis/trrust_analysis.csv
Eg: crgem run create_network --artefacts ./artefacts/temp --params ./artefacts/temp/Trrust_Analysis/trrust_analysis.csv

- <u>stage</u>: functional analysis (Uniprot)

cmi run functional_analysis --artefacts ./artefacts/[directory_name] /Trrust_analysis/transsynw_genes.csv /Trrust_analysis/signet_genes.csv
crgem run functional_analysis --artefacts ./artefacts/[directory_name] /Trrust_analysis/transsynw_genes.csv /Trrust_analysis/signet_genes.csv

Eg: cmi run functional_analysis --artefacts ./artefacts/temp /Trrust_analysis/transsynw_genes.csv /Trrust_analysis/signet_genes.csv
Eg: crgem run functional_analysis --artefacts ./artefacts/temp /Trrust_analysis/transsynw_genes.csv /Trrust_analysis/signet_genes.csv
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import json
import requests
import logging
from cmi.common import clean_up
from crgem.common import clean_up

logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import os
import logging
import pandas as pd
from cmi.common import clean_up
from cmi.common import http_post, http_request
from crgem.common import clean_up
from crgem.common import http_post, http_request


logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"generate_hypothesis.py"


from cmi.tool.transsynw_tool import runTranssynW
from crgem.tool.transsynw_tool import runTranssynW
import logging

logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"grn_inference.py"

from cmi.tool.signet_tool import runSignetpy, runR
from crgem.tool.signet_tool import runSignetpy, runR
import logging

logger = logging.getLogger(__name__)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"mechanistic_insights.py"


from cmi.tool.transsynw_tool import runTranssynW
from cmi.tool.paga_tool import runPaga
from crgem.tool.transsynw_tool import runTranssynW
from crgem.tool.paga_tool import runPaga

import logging

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import pandas as pd
import numpy as np
import os
from cmi.common import clean_up
from crgem.common import clean_up
import logging


Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ args= commandArgs(trailingOnly = TRUE)
in_path = args[1]

library(RcisTarget)
source('./cmi/tool/Signet/SIGNET.R')
source('./crgem/tool/Signet/SIGNET.R')

# Select motif database to use (annotations)
data("motifAnnotations_hgnc")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cmi/tool/paga_tool.py → crgem/tool/paga_tool.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"paga_tool.py"
from cmi.tool.PAGA import paga
from crgem.tool.PAGA import paga

def runPaga(*args):
paga(*args)
2 changes: 1 addition & 1 deletion cmi/tool/signet_tool.py → crgem/tool/signet_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import subprocess
import os
import sys
from cmi.common import clean_up
from crgem.common import clean_up

# from dependencies.Signet.SIGNET import signet
code_path = './Signet'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import subprocess
import os
import sys
from cmi.common import clean_up
from crgem.common import clean_up
cwd = os.getcwd()
print("cwd:", cwd)
abs_path = os.path.dirname(__file__)
Expand Down
10 changes: 5 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages

setup_info = dict(
name='CMI',
name='CRGEM',
version='0.1',
author='E4R',
author_email='[email protected]',
Expand All @@ -18,16 +18,16 @@
long_description_content_type='text/markdown',
license='MIT',
# Package info
packages=['cmi'] + ['cmi.' + pkg for pkg in find_packages('cmi')],
packages=['crgem'] + ['crgem.' + pkg for pkg in find_packages('crgem')],
package_data={
"cmi.tool.Signet": ["*.R", "*.txt"],
"cmi.dependencies": ["transsynw/*/*", "SIGNET.py"]
"crgem.tool.Signet": ["*.R", "*.txt"],
"crgem.dependencies": ["transsynw/*/*", "SIGNET.py"]

},
# Add _ prefix to the names of temporary build dirs
options={'build': {'build_base': '_build'}, },
zip_safe=True,
scripts=['bin/cmi'],
scripts=['bin/crgem'],
install_requires=[
'anndata==0.10.3',
'array-api-compat==1.4',
Expand Down
4 changes: 2 additions & 2 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

# TransSynW dependencies

mkdir ./cmi/dependencies
cd ./cmi/dependencies
mkdir ./crgem/dependencies
cd ./crgem/dependencies
touch __init__.py
git clone --depth=1 https://gitlab.lcsb.uni.lu/CBG/transsynw.git transsynw

Expand Down
4 changes: 2 additions & 2 deletions test_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt

mkdir ./cmi/dependencies
cd ./cmi/dependencies
mkdir ./crgem/dependencies
cd ./crgem/dependencies
touch __init__.py
git clone --depth=1 https://gitlab.lcsb.uni.lu/CBG/transsynw.git transsynw

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/test_create_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import shutil
import glob
import pandas as pd
from cmi.stages.create_network import create_network #, get_TFs_data, get_targets_data, get_regulators, get_master_regulators
from crgem.stages.create_network import create_network


artefacts_path = "./test_dump"
Expand Down
4 changes: 2 additions & 2 deletions tests/unittest/stages/test_functional_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import shutil
import os
import filecmp
from cmi.stages.functional_analysis import functional_analysis
from cmi.common import clean_up
from crgem.stages.functional_analysis import functional_analysis
from crgem.common import clean_up

transsynw_genes_file = "/Trrust_Analysis/transsynw_genes.csv"
signet_genes_file = "/Trrust_Analysis/signet_genes.csv"
Expand Down
2 changes: 1 addition & 1 deletion tests/unittest/stages/test_generate_hypothesis.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import filecmp
import os
import shutil
from cmi.stages.generate_hypothesis import generate_hypothesis
from crgem.stages.generate_hypothesis import generate_hypothesis
print(os.getcwd())
args = ["start.txt","start_terminal.txt","annotation.txt","HPROGFPM"]
artefacts_path = os.getcwd() + "/" + "./test_dump"
Expand Down
2 changes: 1 addition & 1 deletion tests/unittest/stages/test_grn_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import shutil
import os
import filecmp
from cmi.stages.grn_inference import runR
from crgem.stages.grn_inference import runR
# from craft.common import clean_up

artefacts_path = "./test_dump"
Expand Down
2 changes: 1 addition & 1 deletion tests/unittest/stages/test_mechanistic_insights.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import os
import shutil
import glob
from cmi.stages.mechanistic_insights import mechanistic_insights
from crgem.stages.mechanistic_insights import mechanistic_insights

args = ["start.txt","start_terminal.txt","annotation.txt","HPROGFPM", "HNES"]
artefacts_path = os.getcwd() + "/" + "./test_dump"
Expand Down
2 changes: 1 addition & 1 deletion tests/unittest/stages/test_trrust_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import shutil
import os
import filecmp
from cmi.stages.trrust_analysis import trrust_analysis
from crgem.stages.trrust_analysis import trrust_analysis

trrust_db_file = "./data/trrust_rawdata_human.tsv"
artefacts_path = "./test_dump"
Expand Down

0 comments on commit 289db0e

Please sign in to comment.