Moderator: Peter
Peter ♦ 5.9k
- Reputation:
- 5,910
- Status:
- Trusted
- Location:
- Scotland, UK
- Website:
- http://blastedbio.blog...
- Scholar ID:
- Google Scholar Page
- Last seen:
- 3 months, 1 week ago
- Joined:
- 10 years, 11 months ago
- Email:
- p*********@googlemail.com
I contribute to a number of open source bioinformatics projects, including Biopython and Galaxy. I have written a number of Galaxy tools & wrappers, co-ordinate the Galaxy BLAST+ wrappers, and currently serve on the Intergalactic Utilities Commission (aka the Galaxy ToolShed Police).
Posts by Peter
<prev
• 631 results •
page 1 of 64 •
next >
0
votes
1
answer
1.9k
views
1
answers
... And as of Biopython 1.78, you can't specify the alphabet - Bio.Alphabet was removed. ...
written 3 months ago by
Peter ♦ 5.9k
0
votes
1
answer
244
views
1
answers
... Bug should have already been fixed in Biopython 1.77 ...
written 6 months ago by
Peter ♦ 5.9k
0
votes
2
answers
646
views
2
answers
... It seems you must have been using an older version of Biopython, the code I shared needed Biopython 1.73 onwards (which I didn't realise at the time). It is always a good idea to state the version of a tool you are using in your question - and also the version of Python as that can be very important ...
written 2.0 years ago by
Peter ♦ 5.9k
0
votes
2
answers
646
views
2
answers
... You need Biopython 1.73 for this to work:
qualifier = Qualifier("/translation=", '"%s"' % row['Seq'])
As you worked out, on older versions you must use:
qualifier = Qualifier()
qualifier.key = "/translation="
qualifier.value = '"%s"' % row['Seq']
...
written 2.0 years ago by
Peter ♦ 5.9k
0
votes
2
answers
2.1k
views
2
answers
... You can specify the organism the ``SeqRecord`` for output in GenBank format via ``Bio.SeqIO.write(...)`` as the ``SOURCE`` and `` ORGANISM`` lines. You would need to populate ``seq_record.annotations['source']``, and this is the approach I would recommend here. Relevant code:
https://github.com/bio ...
written 2.0 years ago by
Peter ♦ 5.9k
0
votes
2
answers
646
views
2
answers
... The ``SeqRecord`` approach is intended to be more 'high level' with less of the file format details exposed directly. The GenBank specific ``Record`` object approach is quite 'low level' with lots of details you have to do yourself. But the immediate problem is you need to use as list of ``Qualifier ...
written 2.0 years ago by
Peter ♦ 5.9k
0
votes
2
answers
2.1k
views
2
answers
... You should be able to use ``Record(...)`` with arguments, but may of the terms in your first attempt are not available as arguments to the class initialiser:
https://github.com/biopython/biopython/blob/biopython-173/Bio/GenBank/Record.py#L164 ...
written 2.0 years ago by
Peter ♦ 5.9k
1
vote
2
answers
2.1k
views
2
answers
... No, the ``SeqFeature`` class goes with the ``SeqRecord`` class and these are intended to be file format neutral as used in ``Bio.SeqIO``, but the design was heavily influenced by GenBank files. The GenBank ``Record`` class uses its own GenBank specific ``Feature`` objects etc all defined in https:// ...
written 2.0 years ago by
Peter ♦ 5.9k
1
vote
3
answers
1.9k
views
3
answers
... I checked too, before simply asking - the reason there is a cache on archive.org from 2 November is because I requested the snapshot ;) ...
written 2.3 years ago by
Peter ♦ 5.9k
0
votes
1
answer
1.2k
views
1
answers
... Strange but perhaps you are right and something happens inside argparse? I would suggest setting the defaults to the string ``"-"`` (minus sign) in the command line API, and when you come to call ``get_structure`` use:
if args.input == "-":
structure = PDB.get_structure("File from stdi ...
written 2.3 years ago by
Peter ♦ 5.9k
Latest awards to Peter
Scholar
2.0 years ago,
created an answer that has been accepted.
For A: Error importing Biopython module
Teacher
2.0 years ago,
created an answer with at least 3 up-votes.
For A: Is There A Way To Sort A Biopython Alignment By A Feature Other Then Id?
Scholar
2.0 years ago,
created an answer that has been accepted.
For A: Can't access individual attributes of tabular outfmt 6 blast output while parsin
Scholar
2.0 years ago,
created an answer that has been accepted.
For A: How detect complement reverse sequence in a EMBL/Genbank file with biopython?
Scholar
2.0 years ago,
created an answer that has been accepted.
For A: Mapping blast xml report elements to their variable names in biopython
Scholar
2.0 years ago,
created an answer that has been accepted.
For A: Filter out specific reads from FASTQ files
Teacher
2.3 years ago,
created an answer with at least 3 up-votes.
For A: Is There A Way To Sort A Biopython Alignment By A Feature Other Then Id?
Appreciated
2.3 years ago,
created a post with more than 5 votes.
For A: Speed Of Efetch In Biopython
Teacher
2.3 years ago,
created an answer with at least 3 up-votes.
For A: Is There A Way To Sort A Biopython Alignment By A Feature Other Then Id?
Teacher
3.2 years ago,
created an answer with at least 3 up-votes.
For A: Is There A Way To Sort A Biopython Alignment By A Feature Other Then Id?
Commentator
3.5 years ago,
created a comment with at least 3 up-votes.
For C: Is There A Way To Sort A Biopython Alignment By A Feature Other Then Id?
Scholar
3.7 years ago,
created an answer that has been accepted.
For A: The Longest Chromosome > Sizeof(Int32)
Appreciated
3.9 years ago,
created a post with more than 5 votes.
For A: Speed Of Efetch In Biopython
Good Answer
4.0 years ago,
created an answer that was upvoted at least 5 times.
For A: Speed Of Efetch In Biopython
Teacher
4.0 years ago,
created an answer with at least 3 up-votes.
For A: Is There A Way To Sort A Biopython Alignment By A Feature Other Then Id?
Appreciated
4.0 years ago,
created a post with more than 5 votes.
For A: Speed Of Efetch In Biopython
Appreciated
4.6 years ago,
created a post with more than 5 votes.
For A: Speed Of Efetch In Biopython
Teacher
4.6 years ago,
created an answer with at least 3 up-votes.
For A: Is There A Way To Sort A Biopython Alignment By A Feature Other Then Id?
Teacher
4.6 years ago,
created an answer with at least 3 up-votes.
For A: How To Have Only Id And Sequence Printed In Output After Parse Sequences From A
Teacher
4.8 years ago,
created an answer with at least 3 up-votes.
For A: Is There A Way To Sort A Biopython Alignment By A Feature Other Then Id?
Epic Question
4.8 years ago,
created a question with more than 10,000 views.
For Bash $@ (Dollar At Variable) Loses Quote Characters
Scholar
5.0 years ago,
created an answer that has been accepted.
For A: The Longest Chromosome > Sizeof(Int32)
Good Answer
5.2 years ago,
created an answer that was upvoted at least 5 times.
For A: Biopython Embl Parser Only Reads One Entry
Teacher
5.2 years ago,
created an answer with at least 3 up-votes.
For A: Is There A Way To Sort A Biopython Alignment By A Feature Other Then Id?
Teacher
5.2 years ago,
created an answer with at least 3 up-votes.
For A: Is There A Way To Sort A Biopython Alignment By A Feature Other Then Id?
Use of this site constitutes acceptance of our User
Agreement
and Privacy
Policy.
Powered by Biostar
version 2.3.0
Traffic: 947 users visited in the last hour