I’ve used different ways for INPUT these days using python.
f=open('txt','r')
for line in f:.....
f=open ('txt','r').readlines()
for line in f:...
samtoolsin = subprocess.Popen(["/share/bin/samtools/samtools","view",bamfile],
stdout=subprocess.PIPE,bufsize=1)
f = samtoolsin.stdout
for line in f:.....
f= commands.output('zcat '+ file)
for line in f:.....
For all the situations above, is f a list, or just string?
According to my experience, seems 1,2,3 are all list, but the 4th is string. But I don’t know why.thx
Short Answer:
Long Answer (mainly links to docs):
None.