Closed liuguangdi closed 6 years ago
Hi @liuguangdi, sorry you're running into difficulties. The gctx2gct
method is actually a command-line method; so, in your terminal (with your cmapPy conda environment activated) you should be able to just type `gctx2gct -filename
If you'd like to do the same behavior within a script, you would simply call the parse
method to read in your GCTX file to a GCToo instance, and then write_gct.write()
on the GCToo instance to write it out to a .GCT file.
I also have no idea what Github readme you're referring to. cmap.io.gct
has been deprecated for a long time. Could you post a URL so we can take down outdated instructions?
As @oena suggested, it sounds like the methods you're looking for are under cmapPy/pandasGEXpress.
I'm trying to read in a .gctx file in Python and write it as a .gct file. If I follow the instructions in the GitHub readme, I run the following codes:
!/usr/bin/env python
import sys import numpy as np import cmap.io.gct as gct def main(): infile = sys.argv[1] outfile = sys.argv[2]
if name == 'main': main()
Then, I get the following error: No module named cmap.io.gct