Mercurial > repos > bimib > cobraxy
comparison COBRAxy/src/ras_generator.py @ 544:540ab7dd1322 draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Sun, 26 Oct 2025 19:43:31 +0000 |
| parents | 5d5583dc6082 |
| children |
comparison
equal
deleted
inserted
replaced
| 543:5d5583dc6082 | 544:540ab7dd1322 |
|---|---|
| 2 Generate Reaction Activity Scores (RAS) from a gene expression dataset and GPR rules. | 2 Generate Reaction Activity Scores (RAS) from a gene expression dataset and GPR rules. |
| 3 | 3 |
| 4 The script reads a tabular dataset (genes x samples) and a rules file (GPRs), | 4 The script reads a tabular dataset (genes x samples) and a rules file (GPRs), |
| 5 computes RAS per reaction for each sample/cell line, and writes a tabular output. | 5 computes RAS per reaction for each sample/cell line, and writes a tabular output. |
| 6 """ | 6 """ |
| 7 from __future__ import division | |
| 7 import os | 8 import os |
| 8 from __future__ import division | |
| 9 import sys | 9 import sys |
| 10 import argparse | 10 import argparse |
| 11 import pandas as pd | 11 import pandas as pd |
| 12 import numpy as np | 12 import numpy as np |
| 13 try: | 13 try: |
