Comments (9)
@iamjli is run_new_garnet.py
your code?
from garnet.
It's my file modified from Divya's code :
from GarNet import *
expression = "./Garnet_input_liver_DEGs.txt"
options = {}
df = "./DNase_output_garnet_genes.txt"
df_reg = TF_regression(df, expression, options)
df_reg.to_csv('./DNase_output_TF_regression.txt', sep='\t', header=True, index=False)
from garnet.
aha!
df = "./DNase_output_garnet_genes.txt"
is you're problem I bet. df
stands for dataframe
which is different from a filename. You'll need to load the dataframe from the file, probably with a pd.read_csv("./Garnet_input_liver_DEGs.txt")
from garnet.
Ok, with this code:
df = pd.read_csv("./DNase_output_garnet_genes.txt", sep='\t')
I get this error:
06:55:15 - GarNet: INFO - Performing linear regression on 3 transcription factor expression profiles...
Traceback (most recent call last):
File "run_new_garnet.py", line 19, in
df_reg = TF_regression(df, expression, options)
File "/home/nlpm/.local/lib/python3.6/site-packages/GarNet/garnet.py", line 371, in TF_regression
return imputed_TF_features_dataframes
NameError: name 'imputed_TF_features_dataframes' is not defined
My path is:
/home/nlpm/Jeff_Carroll_Htt_ASO/OmicsIntegrator/results/new_garnet
from garnet.
Hmm. Looks like a typo in the garnet source code. Weird that you're the first to find it.
Try
pip install --user --upgrade garnet
(confirm that it installs version 0.2.21)
And then try this again.
from garnet.
Mmm. You'll need to be in a virtual environment. @iamjli and @divyaramamoorthy can advise you on that (i'll be in soon too), but here are the commands you should be able to run and will work:
From your working directory:
python3 -m venv venv
source venv/bin/activate
pip install garnet
from garnet.
I got the code to run with the upgraded garnet. It works without a printed error now, but I get a file with only the header and no actual data inside.
from garnet.
That one will be harder to debug from here. I'll be in around noon to help, unless this is urgent and I can come in right now..?
from garnet.
Not urgent, see you later
from garnet.
Related Issues (20)
- Python version compatability HOT 2
- MotifMap has transfac IDs HOT 1
- MotifMap takes too long to load into RAM -- could we use a database? HOT 1
- Map Motifs to Gene Symbols HOT 2
- Include TF "targets" in output HOT 3
- check files exist HOT 1
- What does motif score mean? HOT 14
- Garnet file stuck loading HOT 1
- Bedtools can perform map_peaks function in ~1 min HOT 7
- Comparison: Garnet file generation HOT 1
- TF regression drop duplicates HOT 4
- `TF_regression` not working properly on server (or locally either) HOT 2
- Filter out unreasonable regressions HOT 2
- GarNet File has inconsistent naming convention for record: HOT 5
- mm9, mm10 garnet file construction notebooks HOT 3
- Window optional param HOT 3
- Idea for speed optimization.
- TODO: update garnet construction function HOT 3
- TODO: autofetch reference files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from garnet.