Code Monkey home page Code Monkey logo

nothingspecial's Introduction

NothingSpecial

A collection of Python codes I (Haruka Yamashita) use frequently everywhere.

General modules

file_IO

Functions to read contents of several types of data formats, as follows.

1D list
itemnum: 3
item1
item2
item3
  • "itemnum:" line, which indicates the number of items in the list, may or may not exist.

2D list

>item1 key
item1 value - line1
item1 value - line2
item1 value - line3
>item2 key
item1 value - line1
>item3 key
...
  • No assumption of the number of lines in a value field for one item

  • "itemnum:" line, which indicates the number of items in the list, may or may not exist. (this is not requirement, but if itemnum line exist, the number is used as an expected number of items for testing if read number of items is the same.)

  • Requires character(s) that indicates item divisions. ">" for the example above.

  • Assumes the item divisor to be at the beginning of a line.

  • Optionally a value parser can be passed. If not given, value field will be a built-in list object.

For Biological Data

classes

A collection of data structures.

FASTA file

Based on 2D list

Gene annotation data

  • if NIG evogen-format of geneinfo file is given, read as 2D list
  • if a standard gff file is given, read as tab separarted file maybe using pandas

constants

A collection of constants.

Nucleotide bases

Module Dependencies

The following modules do not import any functions within nothingspecial package (but it does import from non-built-in Python packages, such as pandas and numpy).

  • num
  • text

The following modules import functions from num and/or text modules.

  • classes

nothingspecial's People

Contributors

yamasampo avatar

Watchers

 avatar

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.