Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~2K People Reached
Favorite Tags
Member Avatar for [V]

The text I have: > Amiloride-sensitive cation channel, ASIC3 (also called BNC1 or MDEG) which is an acid-sensitive (proton-gated) homo- or hetero-oligomeric cation (Na+ (high affinity), Ca2+, K+) channel. It associates with DRASIC and ASIC1. It mediates touch sensation, being a mechanosensor) (lead inhibited) (Wang et al., 2006). In pulmonary …

Member Avatar for snippsat
0
193
Member Avatar for [V]

I started a job on my box at work. I am ssh'd into it now, and I can see the PID. Write now the job is just writing output to stdout. I want to see what is being written from here. How can I stream the output by selecting its …

Member Avatar for rch1231
0
94
Member Avatar for [V]

I have a very strange problem. I have a python script that uses multi-threading. It works fine, and does exactly what it should. I use several modules that interact with other files. All file handles are closed as soon as they are on longer needed. When I run this script …

Member Avatar for Gribouillis
0
167
Member Avatar for [V]

Here is my scenario: I have a bunch of data points, each of which shares homology with another. Basically A -> B A ->D B -> C C -> A .:. C ->D, etc... given a bunch of these relations, I need someway to graphically represent these relationships. I picture …

Member Avatar for TrustyTony
0
174
Member Avatar for [V]

I am trying to use a the re.sub() method. I have a string which I backreference with '\\1'. In my substitution parameter, is there anyway I can pass \\1 through a function? For example [CODE] output = re.sub(r'blah blah blah(\d+)','\\SOME_FUNCTION(\\1)',string) [/CODE] where any instance of (\d+) will replaced by the …

Member Avatar for Gribouillis
0
93
Member Avatar for [V]

Im using Matplotlib, and plotting a basic line graph. I have an very large set of data and I need my Y-axis to be much bigger. How do o make my graph much longer but not any taller? I found I can increase the overall graph size in proportion using …

Member Avatar for griswolf
0
454
Member Avatar for [V]

I have a string that looks like: IiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHoooooooooooooooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHooooooooooooooooooooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooooooooHHHHHHHHHHHHHHHHHHHHi I want to to capture all the segments that have H's in them and return their respective start & stop string positions. [CODE] tms = re.compile("H+") print tms.findall(string) [/CODE] This will find all the Hs but I cant get the string positions …

Member Avatar for Lardmeister
0
205
Member Avatar for [V]

I am using the Lightbox2 script on my website. here is an example of it working correctly on my search engine: [url]http://www.tcdb.org/go.php?query=maltose&button=Submit[/url] (Click any link that says "View Tree") Now, when we attempt the same thing on a page with many more results: [url]http://www.tcdb.org/go.php?query=sugar&button=Submit[/url] the lightbox containing my tree shows …

Member Avatar for stbuchok
0
119
Member Avatar for [V]

Can someone please show me the best way to achieve this with the least amount of lines? Im a recovering PHP coder, I have one solution. I was wondering if there was a quicker more pythony way to do this: I have in "results" [ICODE][('Basp1', 'Aen2'), ('Basp1', 'Ahy18'), ('Basp1', 'Ahy26'), …

Member Avatar for vegaseat
0
151
Member Avatar for [V]

Ive noticed print() includes linebreaks, and its real easy to suppress them. Is there a way I can write lines to a file, but have the line breaks includes implicitly? eg: [CODE] file=open("testfile.txt","w") file.write("line 1") file.write("line 2") file.write("line 3") file.close() [/CODE] meanwhile the file will contain [code] line 1\nline 2\nline …

Member Avatar for vegaseat
0
127
Member Avatar for [V]

For some reason, I can create temp files but I cannot write to them. Nothing is saved, and the file is always empty. What am I doing wrong? I've tried making it in /tmp, Ive specified mode=w+b, they all do the same. (nothing) [CODE] import tempfile def main(): test = …

Member Avatar for woooee
0
233
Member Avatar for [V]

I wrote this python script (part of a bigger program) to launch a php script and wait for the output. The PHP script takes almost 15 minutes to run, as it is spawning several perl & C programs of its own. When I launch the php script by itself, it …

Member Avatar for TrustyTony
0
196