mauriceling / bactome Goto Github PK
View Code? Open in Web Editor NEWToolbox for Studying Bacteria, Archaea, and Complex Taxons
Home Page: https://github.com/mauriceling/bactome/wiki
License: GNU General Public License v3.0
Toolbox for Studying Bacteria, Archaea, and Complex Taxons
Home Page: https://github.com/mauriceling/bactome/wiki
License: GNU General Public License v3.0
I think maybe something changed in Fire or there are differences in Python 3, but with the current randomseq.py
code, I always get an error AttributeError: 'bool' object has no attribute 'lower'
.
Casting it to a string or removing the first part all together since it should be a boolean fixes it.
I suggest changing lines 263 and 265 in randomseq.py
to either of the following:
if str(cap_start).lower() == 'true' or cap_start == True:
if str(cap_stop).lower() == 'true' or cap_stop == True:
-or-
if cap_start == True:
if cap_stop == True:
If you want to see it not working for yourself, launch a fresh Python system by clicking on the launch binder
badge here. And then paste the following code in a cell and hit shift-enter to run it.
!pip install fire
!curl -O https://raw.githubusercontent.com/mauriceling/bactome/master/randomseq.py
!python randomseq.py FLS --length=1306 --n=1 --allow_start=True --allow_stop=True
No matter what allow_start
and allow_stop
are set to, and even if they aren't included, you encounter the error.
Hi,
When using this command:
randomseq.py MS --n=10 --cap_start=False --cap_stop=False --selection="A,250;T,250;G,250;C,250" --fasta=True --statement="c(gtaag);v(10,15,False,False,False,False);c(gtccg);v(20,30,False,False,False,False)"
,
there is a space between ">" and the sequence name in FASTA header:
e.g.,
> Test_1
gtaagGCAAATACCGCAgtccgTTTCCAGGCTTCACCCGCCAGT
> Test_2
gtaagACGTTCCACGGGAAAgtccgAACTACACTTCCGAACCATATAC
> Test_3
gtaagTGGACGTCCCCAgtccgGCACCCGGACGCAACGGAGAGTTA
Fixed this by changing the code print("> %s" % title)
to print(">%s" % title)
:
>Test_1
gtaagGGTGTCGACATCCgtccgCACCTCTCTCGACAGGTCCTACAGCGA
>Test_2
gtaagGCACCAATCATgtccgGGTCTATTCAAAAAAACCGGA
>Test_3
gtaagTCAAAGAGGGGGgtccgGTCAAGGGAAATACCCCTTCATCTT
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.