Forum: [META] Noticed an issue with code markup and open parentheses (
gravatar for Joe
4.0 years ago by
United Kingdom
Joe18k wrote:

I'm fairly new to the forum (actively participating that is!) but I've noticed in 2 or 3 threads so far that some elements of code syntax don't seem to be being marked up properly.

For example in my answer in the following thread, this code fails to show the ( between open and - despite the fact it is there in the raw post content. I copy and pasted the code directly too so it's not an error in copying over.

C: Splitting and Extracting Features in fasta format from Genbank Files using Biopy


from Bio import SeqIO
import sys

for rec in SeqIO.parse(sys.argv[1], "genbank"):
    SeqIO.write([rec], + ".gbk", "w"), "genbank")

Similarly, I cant see tpaisie91's raw content, but in the code in their question in this thread: A: Fixing a biopython script

the print and should have an ( . Their code works (just doesn't output exactly what they wanted) so I think I can reasonably safely assume it's a markup error. And the exact same thing occurs with that string pattern in my answer, which, again, was a direct cut and paste of working code.

Is this a known problem?

markup code forum meta • 869 views
ADD COMMENTlink modified 4.0 years ago by _r_am32k • written 4.0 years ago by Joe18k

Tagging Istvan Albert

ADD REPLYlink written 4.0 years ago by WouterDeCoster45k

That is one weird error for sure. The original raw content does contain an extra parenthesis that disappears here.

I will investigate. I'll open a github issue for it:

ADD REPLYlink written 4.0 years ago by Istvan Albert ♦♦ 86k
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1034 users visited in the last hour