Forum: [META] Noticed an issue with code markup and open parentheses (
gravatar for jrj.healey
21 months ago by
United Kingdom
jrj.healey7.7k 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 • 525 views
ADD COMMENTlink modified 21 months ago by RamRS18k • written 21 months ago by jrj.healey7.7k

Tagging Istvan Albert

ADD REPLYlink written 21 months ago by WouterDeCoster32k

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 21 months ago by Istvan Albert ♦♦ 77k
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: 1352 users visited in the last hour