hoffmangroup / genomedata

The Genomedata format for storing large-scale functional genomics data.
https://genomedata.hoffmanlab.org/
GNU General Public License v2.0
2 stars 1 forks source link

genomedata-open-data plural usage of trackname #21

Open EricR86 opened 8 years ago

EricR86 commented 8 years ago

Original report (archived issue) by Eric Roberts (Bitbucket: ericr86, GitHub: ericr86).


As reported on the Segway-users mailing list:

Hi,

After I installed the 1.3.6 version of genomedata, I did genomedata-load-seq first. Then when I do genomedata-open-data, with following option, I get an error:

[zous3@noble-web encode_svn_phrase3]$ genomedata-open-data /net/noble/vol2/home/zous3/shiqi/encode_svn_phrase3/data/genomedata.data --trackname DNase-seq

Traceback (most recent call last):

File "/net/noble/vol2/home/zous3/.local/bin/genomedata-open-data", line 9, in

load_entry_point('genomedata==1.3.6.dev-r0', 'console_scripts', 'genomedata-open-data')()

File "/net/noble/vol2/home/zous3/.local/lib/python2.7/site-packages/genomedata-1.3.6.dev_r0-py2.7.egg/genomedata/_open_data.py", line 52, in main

return open_data(args.gdarchive, args.tracknames, verbose=args.verbose)

AttributeError: 'Namespace' object has no attribute 'tracknames'

After going in the genomadata, inside /genomedata/_open_data.py , we changed

  return open_data(args.gdarchive, args.tracknames, verbose=args.verbose)

to

  return open_data(args.gdarchive, args.trackname, verbose=args.verbose)

, we deleted the "s" in 'tracknames', then it works.

So there is a inconsistent between the code and the documents, since the document said that "usage: genomedata-open-data [-h] [-v] --trackname TRACKNAME [TRACKNAME ...][--verbose] gdarchive"

Best,

Shiqi