Entering edit mode
6.2 years ago
tim.ivanov.92
▴
40
I noticed i can't get efetch to retrieve sequence on a reverse strand:
def fasta_from_chords(x):
import sys
sys.path.append('/uge_mnt/home/tim_ivanov/pythonlibs/biopython-1.71')
from Bio import Entrez, SeqIO
Entrez.email = "user@email.com"
handle = Entrez.efetch(db="nucleotide",id=x[0],seq_start=x[1],seq_stop=x[2],strand=x[3],rettype="fasta")
record = SeqIO.read(handle, "fasta")
handle.close()
return record
this is the function i've made, where x variable contans an array with: accession number, coordinate 1, coordinate 2, strand When i use it, the sequence returns on the straight strand only. Is there a way to fix it?
Moderator note: edited to remove authors email address
No i can't! Thank you - that did it, i was using
1
,-1
insteadHello tim.ivanov.92,
Don't forget to follow up on your threads.
If an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted. You can accept more than one if they work.
Please do the same for your previous posts as well.