Giter VIP home page Giter VIP logo

mauriceling / bactome Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 55.0 10.61 MB

Toolbox for Studying Bacteria, Archaea, and Complex Taxons

Home Page: https://github.com/mauriceling/bactome/wiki

License: GNU General Public License v3.0

Python 5.99% HTML 74.55% JavaScript 3.19% CSS 0.25% Rich Text Format 16.02%
python bioinformatics bioinformatics-scripts statistical-genetics genome-analysis proteomics

bactome's People

Contributors

art2bs avatar diana2406 avatar jensen19142 avatar jocelyn9401 avatar mauriceling avatar tiantongliu avatar wj89664 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bactome's Issues

Suggesting fix of casting a boolean to `.lower()` in randomseq.py

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.

There is a space between ">" and the sequence name in FASTA header

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.