Advertisement
Guest User

Untitled

a guest
Jan 3rd, 2014
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.33 KB | None | 0 0
  1. * Now talking on #galaxyproject
  2. * Topic for #galaxyproject is: The Galaxy Project, high powered genomics for everyone - http://galaxyproject.org | Use now! http://usegalaxy.org
  3. * Topic for #galaxyproject set by natefoo at Mon Mar 7 23:00:14 2011
  4. * #galaxyproject :http://galaxyproject.org
  5. * jenjackson (~jenjackso@adsl-71-134-238-186.dsl.pltn13.pacbell.net) has joined #galaxyproject
  6. * ceberhard (~carleberh@107.194.88.162) has joined #galaxyproject
  7. <jasperk> When visualising a gtf file in the trackster, does someone knows why auto visualisation works but pack visualisation does not work locally but it works on the galaxy online instance...
  8. <jasperk> I see now that I get an error in the terminal...
  9. <dannon> Did you figure out your issue based on the error message?
  10. <jasperk> I think it has to do with my "custom" genome as the error is
  11. <dannon> Ahh, k.
  12. <jasperk> http://pastebin.com/mVN1dGS1
  13. <mrscribe> Title: galaxy.webapps.galaxy.api.datasets ERROR 2014-01-03 15:37:35,907 Error in datase - Pastebin.com (at pastebin.com)
  14. <jasperk> I am looking for a way to load the entire bacterial database into galaxy, but it seems like a lot of manual work...
  15. <dannon> So you're following https://wiki.galaxyproject.org/Learn/CustomGenomes ?
  16. <mrscribe> Title: Learn/CustomGenomes - Galaxy Wiki (at wiki.galaxyproject.org)
  17. <jasperk> Yeah, I have a fasta formatted genome, I have a GTF file and I set the dbkey such that it can be mapped against the fasta genome. And when I visualise it in trickster I do see a line, but as it is a GTF file I prefer to have the pack visualization
  18. <dannon> What revision are you running locally?
  19. <jasperk> hmm, when I upload the custom genome to usegalaxy.org and the gtf, it works... I think I updated to the latest version let me check again
  20. <jasperk> hg update stable
  21. <jasperk> 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
  22. <dannon> 'hg summary' ?
  23. <jasperk> hg summary
  24. <jasperk> parent: 11247:a9a0ac9c1afa tip
  25. <jasperk> Fix for determining a guid in the install_manager.
  26. <jasperk> branch: stable
  27. <jasperk> commit: 1 modified, 7 unknown
  28. <jasperk> update: (current)
  29. * martenson (~martenson@martenson.bx.psu.edu) has joined #galaxyproject
  30. <dannon> Is this a galaxy instance you're able to update? There should be more changes in the pipeline.
  31. <jasperk> yes I have admin rights
  32. * martenson has quit (Client Quit)
  33. <dannon> Ok, then that's what I'd try first; it may be that this is an older bug that's been fixed.
  34. * martenson (~martenson@2610:8:7800:14:c80:91f:bf8a:7a93) has joined #galaxyproject
  35. <jasperk> but the update state that there is none?
  36. <jasperk> hg update stable
  37. <dannon> update only updates local state, you need to 'pull' to get new changesets from the upstream repository.
  38. <dannon> So, 'hg pull -u <repository>'
  39. <jasperk> hg pull -u
  40. <jasperk> pulling from https://bitbucket.org/galaxy/galaxy-dist/
  41. <jasperk> searching for changes
  42. <jasperk> no changes found
  43. <mrscribe> Title: galaxy / galaxy-dist Bitbucket (at bitbucket.org)
  44. <dannon> This may or may not fix your issue, but it'll get you as up to date as galaxy main -- pull from galaxy-central
  45. <dannon> You'll stay on the stable branch, so no worries there
  46. <jasperk> added 691 changesets with 1664 changes to 521 files (-1 heads)
  47. <jasperk> 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
  48. <jasperk> lets restart galaxy
  49. <dannon> So only two updates. Yeah, restart and see if it fixes it, but we may have to dig deeper.
  50. <jasperk> hg pull -u https://bitbucket.org/galaxy/galaxy-central/ right?
  51. <mrscribe> Title: galaxy / galaxy-central Bitbucket (at bitbucket.org)
  52. <dannon> Yep
  53. <dannon> All that meant is that you got all of the changesets in -central that aren't yet in -dist, but 'update' only applied those changes from the stable branch
  54. <dannon> So, only two files, apparently.
  55. <jasperk> there is a problem with galaxy.tools ERROR 2014-01-03 16:04:40,330 Error reading tool from path: genetrack/genetrack_indexer.xml
  56. <jasperk> but galaxy starts
  57. <dannon> Tool was removed, I think.
  58. <jasperk> no still the same errors
  59. <jasperk> galaxy.webapps.galaxy.api.datasets ERROR 2014-01-03 16:05:44,038 Error in dataset API at listing contents: 'data': 'data'
  60. <jasperk> Traceback (most recent call last):
  61. <jasperk> File "/home/galaxy/galaxy-dist/lib/galaxy/webapps/galaxy/api/datasets.py", line 46, in show
  62. <jasperk> rval = self._data( trans, dataset, **kwd )
  63. <jasperk> File "/home/galaxy/galaxy-dist/lib/galaxy/webapps/galaxy/api/datasets.py", line 200, in _data
  64. <jasperk> ref_seq = data_dict[ 'data' ]
  65. <jasperk> KeyError: 'data'
  66. <ceberhard> jasperk: this may have to do with the 'chrom' selection in that part of the code.
  67. <ceberhard> What value are you using for the chromosome selection in trackster?
  68. <dannon> ceberhard: You were my next move, heh.
  69. <ceberhard> (since prokaryotes don't necc. have that value)
  70. <ceberhard> dannon: jgoecks might be the best for this
  71. <ceberhard> So hopefully he's not packing :)
  72. <jasperk> I have cur as a header in the gtf file
  73. <jasperk> chr gb2gtf gene 74 1171 . - . gene_id "TT_C0001"; transcript_id "TT_C0001"
  74. <jasperk> chr gb2gtf CDS 74 1171 . - . gene_id "TT_C0001"; transcript_id "TT_C0001"; protein_id "AAS80349.1"; db_xref "GI:46195931"
  75. <dannon> I assumed he'd be packing/something, yeah :)
  76. <jasperk> and this is the fasta header of the genome >chrom
  77. <jasperk> hum cur i mean
  78. <jasperk> stupid apple auto correct... >chr is the fasta header
  79. <ceberhard> Ok: two disclaimers:
  80. <ceberhard> This might be a better question for galaxy-dev depending on how soon you need to get this done. Jeremy might be better able to answer there.
  81. <ceberhard> 2) I'm not 100% familiar with this code in trackster. But I'm happy to try and work this out now if you need to.
  82. <ceberhard> We could start by seeing if the chrom selection is making it to that part of the code.
  83. <jasperk> I can always post on the mailing list if that is preferred, I do see that 2 chr are detected (chromosome and plasmid) in the current custom builds
  84. <jasperk> I think the trackster detects it nicely as a line is drawn in the autoplot in trickster
  85. <jasperk> http://picpaste.com/pics/Screen_Shot_2014-01-03_at_16.19.43-P3aeOn2v.1388762361.png
  86. <ceberhard> Ok. I'd encourage you to ask over email, then, since I believe you'll get a better, easier soln. But - if you're willing to dig into the code a bit - you might add a print to line 200 of lib/galaxy/webapps/galaxy/api/datasets.py: 'print data_dict' (without the single quotes).
  87. <ceberhard> Yeah - looks like it's getting some data. No idea why no seq_data in the dictionary, tho.
  88. * martenson has quit (Remote host closed the connection)
  89. <jasperk> {'kind': 'error', 'message': '/bin/sh: 1: faToTwoBit: not found\n'}
  90. <dannon> Oh.
  91. <ceberhard> So you need a 2bit version of your reference I'm guessing.
  92. <ceberhard> Nope.
  93. <dannon> iirc, it'll automatically happen if you install those tools.
  94. <ceberhard> You need the tool.
  95. <dannon> I had to do this before.
  96. <ceberhard> Huh.
  97. <dannon> Yep.
  98. * martenson (~martenson@martenson.bx.psu.edu) has joined #galaxyproject
  99. <dannon> You can snag the stable executables here for various platforms: http://hgdownload.cse.ucsc.edu/admin/exe/
  100. <mrscribe> Title: Index of /admin/exe (at hgdownload.cse.ucsc.edu)
  101. <dannon> Just download faToTwoBit for your platform and drop it on your path somewhere.
  102. <jasperk> downloading restarting put it in /usr/bin i guess?
  103. <dannon> No need to restart
  104. <dannon> But yeah, you could put it there.
  105. <jasperk> download the other as well? {'kind': 'error', 'message': '/bin/sh: 1: faToTwoBit: not found\n'{'kind': 'error', {'kind': 'error', {'message': '/bin/sh: 1: fa'TmesosTwoBiatge': not found\n'}
  106. <jasperk> hmm TmesosTwoBiatge is not located in the exe dir.
  107. <dannon> Did that get mangled?
  108. <jasperk> just a sec forgot chmod +x
  109. <jasperk> in the galaxy account I can perform in the terminal /usr/bin/faToTwoBit
  110. <jasperk> faToTwoBit - Convert DNA from fasta to 2bit format
  111. <jasperk> {'kind': 'error', 'message': '/bin/sh: 1: faToTwoBit: not found\n'}
  112. <jasperk> where does galaxy look for faToTwoBit?
  113. <dannon> Local single node install? Are you using a virtual environment or anything?
  114. <dannon> It'd check on the galaxy user's path, whatever that's set to.
  115. <jasperk> yeah local node, but I think the terminal needed a refresh
  116. <jasperk> {'kind': 'error', 'message': '/bin/sh: 1: faToTwoBit: not found\n'{'kind': }
  117. <jasperk> 'error', 'message': '/bin/sh: 1: faToTwoBit: not found\n'}
  118. <jasperk> $ faToTwoBit
  119. <jasperk> faToTwoBit - Convert DNA from fasta to 2bit format
  120. <jasperk> hmm it should be accessible for galaxy
  121. <dannon> And you're not using a virtualenv or anything else that'd overwrite the path?
  122. <jasperk> it is running on a ubuntu 64 bit server directly, no virtual machine and such
  123. <jasperk> and under echo $ are no galaxy paths or whatsoever
  124. <jasperk> hmm
  125. <jasperk> might it have to do with /bin/sh?
  126. <dannon> That should just be echoing the error you're getting in the shell; that is, that faToTwoBit isn't found
  127. <dannon> in run.sh, can you ensure that the faToTwoBit location is in the path?
  128. <jasperk> yeah but if i run /bin/sh faToTwoBit in the terminal /bin/sh: 0: Can't open faToTwoBit
  129. <jasperk> as I am in bash
  130. <dannon> It doesn't get executed quite like that; red herring.
  131. * martenson has quit (Remote host closed the connection)
  132. <dannon> Something I've done before just to verify the path is to edit a tool to echo $PATH back and return
  133. * martenson (~martenson@martenson.bx.psu.edu) has joined #galaxyproject
  134. <jasperk> /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/bin
  135. <jasperk> and the file is located /usr/bin/faToTwoBit
  136. <jasperk> thus in theory it should find it
  137. <jasperk> but no luck
  138. <jasperk> I think the error comes from File: extract_genomic_dna.py
  139. <dannon> Well, I'm not sure what's going on with the path there, but the *super* hacky thing to do to short cut all this is to replace faToTwoBit with the full path.
  140. <jasperk> I could only find faToTwoBit in extract_genomic_dna.py are there other locations?
  141. <ceberhard> Converters
  142. <dannon> I think it's in the datatype converter, yeah.
  143. <ceberhard> galaxy/datatypes/converters/fasta_to_2bit.xml
  144. <dannon> That's the one. I'm assuming trackster is trying to convert the reference for you, and that's what it'd use.
  145. <ceberhard> Although: '<!-- <description>__NOT_USED_CURRENTLY_FOR_CONVERTERS__</description> -->'
  146. <ceberhard> No idea what that means or if it stands since it's commented out.
  147. <dannon> Could be a lie.
  148. <ceberhard> Right.
  149. <dannon> Love debugging stuff I've never touched, heh :)
  150. <ceberhard> :P
  151. <ceberhard> You could try editing that with your full path.
  152. <ceberhard> To see if it works?
  153. <dannon> A note, you *will* need to restart galaxy after editing this one; the tool will need to be reloaded.
  154. <ceberhard> Sorry this has gotten complicated, jasperk, and thanks for being patient.
  155. <jasperk> yeah it surprises me too I mean a bash path should be simple
  156. <dannon> Should be.
  157. <ceberhard> Right.
  158. <jasperk> I already called that I would be home later
  159. <jasperk> yeah I learned it the hard way that xmls need restart
  160. <jasperk> just to be sure like this right? <command>/usr/bin/faToTwoBit $input $output</command>
  161. <jasperk> {'kind': 'error', 'message': '/bin/sh: 1: faToTwoBit: not found\n'}
  162. <jasperk> {'kind'{'kind': 'error'galaxy.webapps.galaxy.api.datasets ERROR 2014-01-03 17:15:44,479 Error in dataset API at listing contents: 'data': 'data'
  163. <jasperk> Traceback (most recent call last):
  164. <jasperk> dammit :P
  165. <dannon> Ok, so it may not be trying to use that one.
  166. <dannon> /lib/galaxy/tools/genome_index/index_genome.py ?
  167. <dannon> Seems like something trackster would potentially do.
  168. <jasperk> {'kind': 'error', 'message': '/bin/sh: 1: faToTwoBit: not found\n'}
  169. <jasperk> {'kind': {'kind': 'error', 'message': '/bin/sh: 1: faToTwoBit: not found\n''error'}
  170. <jasperk> same
  171. <ceberhard> Yeah - the only other way I'd try at this point (besides galaxy-dev) is create the 2bit file outside galaxy and edit the loc file. https://wiki.galaxyproject.org/Visualization%20Setup?highlight=%28faToTwoBit%29
  172. <mrscribe> Title: Visualization Setup - Galaxy Wiki (at wiki.galaxyproject.org)
  173. <ceberhard> (Or head home and have a beer)
  174. <ceberhard> I'm not entirely sure that would work without creating a new visualization, tho.
  175. <jasperk> yeah its already dark outside. ILL setup a galaxy-dev post and grab a beer or two
  176. <dannon> Sounds like a plan to me
  177. <jasperk> as I never did the 2bit set up it might take a moment to do so.
  178. <ceberhard> Right.
  179. <jasperk> thanks a lot anyway! It sure helped me to get a feeling on whats in the engine of galaxy
  180. <dannon> Sure, sorry we couldn't actually get it working.
  181. <ceberhard> Yeah - hope there's a simple soln.
  182. <jasperk> well in theory it should be. I mean it can't find a file that is in /usr/bin i mean thats just completely odd
  183. <jasperk> and I think it is almost certainly a ubuntu os issue
  184. <ceberhard> Yes - very.
  185. <dannon> The other 'fix' I mentioned was to explicitly set your path in run.sh
  186. <dannon> Acutally, that might not help, because the path seemed to include /usr/bin and it just wasn't accessible
  187. <dannon> What were the permissions and ownership of faToTwoBit?
  188. <jasperk> i eventually chmodded it to 777
  189. <jasperk> to leave out any permission issues
  190. <dannon> Hmm, ok.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement