comparison COBRAxy/src/ras_generator.py @ 543:5d5583dc6082 draft

Uploaded
author francesco_lapi
date Sun, 26 Oct 2025 19:38:05 +0000
parents fcdbc81feb45
children 540ab7dd1322
comparison
equal deleted inserted replaced
542:fcdbc81feb45 543:5d5583dc6082
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 import os
7 from __future__ import division 8 from __future__ import division
8 import sys 9 import sys
9 import argparse 10 import argparse
10 import pandas as pd 11 import pandas as pd
11 import numpy as np 12 import numpy as np