On Sun, Feb 9, 2014 at 3:38 AM, abhinav raj kp nirmallur
wrote:
> Sir I don't know nothing about programming but I have a great intrest
> in it so that now a days I began to study python, many of my friends
> and teachers suggest me it. But still I have no tutor, can you please
> suggest me to st
By the way, if you are trying to write your own FASTA parser, please reconsider.
A good FASTA parser has been written by the folks at BioPython.org.
Use that one unless you really know what you're doing.
See:
http://biopython.org/DIST/docs/tutorial/Tutorial.html#sec12
for example usage. If
Hi,
Have tried inspect module in python.See this code
def foo(): print inspect.stack()[0][3]
>>> foo()foo>>>
this shall meet your purpose I believe
thanks,rakesh
> From: r.cziv...@research.gla.ac.uk
> To: tutor@python.org
> Date: Fri, 7 Feb 2014 16:07:58 +
> Subject: [Tutor] trace
CCing Tutor list.
here are the entire code
>
>
>import sys
>in_file = open(sys.argv[1], 'r').readlines()
>locus = ''
>accession = ''
>organism = ''
>
>OK, as suspected you initialise these to empty strings so they almost
>certainly
are being printed they just don't contain anything. Its easily
On Mon, 10 Feb 2014,
tutor-confirm+c3fa710640d780363ebaec9fd955eefa81f1b...@python.org wrote:
Mailing list removal confirmation notice for mailing list Tutor
We have received a request for the removal of your email address,
"carr...@tjc.com" from the tutor@python.org mailing list. To confirm
On 10/02/2014 23:16, Pierre Dagenais wrote:
On 14-02-08 12:55 AM, james campbell wrote:
header_bin = header_hex.decode('hex')
AttributeError: 'str' object has no attribute 'decode'
What I understand is that you are trying to decode 'hex', which is a
string. The interpreter is telling you that
On 14-02-08 12:55 AM, james campbell wrote:
> header_bin = header_hex.decode('hex')
> AttributeError: 'str' object has no attribute 'decode'
What I understand is that you are trying to decode 'hex', which is a
string. The interpreter is telling you that strings cannot be decoded.
I do not know h
On 14-02-09 05:37 PM, Altrius wrote:
> Hi,
>
> I’m completely new to programming in general and everything I have read so
> far has pointed me to Python.
I’ll put this another way: All I know is that a programming language is
a medium for a human to tell a computer what to do.
After that I’
On 10/02/14 15:32, rahmad akbar wrote:
hey again guys, i am trying to understand these statements,
if i do it like this, it will only print the 'print locus' part
for element in in_file:
if element.find('LOCUS'):
locus += element
The only time this is not executed is if LOCUS is at th
I guess the replies by Alan and Peter precisely answer to your question?
Best
2014-02-10 12:46 GMT+01:00 rahmad akbar :
> David,
>
> thanks for your reply. i cant figure out why the if at that point and what
> is the 'if' try to accompolish
>
>
> On Mon, Feb 10, 2014 at 11:52 AM, David Palao
> w
On Feb 10, 2014 10:33 AM, "rahmad akbar" wrote:
>
> hey again guys, i am trying to understand these statements,
>
> if i do it like this, it will only print the 'print locus' part
>
> for element in in_file:
# do this
print element
> if element.find('LOCUS'):
> locus += element
>
rahmad akbar wrote:
> hey again guys, i am trying to understand these statements,
>
> if i do it like this, it will only print the 'print locus' part
>
> for element in in_file:
> if element.find('LOCUS'):
> locus += element
> elif element.find('ACCESSION'):
> accession += element
>
hey again guys, i am trying to understand these statements,
if i do it like this, it will only print the 'print locus' part
for element in in_file:
if element.find('LOCUS'):
locus += element
elif element.find('ACCESSION'):
accession += element
elif element.find('ORGANISM'):
orga
On 02/08/2014 05:36 PM, Richard Cziva wrote:
Hi All,
I am trying to print out every function that is being called while my Python
program is running (own functions and library calls too). I can not modify the
Python programs I am trying to profile.
Let me give an example. A program contains a f
CCing tutor list.
Alan Gauld
Author of the Learn To Program website
http://www.alan-g.me.uk/
http://www.flickr.com/photos/alangauldphotos
>
>
>> You say functions. But what about the functions used to implement
>> operators like +,-,*,+= etc?
>I don't need th
On 07/02/14 16:14, rahmad akbar wrote:
he guys, i am trying to understand this code: i understand the first if
statement (if line.startswith..) in read_fasta function but couldnt
understand the next one(if index >=...). thanks in advance!!
I'm not sure what you don't understand about it.
But so
rahmad akbar wrote:
> he guys, i am trying to understand this code: i understand the first if
> statement (if line.startswith..) in read_fasta function but couldnt
> understand the next one(if index >=...). thanks in advance!!
Every time a line starts with a ">" sign the current Fasta instance is
On Mon, 2014-02-10 at 00:17 +, Alan Gauld wrote:
[…]
> And in my tutorial I deliberately don't teach many of the "standard"
> Python idioms because I'm trying to teach programming rather than
> Python. So if python has an insanely great way to do stuff but virtually
> no other language has i
On Sun, 2014-02-09 at 13:36 +, Oscar Benjamin wrote:
[…]
> I agree entirely, but what you've overlooked is that my examples are
> carefully targeted at a particular part of a tutorial-based class.
> We're talking about iteration so this is quite early in the course. At
> this stage I want my st
Also, could you explain better what is your doubt? You don't
understand what "index >= 1" means, or why this "if" at this point, or
anything else?
Best
2014-02-07 17:14 GMT+01:00 rahmad akbar :
> he guys, i am trying to understand this code: i understand the first if
> statement (if line.startswi
On Sun, 2014-02-09 at 13:56 -0500, Dave Angel wrote:
[…]
> Not as bad as attributing that code to me.
Apologies for that implication, bad editing on my part, I should have
retained the link to the author.
--
Russel.
=
Dr
21 matches
Mail list logo