Git Product home page Git Product logo

ctdnatool's People

Contributors

eliasrosendahl avatar hogfeldt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

besenbacherlab

ctdnatool's Issues

Generator: Fragment lengths and end sequences

Make a generator that can create a tensor with the following dimensions (genome region, frag. length, end sequences).
The sequences should be found in the in the reference genome.
In order to store the sequences as counts, create a mapping from seq string to a base 4 string where the nucleotide having the following values
A -> 0
T -> 1
G -> 2
C -> 3
The index in the tensor is then the conversion from base 4 to base 10.

Manipulation: binning, sliding window with stride parameter

We should have a manipulation that can bin the first axis of a matrix or tensor, with a sliding window.
The user should be able to set the bin size and the stride.

If the bin size and stride is chosen in a way such that the last bin exceeds the array, its probably best to just create a small bin an throw a warning.

Better file format for outputting data

Right now data is stored in the .npy or .pickle format with a corresponding index file. It could be nice to integrate the index file in a little wrapper class, that could contain both data and meta data.

The naive way for storing such an object is in the pickle format. My only concern with the pickle format is that it is not secure see documentation (https://docs.python.org/3.9/library/pickle.html).

Maybe we should consider finding an alternative? Maybe hdf5?

Setup a test suite

We should have a test suite so we are sure that we don't break stuff when adding new features.

Add logging

Both for debugging and for issuing warnings, it could be nice the use the logging module for logging instead of just using print statements.

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.