gubbins icon indicating copy to clipboard operation
gubbins copied to clipboard

mask_gubbins_aln.py issue

Open Dangoh opened this issue 2 years ago • 2 comments

Hi,

I have problems running mask_gubbins_aln.py and get an error saying:

Traceback (most recent call last): File "mask_gubbins_aln.py", line 71, in taxon.seq = MutableSeq(taxon.seq) File "/opt/rh/rh-python36/root/usr/lib64/python3.6/site-packages/Bio/Seq.py", line 1663, in init "The sequence data given to a MutableSeq object "

My input is basically the alignment I had for gubbins in .fasta format and the .gff from gubbins as below:

python3.6 ~/tools/gubbins/python/scripts/mask_gubbins_aln.py --aln /mnt/eg/gubbins/eg_13-20/all_eg.fasta --gff /mnt/eg/gubbins/eg_13-20/all_eg_gubbins.recombination_predictions.gff --out /mnt/eg/gubbins/220824_gubbins_aln.fasta

Any ideas what the issue might be?

Thanks in advance!

Dangoh avatar Aug 24 '22 10:08 Dangoh

I think this is due to a Biopython upgrade - what version are you using?

nickjcroucher avatar Aug 24 '22 13:08 nickjcroucher

Hi Nick,

Thanks for quick reply!

I've tried v1.76 and v1.78.

Dangoh avatar Aug 24 '22 18:08 Dangoh

Just an FYI - Gubbins requires python version >=3.8 for parallelisation. Did you install with conda - and what happens if you use a more recent python version?

nickjcroucher avatar Sep 06 '22 10:09 nickjcroucher

Solved! Tried later version of python and it works great!

Dangoh avatar Sep 06 '22 12:09 Dangoh

Phew! Great, glad it's working now.

nickjcroucher avatar Sep 06 '22 12:09 nickjcroucher

Solved! Tried later version of python and it works great!

Hi Dangoh,

What version of python and biopython did you use, same issue with you.

sylarKYG avatar Jan 09 '24 05:01 sylarKYG