GithubHelp home page GithubHelp logo

cris's People

Contributors

schultzm avatar

Watchers

 avatar  avatar

cris's Issues

Make it python3 proof

Use print() function rather than print, and add from __future__ import print_function on the first line of the file.

You can then use print( str, file = sys.stderr) for verbose messages. Remember to add import sys.

Finally, put the messages into its own function:

import sys

def msg( str ):
    print( str, file = sys.stderr )

You can even add a timestamp:

import datetime
import sys

def msg( str ):
    print( "[{:%Y-%m-%d %H:%M:%S}]: {}".format(datetime.datetime.now(), str), file = sys.stderr )

Print both the `locus_tag` AND the `gene`

Best hit for gene       SAOUHSC_00009   was     GATCGTGCAGCAAAAGTTTCAGG at pos  [13241:13264](+)

Can you print both the locus_tag AND the gene for each thing so it lines up better?

Re-use the biopython location object?

Mark

Instead of this:

        loc_strt = feature.location.start.position
        loc_end = feature.location.end.position
        loc_strnd = feature.location.strand
        locus_locations[locus_name].append([loc_strt, loc_end, loc_strnd])

Can you just do this?

    locus_locations[locus_name].append( feature.location )

instead of breaking it down and re-storing it in a list, just re-use the python object as it was intended?

TSV output report

Really needs a targets.tab output file which has TSV with these columns:

  1. sequence ID
  2. location
  3. feature type
  4. feature ID (locus tag / gene)
  5. 23-mer string

Filename should be an output parameter.

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.